[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / RISCV / option-invalid.s
blob8333f1c19978bf093a4811aeb82811bfd418cc63
1 # RUN: not llvm-mc -triple riscv32 < %s 2>&1 \
2 # RUN: | FileCheck -check-prefixes=CHECK %s
4 # CHECK: error: unexpected token, expected identifier
5 .option
7 # CHECK: error: unexpected token, expected identifier
8 .option 123
10 # CHECK: error: unexpected token, expected identifier
11 .option "str"
13 # CHECK: error: unexpected token, expected end of statement
14 .option rvc foo
16 # CHECK: warning: unknown option, expected 'push', 'pop', 'rvc', 'norvc', 'relax' or 'norelax'
17 .option bar
19 # CHECK: error: .option pop with no .option push
20 .option pop
22 # CHECK: error: unexpected token, expected end of statement
23 .option push 123
25 # CHECK: error: unexpected token, expected end of statement
26 .option pop 123