1# RUN: not llvm-mc -triple=riscv32 --mattr=+xcvelw %s 2>&1 \ 2# RUN: | FileCheck %s --check-prefixes=CHECK-ERROR 3 4cv.elw t0, 0(0) 5# CHECK-ERROR: expected register 6 7cv.elw 0, 0(x6) 8# CHECK-ERROR: invalid operand for instruction 9 10cv.elw x12, 2048(x6) 11# CHECK-ERROR: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo modifier or an integer in the range [-2048, 2047] 12 13cv.elw x12, x1(2047) 14# CHECK-ERROR: unexpected token 15 16cv.elw 0, x12(x6) 17# CHECK-ERROR: unexpected token 18 19cv.elw x12, x12(x6) 20# CHECK-ERROR: unexpected token 21 22cv.elw 0, 0(x6) 23# CHECK-ERROR: invalid operand for instruction 24 25cv.elw x0 26# CHECK-ERROR: too few operands for instruction 27