aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MC/RISCV/rv32zalrsc-invalid.s
blob: 61cfc614b7c4206ed69ab0c2fb1a8caddff53cbc (plain)
1
2
3
4
5
6
7
# RUN: not llvm-mc -triple riscv32 -mattr=+a < %s 2>&1 | FileCheck %s

# Final operand must have parentheses
lr.w a4, a5 # CHECK: :[[@LINE]]:10: error: expected '(' or optional integer offset

# lr only takes two operands
lr.w s0, (s1), s2 # CHECK: :[[@LINE]]:16: error: invalid operand for instruction