[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rv32zbbp-invalid.s
blob286f6050434bc60280ae90f361f0cae185ef6bd1
1 # RUN: not llvm-mc -triple riscv32 -mattr=+experimental-b,experimental-zbb,experimental-zbp < %s 2>&1 | FileCheck %s
3 # Too few operands
4 andn t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
5 # Too few operands
6 orn t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
7 # Too few operands
8 xnor t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
9 # Too few operands
10 rol t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
11 # Too few operands
12 ror t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
13 # Too few operands
14 rori t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
15 # Immediate operand out of range
16 rori t0, t1, 32 # CHECK: :[[@LINE]]:14: error: immediate must be an integer in the range [0, 31]
17 rori t0, t1, -1 # CHECK: :[[@LINE]]:14: error: immediate must be an integer in the range [0, 31]
18 rolw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
19 rorw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
20 roriw t0, t1, 31 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
21 roriw t0, t1, 0 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set