xref: /llvm-project/llvm/test/MC/RISCV/rv32xtheadbs-invalid.s (revision 04a2baf58f2362cac85edbd55747cecb135b9ae5)
1# RUN: not llvm-mc -triple riscv32 -mattr=+xtheadbs < %s 2>&1 | FileCheck %s
2
3# Too few operands
4th.tst t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
5# Immediate operand out of range
6th.tst t0, t1, 32 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]
7th.tst t0, t1, -1 # CHECK: :[[@LINE]]:16: error: immediate must be an integer in the range [0, 31]
8