xref: /llvm-project/llvm/test/MC/RISCV/rv32zalrsc-invalid.s (revision 8be079cdddfd628d356d9ddb5ab397ea95fb1030)
1# RUN: not llvm-mc -triple riscv32 -mattr=+a < %s 2>&1 | FileCheck %s
2# RUN: not llvm-mc -triple riscv32 -mattr=+zalrsc < %s 2>&1 | FileCheck %s
3
4# Final operand must have parentheses
5lr.w a4, a5 # CHECK: :[[@LINE]]:10: error: expected '(' or optional integer offset
6
7# lr only takes two operands
8lr.w s0, (s1), s2 # CHECK: :[[@LINE]]:16: error: invalid operand for instruction
9