diff options
author | Owen Anderson <resistor@mac.com> | 2011-09-09 21:48:23 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-09-09 21:48:23 +0000 |
commit | 51f6a7abf27fc92c3d8904c2334feab8b498e8e9 (patch) | |
tree | 347cda8908f8718adcefca3bd2fd9aa84d605fe1 /lib/Target/ARM/ARMFrameLowering.cpp | |
parent | 13d8baa3fc1aa7dd9d887908838391fa5538e9bd (diff) |
Thumb unconditional branches are allowed in IT blocks, and therefore should have a predicate operand, unlike conditional branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r-- | lib/Target/ARM/ARMFrameLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMFrameLowering.cpp b/lib/Target/ARM/ARMFrameLowering.cpp index ce3bd643a8..2d1de6fe8e 100644 --- a/lib/Target/ARM/ARMFrameLowering.cpp +++ b/lib/Target/ARM/ARMFrameLowering.cpp @@ -414,6 +414,9 @@ void ARMFrameLowering::emitEpilogue(MachineFunction &MF, MIB.addExternalSymbol(JumpTarget.getSymbolName(), JumpTarget.getTargetFlags()); } + + // Add the default predicate in Thumb mode. + if (STI.isThumb()) MIB.addImm(ARMCC::AL).addReg(0); } else if (RetOpcode == ARM::TCRETURNri) { BuildMI(MBB, MBBI, dl, TII.get(STI.isThumb() ? ARM::tTAILJMPr : ARM::TAILJMPr)). |