[llvm] [X86][ConstraintFP] Model rounding control registers for inline asm (PR #92846)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 12:08:27 PDT 2024
================
@@ -669,8 +669,14 @@ const MCPhysReg *X86TargetLowering::getScratchRegisters(CallingConv::ID) const {
return ScratchRegs;
}
-ArrayRef<MCPhysReg> X86TargetLowering::getRoundingControlRegisters() const {
+ArrayRef<MCPhysReg>
+X86TargetLowering::getRoundingControlRegisters(const char *AsmStr) const {
static const MCPhysReg RCRegs[] = {X86::FPCW, X86::MXCSR};
+ if (AsmStr) {
----------------
arsenm wrote:
I would say those people are wrong, but if you're using strictfp you've thrown that out. I would drop this. If you insist, it needs to be a separate review
https://github.com/llvm/llvm-project/pull/92846
More information about the llvm-commits
mailing list