Skip to content

Commit

Permalink
llvm: Disable f16 lowering for hexagon.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexrp committed Oct 3, 2024
1 parent 56b0c7b commit f31173d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codegen/llvm.zig
Original file line number Diff line number Diff line change
Expand Up @@ -12380,6 +12380,7 @@ fn backendSupportsF80(target: std.Target) bool {
/// if it produces miscompilations.
fn backendSupportsF16(target: std.Target) bool {
return switch (target.cpu.arch) {
.hexagon,
.powerpc,
.powerpcle,
.powerpc64,
Expand Down

0 comments on commit f31173d

Please sign in to comment.