[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rv64zbp-invalid.s
blobd5b37b2f8dab4795a56609884a2f544ac5cb9f76
1 # RUN: not llvm-mc -triple riscv64 -mattr=+experimental-b,experimental-zbp < %s 2>&1 | FileCheck %s
3 # Too few operands
4 gorcw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
5 # Too few operands
6 grevw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
7 # Too few operands
8 gorciw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
9 # Immediate operand out of range
10 gorciw t0, t1, 32 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]
11 gorciw t0, t1, -1 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]
12 # Too few operands
13 greviw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
14 # Immediate operand out of range
15 greviw t0, t1, 32 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]
16 greviw t0, t1, -1 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]
17 # Too few operands
18 shflw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
19 # Too few operands
20 unshflw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
21 # Too few operands
22 xperm.w t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction