diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-12-14 20:45:47 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-12-14 20:45:47 +0000 |
commit | eb61272150574ab6f51c9c84db119b53b92bb4df (patch) | |
tree | 4a2172f0161d6484290eb8cc62f660a755263e95 /lib | |
parent | 86abd48fd01080f08eec1b46f92c90308b03bfd4 (diff) | |
download | external_llvm-eb61272150574ab6f51c9c84db119b53b92bb4df.zip external_llvm-eb61272150574ab6f51c9c84db119b53b92bb4df.tar.gz external_llvm-eb61272150574ab6f51c9c84db119b53b92bb4df.tar.bz2 |
Make sure to propagate the predicate operands for LEApcrel to ADR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMAsmPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp index 0ba7b40..cabffa7 100644 --- a/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/ARMAsmPrinter.cpp @@ -749,8 +749,8 @@ void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) { TmpInst.addOperand(MCOperand::CreateReg(MI->getOperand(0).getReg())); TmpInst.addOperand(MCOperand::CreateExpr(SymbolExpr)); // Add predicate operands. - TmpInst.addOperand(MCOperand::CreateImm(ARMCC::AL)); - TmpInst.addOperand(MCOperand::CreateReg(0)); + TmpInst.addOperand(MCOperand::CreateImm(MI->getOperand(2).getImm())); + TmpInst.addOperand(MCOperand::CreateReg(MI->getOperand(3).getReg())); OutStreamer.EmitInstruction(TmpInst); return; } @@ -768,8 +768,8 @@ void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) { TmpInst.addOperand(MCOperand::CreateReg(MI->getOperand(0).getReg())); TmpInst.addOperand(MCOperand::CreateExpr(SymbolExpr)); // Add predicate operands. - TmpInst.addOperand(MCOperand::CreateImm(ARMCC::AL)); - TmpInst.addOperand(MCOperand::CreateReg(0)); + TmpInst.addOperand(MCOperand::CreateImm(MI->getOperand(3).getImm())); + TmpInst.addOperand(MCOperand::CreateReg(MI->getOperand(4).getReg())); OutStreamer.EmitInstruction(TmpInst); return; } |