[NFC][analyzer][docs] Crosslink MallocChecker's ownership attributes (#121939)
[llvm-project.git] / llvm / test / MC / ARM / thumb_set-diagnostics.s
blobdedc9dddc406c5bdfc8e2f010baa9c2e7aaa850f
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 @ CHECK: ^
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
27 @ CHECK: :[[#@LINE-1]]:26: error: expected comma
28 @ CHECK: .thumb_set missing_comma
29 @ CHECK: ^
31 .thumb_set missing_expression,
33 @ CHECK: error: missing expression
34 @ CHECK: .thumb_set missing_expression,
35 @ CHECK: ^
37 .thumb_set trailer_trash, 0x11fe1e55,
39 @ CHECK: error: expected newline
40 @ CHECK: .thumb_set trailer_trash, 0x11fe1e55,
41 @ CHECK: ^
43 .type alpha,%function
44 alpha:
45 nop
47 .type beta,%function
48 beta:
49 bkpt
51 .thumb_set beta, alpha
53 @ CHECK: error: redefinition of 'beta'
54 @ CHECK: .thumb_set beta, alpha
55 @ CHECK: ^
57 .type recursive_use,%function
58 .thumb_set recursive_use, recursive_use + 1
60 @ CHECK: error: Recursive use of 'recursive_use'
61 @ CHECK: .thumb_set recursive_use, recursive_use + 1
62 @ CHECK: ^
64 variable_result = alpha + 1
65 .long variable_result
66 .thumb_set variable_result, 1
68 @ CHECK: error: invalid reassignment of non-absolute variable 'variable_result'
69 @ CHECK: .thumb_set variable_result, 1
70 @ CHECK: ^