Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLVM backend does not implement reduce on f128 Vector #20567

Open
Traxar opened this issue Jul 9, 2024 · 0 comments
Open

LLVM backend does not implement reduce on f128 Vector #20567

Traxar opened this issue Jul 9, 2024 · 0 comments
Labels
backend-llvm The LLVM backend outputs an LLVM IR Module. bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@Traxar
Copy link

Traxar commented Jul 9, 2024

Zig Version

0.13.0

Steps to Reproduce and Observed Behavior

const V = @Vector(1,f128);

pub inline fn foo(b: V) f128 {  // removing inline changes crash message
    return @reduce(.Mul, b); //reduction operation does not matter
}

test "float simd" {
	var a: V = undefined ;//making this const makes it not crash
	a[0] = 0;
	const b: V = a   a;

	_ = foo(b);//commenting this out makes in not crash
	//_ = @reduce(.Max, b);//calling reduce directly instead makes it not fail
}

output:

error: Assigned value does not match type of forward declaration

Expected Behavior

no crash

@Traxar Traxar added the bug Observed behavior contradicts documented or intended behavior label Jul 9, 2024
@Vexu Vexu added the backend-llvm The LLVM backend outputs an LLVM IR Module. label Jul 15, 2024
@Vexu Vexu added this to the 0.15.0 milestone Jul 15, 2024
@Vexu Vexu changed the title reduce on f128 Vector causes compiler crash LLVM backend does not implement reduce on f128 Vector Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend-llvm The LLVM backend outputs an LLVM IR Module. bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants