1# RUN: not llvm-mc -triple riscv64 -mattr=+experimental-b,experimental-zbb < %s 2>&1 | FileCheck %s 2 3# Too few operands 4addiwu t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 5# Immediate operand out of range 6addiwu t0, t1, 2048 # CHECK: :[[@LINE]]:16: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo modifier or an integer in the range [-2048, 2047] 7addiwu t0, t1, -2049 # CHECK: :[[@LINE]]:16: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo modifier or an integer in the range [-2048, 2047] 8# Too few operands 9slliu.w t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 10# Immediate operand out of range 11slliu.w t0, t1, 64 # CHECK: :[[@LINE]]:17: error: immediate must be an integer in the range [0, 63] 12slliu.w t0, t1, -1 # CHECK: :[[@LINE]]:17: error: immediate must be an integer in the range [0, 63] 13# Too few operands 14addwu t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 15# Too few operands 16subwu t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 17# Too few operands 18addu.w t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 19# Too few operands 20subu.w t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 21# Too few operands 22slow t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 23# Too few operands 24srow t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 25# Too few operands 26sloiw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 27# Immediate operand out of range 28sloiw t0, t1, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31] 29sloiw t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31] 30# Too few operands 31sroiw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 32# Immediate operand out of range 33sroiw t0, t1, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31] 34sroiw t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31] 35# Too many operands 36clzw t0, t1, t2 # CHECK: :[[@LINE]]:14: error: invalid operand for instruction 37# Too many operands 38ctzw t0, t1, t2 # CHECK: :[[@LINE]]:14: error: invalid operand for instruction 39# Too many operands 40pcntw t0, t1, t2 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction 41