xref: /llvm-project/llvm/test/MC/RISCV/XTHeadBa-invalid.s (revision e25b30d90a69846650fa15a3e41a013ea20193ff)
1# RUN: not llvm-mc -triple riscv32 -mattr=+xtheadba < %s 2>&1 | FileCheck %s
2# RUN: not llvm-mc -triple riscv64 -mattr=+xtheadba < %s 2>&1 | FileCheck %s
3
4# Too few operands
5th.addsl t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
6# Too few operands
7th.addsl t0, t1, t2 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
8# Immediate operand out of range
9th.addsl t0, t1, t2, 4 # CHECK: :[[@LINE]]:22: error: immediate must be an integer in the range [0, 3]
10# Immediate operand out of range
11th.addsl t0, t1, t2, -1 # CHECK: :[[@LINE]]:22: error: immediate must be an integer in the range [0, 3]
12