Skip to content

Commit f31173d

Browse files
committed
llvm: Disable f16 lowering for hexagon.
In theory, this should work for v68+. In practice, it runs into an LLVM assertion when using a `freeze` instruction on `f16` values, similar to the issue we had for LoongArch.
1 parent 56b0c7b commit f31173d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/codegen/llvm.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12380,6 +12380,7 @@ fn backendSupportsF80(target: std.Target) bool {
1238012380
/// if it produces miscompilations.
1238112381
fn backendSupportsF16(target: std.Target) bool {
1238212382
return switch (target.cpu.arch) {
12383+
.hexagon,
1238312384
.powerpc,
1238412385
.powerpcle,
1238512386
.powerpc64,

0 commit comments

Comments
 (0)