[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rv64zbbp-invalid.s
blob78d827a1856caa11cfbebdfd6effa823f62b95cc
1 # RUN: not llvm-mc -triple riscv64 -mattr=+experimental-b,experimental-zbb,experimental-zbp < %s 2>&1 | FileCheck %s
3 # Too few operands
4 rolw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
5 # Too few operands
6 rorw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
7 # Too few operands
8 roriw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
9 # Immediate operand out of range
10 roriw t0, t1, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
11 roriw t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
12 # Too few operands
13 packw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
14 # Too few operands
15 packuw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction