Skip to content

Commit 7a3626d

Browse files
committed
llvm: Disable f16 lowering for loongarch.
This should be reverted with LLVM 20.
1 parent 5e4249e commit 7a3626d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/codegen/llvm.zig

+3
Original file line numberDiff line numberDiff line change
@@ -12453,6 +12453,9 @@ fn backendSupportsF80(target: std.Target) bool {
1245312453
/// if it produces miscompilations.
1245412454
fn backendSupportsF16(target: std.Target) bool {
1245512455
return switch (target.cpu.arch) {
12456+
// LoongArch can be removed from this list with LLVM 20.
12457+
.loongarch32,
12458+
.loongarch64,
1245612459
.hexagon,
1245712460
.powerpc,
1245812461
.powerpcle,

0 commit comments

Comments
 (0)