llvm: Disable lowering to f128 on sparc32.

efc6b50d2d/llvm/lib/Target/Sparc/SparcISelLowering.cpp (L561-L562)
This commit is contained in:
Alex Rønne Petersen 2024-08-12 04:45:35 +02:00 committed by Andrew Kelley
parent 87ec4e11c9
commit a1a823f69c

View File

@ -11774,7 +11774,9 @@ fn backendSupportsF16(target: std.Target) bool {
/// or if it produces miscompilations.
fn backendSupportsF128(target: std.Target) bool {
return switch (target.cpu.arch) {
.amdgcn => false,
.amdgcn,
.sparc,
=> false,
.aarch64 => std.Target.aarch64.featureSetHas(target.cpu.features, .fp_armv8),
else => true,
};