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