forked from OSchip/llvm-project
[RISCV][NFC] Add RV64Zbs invalid tests
Add a new test rv64zbs-invalid.s along with the aleady existing rv32zbs-invalid.s. Reviewed By: craig.topper, asb Differential Revision: https://reviews.llvm.org/D124428
This commit is contained in:
parent
41d2c6df5c
commit
c15ae0a37d
|
@ -0,0 +1,30 @@
|
|||
# RUN: not llvm-mc -triple riscv64 -mattr=+zbs < %s 2>&1 | FileCheck %s
|
||||
|
||||
# Too few operands
|
||||
bclr t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
|
||||
# Too few operands
|
||||
bset t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
|
||||
# Too few operands
|
||||
binv t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
|
||||
# Too few operands
|
||||
bext t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
|
||||
# Too few operands
|
||||
bclri t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
|
||||
# Immediate operand out of range
|
||||
bclri t0, t1, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
|
||||
bclri t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
|
||||
# Too few operands
|
||||
bseti t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
|
||||
# Immediate operand out of range
|
||||
bseti t0, t1, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
|
||||
bseti t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
|
||||
# Too few operands
|
||||
binvi t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
|
||||
# Immediate operand out of range
|
||||
binvi t0, t1, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
|
||||
binvi t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
|
||||
# Too few operands
|
||||
bexti t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
|
||||
# Immediate operand out of range
|
||||
bexti t0, t1, 64 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
|
||||
bexti t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 63]
|
Loading…
Reference in New Issue