diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-12-21 01:57:15 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-12-21 01:57:15 +0000 |
commit | cdcc4fc04810028024c95dc29a9ec88fde9a009f (patch) | |
tree | dd3333bf05c1ef3884284469a258c171eec8cab6 /llvm/lib | |
parent | 18581a4ac0077509579d2cacbebb379770089c55 (diff) | |
download | llvm-cdcc4fc04810028024c95dc29a9ec88fde9a009f.zip llvm-cdcc4fc04810028024c95dc29a9ec88fde9a009f.tar.gz llvm-cdcc4fc04810028024c95dc29a9ec88fde9a009f.tar.bz2 |
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.
<rdar://problem/8782216>
llvm-svn: 122303
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstrThumb.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td index 56356514..ec0b3a3 100644 --- a/llvm/lib/Target/ARM/ARMInstrThumb.td +++ b/llvm/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<Predicate> Predicates = [IsThumb, IsThumb1Only]; } |