diff options
| author | Prakhar Bahuguna <prakhar.bahuguna@arm.com> | 2016-08-16 10:41:52 +0000 |
|---|---|---|
| committer | Prakhar Bahuguna <prakhar.bahuguna@arm.com> | 2016-08-16 10:41:52 +0000 |
| commit | 15ed7ec5aab8de283b2cfc9b674b5382024c1da1 (patch) | |
| tree | 48c40b51ab3f6bf481f75f0c99a6844dc58f80b1 /llvm/test/CodeGen/Generic/icmp-illegal.ll | |
| parent | f16cd361d41135d7f261fd407d74fff38de9dfcb (diff) | |
| download | bcm5719-llvm-15ed7ec5aab8de283b2cfc9b674b5382024c1da1.tar.gz bcm5719-llvm-15ed7ec5aab8de283b2cfc9b674b5382024c1da1.zip | |
[Thumb] Validate branch target for CBZ/CBNZ instructions.
Summary:
The assembler currently does not check the branch target for CBZ/CBNZ
instructions, which only permit branching forwards with a positive offset. This
adds validation for the branch target to ensure negative PC-relative offsets are
not encoded into the instruction, whether specified as a literal or as an
assembler symbol.
Reviewers: rengolin, t.p.northover
Subscribers: llvm-commits, rengolin
Differential Revision: https://reviews.llvm.org/D23312
llvm-svn: 278788
Diffstat (limited to 'llvm/test/CodeGen/Generic/icmp-illegal.ll')
0 files changed, 0 insertions, 0 deletions

