1 ; RUN
: not llvm-mc
-triple msp430
< %s
2>&1 | FileCheck
%s
3 ;; invalid operand count
4 mov
r7 ; CHECK
: :[[@LINE
]]:3: error
: too few operands for instruction
6 ;; invalid destination addressing modes
7 mov
r7, @r15+ ; CHECK
: :[[@LINE
]]:14: error
: invalid operand for instruction
8 mov
r7, #0 ; CHECK: :[[@LINE]]:14: error: invalid operand for instruction
9 mov
r7, #123 ; CHECK: :[[@LINE]]:14: error: invalid operand for instruction
11 ;; invalid byte instructions
12 swpb.
b r7 ; CHECK
: :[[@LINE
]]:3: error
: invalid instruction mnemonic
13 sxt.
b r7 ; CHECK
: :[[@LINE
]]:3: error
: invalid instruction mnemonic
14 call.
b r7 ; CHECK
: :[[@LINE
]]:3: error
: invalid instruction mnemonic
16 ;; invalid conditional jump offsets
17 jmp
-513 ; CHECK
: :[[@LINE
]]:10: error
: invalid jump offset
18 jmp
512 ; CHECK
: :[[@LINE
]]:10: error
: invalid jump offset