Commit 7a3626d1c6

Alex Rønne Petersen <alex@alexrp.com>
2024-10-16 01:19:00
llvm: Disable f16 lowering for loongarch.
This should be reverted with LLVM 20.
1 parent 5e4249e
Changed files (1)
src
codegen
src/codegen/llvm.zig
@@ -12453,6 +12453,9 @@ fn backendSupportsF80(target: std.Target) bool {
 /// if it produces miscompilations.
 fn backendSupportsF16(target: std.Target) bool {
     return switch (target.cpu.arch) {
+        // LoongArch can be removed from this list with LLVM 20.
+        .loongarch32,
+        .loongarch64,
         .hexagon,
         .powerpc,
         .powerpcle,