Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / rv32zicond-invalid.s
bloba350593993b525fcac84b9c0d006237b1ae274ea
1 # RUN: not llvm-mc -triple riscv32 -mattr=+experimental-zicond < %s 2>&1 | FileCheck %s
2 # RUN: not llvm-mc -triple riscv64 -mattr=+experimental-zicond < %s 2>&1 | FileCheck %s
4 # Use of operand modifier on register name
5 czero.eqz t1, %lo(t2), t3 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction
7 # Invalid register name
8 czero.nez a4, a3, foo # CHECK: :[[@LINE]]:19: error: invalid operand for instruction
10 # Invalid operand type
11 czero.eqz t1, 2, t3 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction
13 # Too many operands
14 czero.eqz t1, t2, t3, t4 # CHECK: :[[@LINE]]:23: error: invalid operand for instruction
15 czero.nez t1, t2, t3, 4 # CHECK: :[[@LINE]]:23: error: invalid operand for instruction
17 # Too few operands
18 czero.eqz t1, t2 # CHECK: :[[@LINE]]:1: error: too few operands for instruction