[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / Mips / mips_directives_bad.s
blob494333dd68719c4815707cda2eb1c7012a65e9c7
1 # Error checking for malformed directives
2 # RUN: not llvm-mc -triple mips-unknown-unknown %s 2>&1 | FileCheck %s
4 .abicalls should have no operands
5 # CHECK: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected end of statement
6 # CHECK-NEXT: .abicalls should have no operands
7 # CHECK-NEXT: ^
9 # We don't know yet how to represent a list of options
10 # pic2 will eventually be legal so we will probably want
11 # to change it to something silly.
13 # Blank option operand
14 .option
15 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected identifier
16 # CHECK-NEXT: .option
17 # CHECK-NEXT: ^
19 # Numeric option operand
20 .option 2
21 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected identifier
22 # CHECK-NEXT: .option 2
23 # CHECK-NEXT: ^
25 # Register option operand
26 .option $2
27 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected identifier
28 # CHECK-NEXT: .option $2
29 # CHECK-NEXT: ^
31 .option WithBadOption
32 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: warning: unknown option, expected 'pic0' or 'pic2'
33 # CHECK-NEXT: .option WithBadOption
34 # CHECK-NEXT: ^
36 .option pic0,
37 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected end of statement
38 # CHECK-NEXT: .option pic0,
39 # CHECK-NEXT: ^
41 .option pic0,pic2
42 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected end of statement
43 # CHECK-NEXT: .option pic0,pic2
44 # CHECK-NEXT: ^
46 .option pic0 pic2
47 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected end of statement
48 # CHECK-NEXT: .option pic0 pic2
49 # CHECK-NEXT: ^
51 .option pic2,
52 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected end of statement
53 # CHECK-NEXT: .option pic2,
54 # CHECK-NEXT: ^
56 .option pic2 pic3
57 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected end of statement
58 # CHECK-NEXT: .option pic2 pic3
59 # CHECK-NEXT: ^
61 .set 123, $a0
62 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: expected identifier after .set
63 # CHECK-NEXT: .set 123
64 # CHECK-NEXT: ^
66 .set reg.
67 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected comma
68 # CHECK-NEXT: .set reg.
69 # CHECK-NEXT: ^