[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rv32zbt-invalid.s
blob2d81463572f7268152bcae1997bb53af5b49e52d
1 # RUN: not llvm-mc -triple riscv32 -mattr=+experimental-b,experimental-zbt < %s 2>&1 | FileCheck %s
3 # Too few operands
4 cmix t0, t1, t2 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
5 # Too few operands
6 cmov t0, t1, t2 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
7 # Too few operands
8 fsl t0, t1, t2 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
9 # Too few operands
10 fsr t0, t1, t2 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
11 # Too few operands
12 fsri t0, t1, t2 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
13 # Immediate operand out of range
14 fsri t0, t1, t2, 32 # CHECK: :[[@LINE]]:18: error: immediate must be an integer in the range [0, 31]
15 fsri t0, t1, t2, -1 # CHECK: :[[@LINE]]:18: error: immediate must be an integer in the range [0, 31]
16 fslw t0, t1, t2, t3 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
17 fsrw t0, t1, t2, t3 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
18 fsriw t0, t1, t2, 0 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set