summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorPrakhar Bahuguna <prakhar.bahuguna@arm.com>2016-08-16 10:41:56 +0000
committerPrakhar Bahuguna <prakhar.bahuguna@arm.com>2016-08-16 10:41:56 +0000
commita27c4a0e66e3f5c514baa6dafd6a8b1925a0d470 (patch)
tree046846031cf2d5f344bd10e2b614cda4d2b1eade /llvm/test
parent15ed7ec5aab8de283b2cfc9b674b5382024c1da1 (diff)
downloadbcm5719-llvm-a27c4a0e66e3f5c514baa6dafd6a8b1925a0d470.tar.gz
bcm5719-llvm-a27c4a0e66e3f5c514baa6dafd6a8b1925a0d470.zip
Correct the upper bound for a CBZ/CBNZ branch target.
Summary: Fix for the upper bound check that was causing a build failure. Reviewers: olista01, rengolin, t.p.northover Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23501 llvm-svn: 278789
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/ARM/thumb-cb-negative-offsets.s14
1 files changed, 13 insertions, 1 deletions
diff --git a/llvm/test/MC/ARM/thumb-cb-negative-offsets.s b/llvm/test/MC/ARM/thumb-cb-negative-offsets.s
index cd70126ea95..8abff68de14 100644
--- a/llvm/test/MC/ARM/thumb-cb-negative-offsets.s
+++ b/llvm/test/MC/ARM/thumb-cb-negative-offsets.s
@@ -16,4 +16,16 @@ label0:
.space 1000
label1:
- .word 4
+ nop
+
+@ CHECK: out of range pc-relative fixup value
+ cbz r0, label2
+ .space 130
+label2:
+ nop
+
+@ CHECK-NOT: label3
+ cbnz r0, label3
+ .space 128
+label3:
+ nop
OpenPOWER on IntegriCloud