Skip to content

Commit

Permalink
llvm: Disable f16 lowering for loongarch.
Browse files Browse the repository at this point in the history
This should be reverted with LLVM 20.
  • Loading branch information
alexrp committed Oct 15, 2024
1 parent 5e4249e commit 7a3626d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/codegen/llvm.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7a3626d

Please sign in to comment.