1 # RUN: not llvm-mc -triple=riscv32 < %s 2>&1 \
2 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-RV32,CHECK-RV32I %s
3 # RUN: not llvm-mc -triple=riscv64 < %s 2>&1 \
4 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-RV64,CHECK-RV64I %s
5 # RUN: not llvm-mc -triple=riscv32 -mattr=+f < %s 2>&1 \
6 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-RV32,CHECK-RV32IF %s
7 # RUN: not llvm-mc -triple=riscv64 -mattr=+f < %s 2>&1 \
8 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-RV64,CHECK-RV64IF %s
10 # Tests for the mnemonic spell checker. Suggestions should only include those
11 # which are valid for the current set of features
14 # CHECK-RV32: did you mean: add, addi, and, andi, la
15 # CHECK-RV64: did you mean: add, addi, addw, and, andi, la, ld, sd
16 # CHECK-NEXT: ad x1, x1, x1
19 # CHECK-RV32I: did you mean: la, lb, lh, li, lw
20 # CHECK-RV32IF: did you mean: flw, la, lb, lh, li, lw
21 # CHECK-RV64I: did you mean: la, lb, ld, lh, li, lw
22 # CHECK-RV64IF: did you mean: flw, la, lb, ld, lh, li, lw
23 # CHECK-NEXT: fl ft0, 0(sp)
26 # CHECK-RV32: did you mean: add, addi
27 # CHECK-RV64: did you mean: add, addi, addw
28 # CHECK-NEXT: addd x1, x1, x1
31 # CHECK: did you mean: mv
32 # CHECK-NEXT: vm x0, x0