1 # RUN: not llvm-mc -triple riscv64 -mattr=+experimental-b,experimental-zbs < %s 2>&1 | FileCheck %s
4 bclrw t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
6 bsetw t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
8 binvw t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
10 bextw t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
12 bclriw t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
13 # Immediate operand out of range
14 bclriw t0
, t1
, 32 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]
15 bclriw t0
, t1
, -1 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]
17 bsetiw t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
18 # Immediate operand out of range
19 bsetiw t0
, t1
, 32 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]
20 bsetiw t0
, t1
, -1 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]
22 binviw t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
23 # Immediate operand out of range
24 binviw t0
, t1
, 32 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]
25 binviw t0
, t1
, -1 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]