[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rv32zbb-invalid.s
blobea6a17032fefd8fe20328f4457cbd0f59d954a0c
1 # RUN: not llvm-mc -triple riscv32 -mattr=+experimental-b,experimental-zbb < %s 2>&1 | FileCheck %s
3 # Too many operands
4 clz t0, t1, t2 # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
5 # Too many operands
6 ctz t0, t1, t2 # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
7 # Too many operands
8 cpop t0, t1, t2 # CHECK: :[[@LINE]]:14: error: invalid operand for instruction
9 # Too many operands
10 sext.b t0, t1, t2 # CHECK: :[[@LINE]]:16: error: invalid operand for instruction
11 # Too many operands
12 sext.h t0, t1, t2 # CHECK: :[[@LINE]]:16: error: invalid operand for instruction
13 # Too few operands
14 min t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
15 # Too few operands
16 max t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
17 # Too few operands
18 minu t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
19 # Too few operands
20 maxu t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
21 clzw t0, t1 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
22 ctzw t0, t1 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
23 cpopw t0, t1 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set