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

Chris Copeland via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 8 21:37:56 PDT 2026


================
@@ -6,6 +6,13 @@
 // RUN: %clang -mfloat-abi=softfp --target=armv7-unknown-linux-gnueabi -O3 -S -o - %s | FileCheck %s -check-prefixes=SOFTFP,CHECK
 // RUN: %clang -mfloat-abi=soft --target=armv7-unknown-linux-gnueabi -O3 -S -o - %s | FileCheck %s -check-prefixes=SOFT,CHECK
----------------
chrisnc wrote:

`-mfloat-abi=soft` also does `-fpregs`, so the test code as written can't implement `__attribute__((pcs("aapcs-vfp")))` for this `RUN` line. This was the most straightforward way I could see to address, without sacrificing other things this test wants to do, or tearing it up. Open to other ideas.

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


More information about the cfe-commits mailing list