[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rv64zbs-invalid.s
blob48944220ca1606a8eb2362441bc102f6df1b8121
1 # RUN: not llvm-mc -triple riscv64 -mattr=+experimental-b,experimental-zbs < %s 2>&1 | FileCheck %s
3 # Too few operands
4 bclrw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
5 # Too few operands
6 bsetw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
7 # Too few operands
8 binvw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
9 # Too few operands
10 bextw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
11 # Too few operands
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]
16 # Too few operands
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]
21 # Too few operands
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]