1 # RUN: not llvm-mc -triple riscv32 < %s 2>&1 \
2 # RUN: | FileCheck --implicit-check-not=error: %s
4 # CHECK: :[[#@LINE+1]]:8: error: expected identifier
7 # CHECK: :[[#@LINE+1]]:9: error: expected identifier
10 # CHECK: :[[#@LINE+1]]:9: error: expected identifier
13 # CHECK: :[[#@LINE+1]]:13: error: expected newline
16 # CHECK: :[[#@LINE+1]]:23: error: unexpected token, expected + or -
17 .option arch, +f, +d, rv32ifd, -d
19 # CHECK: :[[#@LINE+1]]:22: error: expected newline
20 .option arch, rv32ifd, +f, +d
22 # CHECK: :[[#@LINE+1]]:16: error: unexpected token, expected identifier
25 # CHECK: :[[#@LINE+1]]:16: error: unknown extension feature
28 # CHECK: :[[#@LINE+1]]:16: error: unknown extension feature
31 # CHECK: :[[#@LINE+1]]:16: error: unexpected token, expected identifier
34 # CHECK: :[[#@LINE+1]]:18: error: expected comma
37 # CHECK: :[[#@LINE+1]]:16: error: extension version number parsing not currently implemented
41 # CHECK: :[[#@LINE+1]]:16: error: can't disable f extension; d extension requires f extension
44 # CHECK: :[[#@LINE+1]]:16: error: can't disable zicsr extension; f extension requires zicsr extension
47 # CHECK: :[[#@LINE+1]]:20: error: 'f' and 'zfinx' extensions are incompatible
48 .option arch, +f, +zfinx
50 ## Make sure the above error isn't sticky
53 # CHECK: :[[#@LINE+1]]:13: error: expected newline
56 # CHECK: :[[#@LINE+1]]:12: warning: unknown option, expected 'push', 'pop', 'rvc', 'norvc', 'arch', 'relax' or 'norelax'
59 # CHECK: :[[#@LINE+1]]:12: error: .option pop with no .option push
62 # CHECK: :[[#@LINE+1]]:14: error: expected newline
65 # CHECK: :[[#@LINE+1]]:13: error: expected newline
68 # CHECK: :[[#@LINE+1]]:15: error: bad arch string switching from rv32 to rv64