1 # RUN: not llvm-mc -triple riscv32 -mattr=+experimental-b,experimental-zbs < %s 2>&1 | FileCheck %s
4 bclr t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
6 bset t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
8 binv t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
10 bext t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
12 bclri t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
13 # Immediate operand out of range
14 bclri t0
, t1
, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
15 bclri t0
, t1
, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
17 bseti t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
18 # Immediate operand out of range
19 bseti t0
, t1
, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
20 bseti t0
, t1
, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
22 binvi t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
23 # Immediate operand out of range
24 binvi t0
, t1
, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
25 binvi t0
, t1
, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
27 bexti t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
28 # Immediate operand out of range
29 bexti t0
, t1
, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
30 bexti t0
, t1
, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
31 bclrw t0
, t1
, t2
# CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
32 bsetw t0
, t1
, t2
# CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
33 binvw t0
, t1
, t2
# CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
34 bextw t0
, t1
, t2
# CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
35 bclriw t0
, t1
, 0 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
36 bsetiw t0
, t1
, 0 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
37 binviw t0
, t1
, 0 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set