[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / thumb-cb-offsets.s
blob3a70d4479fd1d4fab83f0f6834b2663fdb692c88
1 @ RUN: not llvm-mc -triple thumbv7m-none-eabi -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s
2 @ RUN: not llvm-mc -triple thumbv8m.base-none-eabi -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s
4 label0:
5 .word 4
7 @ CHECK: out of range pc-relative fixup value
8 cbz r0, label0
9 @ CHECK: out of range pc-relative fixup value
10 cbnz r0, label0
12 @ CHECK: out of range pc-relative fixup value
13 cbz r0, label1
14 @ CHECK: out of range pc-relative fixup value
15 cbnz r0, label1
17 .space 1000
18 label1:
19 nop
21 @ CHECK: out of range pc-relative fixup value
22 cbz r0, label2
23 .space 130
24 label2:
25 nop
27 @ CHECK: out of range pc-relative fixup value
28 cbz r0, label4
29 .space 33
30 label4:
31 nop
33 .align 2
34 @ CHECK-NOT: label3
35 cbnz r0, label3
36 .space 128
37 label3:
38 nop