[llvm] [ARM] Emit a warning when the hard-float ABI is enabled but can't be used. (PR #111334)

Oliver Stannard via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 01:51:32 PDT 2025


================
@@ -791,7 +791,9 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM,
       setAllExpand(MVT::f32);
     if (!Subtarget->hasFP64())
       setAllExpand(MVT::f64);
-  }
+  } else if (TM.Options.FloatABIType == FloatABI::Hard)
----------------
ostannard wrote:

I think it would be best to update those tests, probably to use the the soft-float ABI if they don't actually use floating-point.

https://github.com/llvm/llvm-project/pull/111334


More information about the llvm-commits mailing list