[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rv32zba-invalid.s
blob1005fab1b8eda49dc2297676e3c4051dab0eb7ae
1 # RUN: not llvm-mc -triple riscv32 -mattr=+experimental-b,experimental-zba < %s 2>&1 | FileCheck %s
3 # Too few operands
4 sh1add t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
5 # Too few operands
6 sh2add t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
7 # Too few operands
8 sh3add t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
9 slli.uw t0, t1, 0 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
10 add.uw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
11 sh1add.uw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
12 sh2add.uw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set
13 sh3add.uw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set