From a519d577251c2a1207b466a4659d9eff37a989e1 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 21 Dec 2010 01:57:15 +0000 Subject: [PATCH] Fix a copy-pasto. When the tBR_JTr instruction was converted to using the tPseudoInst class, its size was changed from "special" to "2 bytes". This is incorrect because the jump table will no longer be taken into account when calculating branch offsets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122303 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrThumb.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index 56356514bdf..ec0b3a33c4b 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/lib/Target/ARM/ARMInstrThumb.td @@ -543,7 +543,7 @@ let isBranch = 1, isTerminator = 1, isBarrier = 1 in { def tBR_JTr : tPseudoInst<(outs), (ins tGPR:$target, i32imm:$jt, i32imm:$id), - Size2Bytes, IIC_Br, + SizeSpecial, IIC_Br, [(ARMbrjt tGPR:$target, tjumptable:$jt, imm:$id)]> { list Predicates = [IsThumb, IsThumb1Only]; } -- 2.34.1