diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-07-24 12:28:08 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-07-24 17:10:08 -0700 |
| commit | 546c75ca46eff73e5f038e2b894ff96c65cd8960 (patch) | |
| tree | 309279828f67aaee8126577cd7081a2c24b0c6bd /src/codegen | |
| parent | 4624c818991f161fc6a7021119e4d071b6e40e6c (diff) | |
| download | zig-546c75ca46eff73e5f038e2b894ff96c65cd8960.tar.gz zig-546c75ca46eff73e5f038e2b894ff96c65cd8960.zip | |
LLVM: notice the soft_float CPU feature
when deciding whether to lower to x86_fp80 instructions, or softfloat
instructions.
Closes #10847
Closes #12090
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/llvm.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index 64485d48bd..c80ef3adc0 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -9514,7 +9514,7 @@ fn isByRef(ty: Type) bool { /// and false if we expect LLVM to crash if it counters an x86_fp80 type. fn backendSupportsF80(target: std.Target) bool { return switch (target.cpu.arch) { - .x86_64, .i386 => true, + .x86_64, .i386 => !std.Target.x86.featureSetHas(target.cpu.features, .soft_float), else => false, }; } |
