mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
When expanding the MOVsr[la]_flag pseudos, the CPSR implicit def becomes
an explicit def. Make sure to capture that properly. rdar://8556556 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116591 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8abe32af38
commit
6bdc8ae291
@ -586,8 +586,7 @@ bool ARMExpandPseudo::ExpandMBB(MachineBasicBlock &MBB) {
|
||||
.addReg(0)
|
||||
.addImm(ARM_AM::getSORegOpc((Opcode == ARM::MOVsrl_flag ? ARM_AM::lsr
|
||||
: ARM_AM::asr), 1)))
|
||||
.addReg(ARM::CPSR);
|
||||
TransferImpOps(MI, MIB, MIB);
|
||||
.addReg(ARM::CPSR, getDefRegState(true));
|
||||
MI.eraseFromParent();
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user