1# RUN: not llvm-mc -triple riscv64 -mattr=+zbb < %s 2>&1 | FileCheck %s 2 3# Too many operands 4clzw t0, t1, t2 # CHECK: :[[@LINE]]:14: error: invalid operand for instruction 5# Too many operands 6ctzw t0, t1, t2 # CHECK: :[[@LINE]]:14: error: invalid operand for instruction 7# Too many operands 8cpopw t0, t1, t2 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction 9# Too few operands 10rolw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 11# Too few operands 12rorw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 13# Too few operands 14roriw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction 15# Immediate operand out of range 16roriw t0, t1, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31] 17roriw t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31] 18rori t0, t1, 64 # CHECK: :[[@LINE]]:14: error: immediate must be an integer in the range [0, 63] 19rori t0, t1, -1 # CHECK: :[[@LINE]]:14: error: immediate must be an integer in the range [0, 63] 20