[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AMDGPU / mcexpr_amd_err.s
blobea02e0136272189e61107b294b1606b1c5ecc6d7
1 // RUN: not llvm-mc -triple amdgcn-amd-amdhsa %s 2>&1 | FileCheck --check-prefix=ASM %s
3 .set one, 1
4 .set two, 2
5 .set three, 3
7 .set max_empty, max()
8 // ASM: :[[@LINE-1]]:{{[0-9]+}}: error: empty max expression
9 // ASM: :[[@LINE-2]]:{{[0-9]+}}: error: missing expression
11 .set or_empty, or()
12 // ASM: :[[@LINE-1]]:{{[0-9]+}}: error: empty or expression
13 // ASM: :[[@LINE-2]]:{{[0-9]+}}: error: missing expression
15 .set max_post_aux_comma, max(one,)
16 // ASM: :[[@LINE-1]]:{{[0-9]+}}: error: mismatch of commas in max expression
17 // ASM: :[[@LINE-2]]:{{[0-9]+}}: error: missing expression
19 .set max_pre_aux_comma, max(,one)
20 // asm: :[[@line-1]]:{{[0-9]+}}: error: unknown token in expression
21 // ASM: :[[@LINE-2]]:{{[0-9]+}}: error: missing expression
23 .set max_double_comma, max(one,, two)
24 // ASM: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression
25 // ASM: :[[@LINE-2]]:{{[0-9]+}}: error: missing expression
27 .set max_no_comma, max(one two)
28 // ASM: :[[@LINE-1]]:{{[0-9]+}}: error: unexpected token in max expression
29 // ASM: :[[@LINE-2]]:{{[0-9]+}}: error: missing expression
31 .set max_missing_paren, max(two
32 // ASM: :[[@LINE-1]]:{{[0-9]+}}: error: unexpected token in max expression
33 // ASM: :[[@LINE-2]]:{{[0-9]+}}: error: missing expression
35 .set max_expression_one, max(three, four,
36 // ASM: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression
37 // ASM: :[[@LINE-2]]:{{[0-9]+}}: error: missing expression
39 .set or_expression_one, or(four, five
40 // ASM: :[[@LINE-1]]:{{[0-9]+}}: error: unexpected token in or expression
41 // ASM: :[[@LINE-2]]:{{[0-9]+}}: error: missing expression
43 .set max_no_lparen, max four, five)
44 // ASM: :[[@LINE-1]]:{{[0-9]+}}: error: expected newline
46 .set max_no_paren, max one, two, three
47 // ASM: :[[@LINE-1]]:{{[0-9]+}}: error: expected newline
49 .set max_rparen_only, max)
50 // ASM: :[[@LINE-1]]:{{[0-9]+}}: error: expected newline
52 .set four, 4
53 .set five, 5