From a27c4a0e66e3f5c514baa6dafd6a8b1925a0d470 Mon Sep 17 00:00:00 2001 From: Prakhar Bahuguna Date: Tue, 16 Aug 2016 10:41:56 +0000 Subject: 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 --- llvm/test/MC/ARM/thumb-cb-negative-offsets.s | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'llvm/test') 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 -- cgit v1.2.3