27 lines · plain
1# RUN: not llvm-mc -triple=riscv32 --mattr=+xcvelw %s 2>&1 \2# RUN: | FileCheck %s --check-prefixes=CHECK-ERROR3 4cv.elw t0, 0(0)5# CHECK-ERROR: expected register6 7cv.elw 0, 0(x6)8# CHECK-ERROR: invalid operand for instruction9 10cv.elw x12, 2048(x6)11# CHECK-ERROR: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]12 13cv.elw x12, x1(2047)14# CHECK-ERROR: unexpected token15 16cv.elw 0, x12(x6)17# CHECK-ERROR: unexpected token18 19cv.elw x12, x12(x6)20# CHECK-ERROR: unexpected token21 22cv.elw 0, 0(x6)23# CHECK-ERROR: invalid operand for instruction24 25cv.elw x026# CHECK-ERROR: too few operands for instruction27