Add the cc_out operand for t2RSBrs instructions. I missed this when I changed
authorBob Wilson <bob.wilson@apple.com>
Fri, 28 May 2010 00:27:15 +0000 (00:27 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 28 May 2010 00:27:15 +0000 (00:27 +0000)
the instruction class for t2RSB to add that operand in svn r104582.
Radar 8033757.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104907 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelDAGToDAG.cpp

index 9baef6bf12433e26bab6d1b59f16e56bc55240a9..8270c097a08b7470a83a484e68d485e1b889787c 100644 (file)
@@ -1954,8 +1954,8 @@ SDNode *ARMDAGToDAGISel::Select(SDNode *N) {
         SDValue ShImmOp = CurDAG->getTargetConstant(ShImm, MVT::i32);
         SDValue Reg0 = CurDAG->getRegister(0, MVT::i32);
         if (Subtarget->isThumb()) {
-          SDValue Ops[] = { V, V, ShImmOp, getAL(CurDAG), Reg0 };
-          return CurDAG->SelectNodeTo(N, ARM::t2RSBrs, MVT::i32, Ops, 5);
+          SDValue Ops[] = { V, V, ShImmOp, getAL(CurDAG), Reg0, Reg0 };
+          return CurDAG->SelectNodeTo(N, ARM::t2RSBrs, MVT::i32, Ops, 6);
         } else {
           SDValue Ops[] = { V, V, Reg0, ShImmOp, getAL(CurDAG), Reg0, Reg0 };
           return CurDAG->SelectNodeTo(N, ARM::RSBrs, MVT::i32, Ops, 7);