forked from OSchip/llvm-project
Don't automatically set the "fc" bits on MSR instructions if the user didn't ask for them. This is a divergence from gas' behavior, but it is correct per the documentation and allows us to forge ahead with roundtrip testing.
llvm-svn: 142669
This commit is contained in:
parent
4d4363ba56
commit
03a173eb71
|
@ -2588,9 +2588,13 @@ parseMSRMaskOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
|||
} else // No match for special register.
|
||||
return MatchOperand_NoMatch;
|
||||
|
||||
// Special register without flags are equivalent to "fc" flags.
|
||||
if (!FlagsVal)
|
||||
FlagsVal = 0x9;
|
||||
// Special register without flags is NOT equivalent to "fc" flags.
|
||||
// NOTE: This is a divergence from gas' behavior. Uncommenting the following
|
||||
// two lines would enable gas compatibility at the expense of breaking
|
||||
// round-tripping.
|
||||
//
|
||||
// if (!FlagsVal)
|
||||
// FlagsVal = 0x9;
|
||||
|
||||
// Bit 4: Special Reg (cpsr, apsr => 0; spsr => 1)
|
||||
if (SpecReg == "spsr")
|
||||
|
|
Loading…
Reference in New Issue