[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / thumb_set-diagnostics.s
blob86f1ee5245c22de4cf7ec9a2f7e866f5656f6da7
1 @ RUN: not llvm-mc -triple armv7-eabi -o /dev/null 2>&1 %s | FileCheck %s
3 .syntax unified
5 .thumb
7 .thumb_set
9 @ CHECK: error: expected identifier after '.thumb_set'
10 @ CHECK: .thumb_set
11 @ CHECL: ^
13 .thumb_set ., 0x0b5e55ed
15 @ CHECK: error: expected identifier after '.thumb_set'
16 @ CHECK: .thumb_set ., 0x0b5e55ed
17 @ CHECK: ^
19 .thumb_set labelled, 0x1abe11ed
20 .thumb_set invalid, :lower16:labelled
22 @ CHECK: error: unknown token in expression
23 @ CHECK: .thumb_set invalid, :lower16:labelled
24 @ CHECK: ^
26 .thumb_set missing_comma
28 @ CHECK: error: expected comma after name 'missing_comma'
29 @ CHECK: .thumb_set missing_comma
30 @ CHECK: ^
32 .thumb_set missing_expression,
34 @ CHECK: error: missing expression
35 @ CHECK: .thumb_set missing_expression,
36 @ CHECK: ^
38 .thumb_set trailer_trash, 0x11fe1e55,
40 @ CHECK: error: unexpected token
41 @ CHECK: .thumb_set trailer_trash, 0x11fe1e55,
42 @ CHECK: ^
44 .type alpha,%function
45 alpha:
46 nop
48 .type beta,%function
49 beta:
50 bkpt
52 .thumb_set beta, alpha
54 @ CHECK: error: redefinition of 'beta'
55 @ CHECK: .thumb_set beta, alpha
56 @ CHECK: ^
58 .type recursive_use,%function
59 .thumb_set recursive_use, recursive_use + 1
61 @ CHECK: error: Recursive use of 'recursive_use'
62 @ CHECK: .thumb_set recursive_use, recursive_use + 1
63 @ CHECK: ^
65 variable_result = alpha + 1
66 .long variable_result
67 .thumb_set variable_result, 1
69 @ CHECK: error: invalid reassignment of non-absolute variable 'variable_result'
70 @ CHECK: .thumb_set variable_result, 1
71 @ CHECK: ^