diff options
author | Jim Grosbach <grosbach@apple.com> | 2013-08-20 19:12:42 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2013-08-20 19:12:42 +0000 |
commit | 71a78f962b1f25273853ee9c573bb4109086b730 (patch) | |
tree | dcc0cdcbb5062a3644c3a7d1d58b3bc9dcd2349d /llvm/lib/Target/ARM/ARMFastISel.cpp | |
parent | d7e2278f6c071741796c20b368a6d0c93bbe79e2 (diff) | |
download | bcm5719-llvm-71a78f962b1f25273853ee9c573bb4109086b730.tar.gz bcm5719-llvm-71a78f962b1f25273853ee9c573bb4109086b730.zip |
ARM: Fix fast-isel copy/paste-o.
Update testcase to be more careful about checking register
values. While regexes are general goodness for these sorts of
testcases, in this example, the registers are constrained by
the calling convention, so we can and should check their
explicit values.
rdar://14779513
llvm-svn: 188819
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMFastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp index e1af947b078..f4aaf09038a 100644 --- a/llvm/lib/Target/ARM/ARMFastISel.cpp +++ b/llvm/lib/Target/ARM/ARMFastISel.cpp @@ -1762,7 +1762,7 @@ bool ARMFastISel::SelectSelect(const Instruction *I) { } unsigned ResultReg = createResultReg(RC); if (!UseImm) { - Op2Reg = constrainOperandRegClass(TII.get(MovCCOpc), Op1Reg, 1); + Op2Reg = constrainOperandRegClass(TII.get(MovCCOpc), Op2Reg, 1); Op1Reg = constrainOperandRegClass(TII.get(MovCCOpc), Op1Reg, 2); BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(MovCCOpc), ResultReg) .addReg(Op2Reg).addReg(Op1Reg).addImm(ARMCC::NE).addReg(ARM::CPSR); |