Skip to content

Commit e98f285

Browse files
committed
Correctly set f128 math support for pauthtest
1 parent ec87aa2 commit e98f285

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

compiler/rustc_codegen_llvm/src/llvm_util.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,6 @@ fn update_target_reliable_float_cfg(sess: &Session, cfg: &mut TargetConfig) {
391391
cfg.has_reliable_f128 = match (target_arch, target_os) {
392392
// Unsupported https://github.com/llvm/llvm-project/issues/121122
393393
(Arch::AmdGpu, _) => false,
394-
// Pauthtest musl does not support 128-bit floating point math.
395-
(Arch::AArch64, _) if *target_env == Env::Pauthtest => false,
396394
// Unsupported <https://github.com/llvm/llvm-project/issues/94434>
397395
(Arch::Arm64EC, _) => false,
398396
// Selection bug <https://github.com/llvm/llvm-project/issues/95471>. This issue is closed
@@ -426,8 +424,8 @@ fn update_target_reliable_float_cfg(sess: &Session, cfg: &mut TargetConfig) {
426424
// (ld is `f64`), anything other than Linux (Windows and MacOS use `f64`), and `x86`
427425
// (ld is 80-bit extended precision).
428426
//
429-
// musl does not implement the symbols required for f128 math at all.
430-
_ if *target_env == Env::Musl => false,
427+
// musl and pauthtest do not implement the symbols required for f128 math at all.
428+
_ if (*target_env == Env::Musl || *target_env == Env::Pauthtest) => false,
431429
(Arch::X86_64, _) => false,
432430
(_, Os::Linux) if target_pointer_width == 64 => true,
433431
_ => false,

0 commit comments

Comments
 (0)