[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rv64zba-invalid.s
blob02ba66d879491ef141671bfc9315616d93547971
1 # RUN: not llvm-mc -triple riscv64 -mattr=+experimental-b,experimental-zba < %s 2>&1 | FileCheck %s
3 # Too few operands
4 slli.uw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
5 # Immediate operand out of range
6 slli.uw t0, t1, 64 # CHECK: :[[@LINE]]:17: error: immediate must be an integer in the range [0, 63]
7 slli.uw t0, t1, -1 # CHECK: :[[@LINE]]:17: error: immediate must be an integer in the range [0, 63]
8 # Too few operands
9 add.uw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
10 # Too few operands
11 sh1add.uw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
12 # Too few operands
13 sh2add.uw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
14 # Too few operands
15 sh3add.uw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction