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
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
15 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected identifier
19 # Numeric option operand
21 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected identifier
22 # CHECK-NEXT: .option 2
25 # Register option operand
27 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected identifier
28 # CHECK-NEXT: .option $2
32 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: warning: unknown option, expected 'pic0' or 'pic2'
33 # CHECK-NEXT: .option WithBadOption
37 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected end of statement
38 # CHECK-NEXT: .option pic0,
42 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected end of statement
43 # CHECK-NEXT: .option pic0,pic2
47 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected end of statement
48 # CHECK-NEXT: .option pic0 pic2
52 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected end of statement
53 # CHECK-NEXT: .option pic2,
57 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected end of statement
58 # CHECK-NEXT: .option pic2 pic3
62 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: expected identifier after .set
63 # CHECK-NEXT: .set 123
67 # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token, expected comma
68 # CHECK-NEXT: .set reg.