The ARM BR_JT* pseudos don't need to use the printer jtblock_operand node to
authorJim Grosbach <grosbach@apple.com>
Mon, 29 Nov 2010 18:53:24 +0000 (18:53 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 29 Nov 2010 18:53:24 +0000 (18:53 +0000)
get the pretty-printer. That's handled explicityly by the MC lowering now.

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

lib/Target/ARM/ARMInstrInfo.td

index dbd27016052fcf24f66f52760d3161bf05b138ef..e09170f631af8cb7117ffc0ba07007d93c4434c2 100644 (file)
@@ -1429,22 +1429,22 @@ let isBranch = 1, isTerminator = 1 in {
 
     let isNotDuplicable = 1, isIndirectBranch = 1 in {
     def BR_JTr : ARMPseudoInst<(outs),
-                      (ins GPR:$target, jtblock_operand:$jt, i32imm:$id),
-                      IIC_Br,// "mov\tpc, $target$jt",
+                      (ins GPR:$target, i32imm:$jt, i32imm:$id),
+                      IIC_Br,
                       [(ARMbrjt GPR:$target, tjumptable:$jt, imm:$id)]> {
       let SZ = SizeSpecial;
     }
     // FIXME: This shouldn't use the generic "addrmode2," but rather be split
     // into i12 and rs suffixed versions.
     def BR_JTm : ARMPseudoInst<(outs),
-                     (ins addrmode2:$target, jtblock_operand:$jt, i32imm:$id),
+                     (ins addrmode2:$target, i32imm:$jt, i32imm:$id),
                      IIC_Br,
                      [(ARMbrjt (i32 (load addrmode2:$target)), tjumptable:$jt,
                        imm:$id)]> {
       let SZ = SizeSpecial;
     }
     def BR_JTadd : ARMPseudoInst<(outs),
-                   (ins GPR:$target, GPR:$idx, jtblock_operand:$jt, i32imm:$id),
+                   (ins GPR:$target, GPR:$idx, i32imm:$jt, i32imm:$id),
                    IIC_Br,
                    [(ARMbrjt (add GPR:$target, GPR:$idx), tjumptable:$jt,
                      imm:$id)]> {