14 lines · plain
1# RUN: not llvm-mc -triple riscv32 -mattr=+zba < %s 2>&1 | FileCheck %s2 3# Too few operands4sh1add t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction5# Too few operands6sh2add t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction7# Too few operands8sh3add t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction9slli.uw t0, t1, 0 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}10add.uw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}11sh1add.uw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}12sh2add.uw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}13sh3add.uw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}14