[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / option-invalid.s
blobd4509b8f9f1c31156e2eff7fe48b8636090d34a7
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