1 # RUN: not llvm-mc -triple riscv64 -mattr=+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
, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
15 bclri t0
, t1
, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
17 bseti t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
18 # Immediate operand out of range
19 bseti t0
, t1
, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
20 bseti t0
, t1
, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
22 binvi t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
23 # Immediate operand out of range
24 binvi t0
, t1
, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
25 binvi t0
, t1
, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
27 bexti t0
, t1
# CHECK: :[[@LINE]]:1: error: too few operands for instruction
28 # Immediate operand out of range
29 bexti t0
, t1
, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
30 bexti t0
, t1
, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]