Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / rv64zbs-invalid.s
blob2fa40ffc90c331521fbe37636577057ee61ed1bd
1 # RUN: not llvm-mc -triple riscv64 -mattr=+zbs < %s 2>&1 | FileCheck %s
3 # Too few operands
4 bclr t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
5 # Too few operands
6 bset t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
7 # Too few operands
8 binv t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
9 # Too few operands
10 bext t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
11 # Too few operands
12 bclri t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
13 # Immediate operand out of range
14 bclri t0, t1, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
15 bclri t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
16 # Too few operands
17 bseti t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
18 # Immediate operand out of range
19 bseti t0, t1, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
20 bseti t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
21 # Too few operands
22 binvi t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
23 # Immediate operand out of range
24 binvi t0, t1, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
25 binvi t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
26 # Too few operands
27 bexti t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
28 # Immediate operand out of range
29 bexti t0, t1, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
30 bexti t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]