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