[NFC][analyzer][docs] Crosslink MallocChecker's ownership attributes (#121939)
[llvm-project.git] / llvm / test / MC / RISCV / rv64zbb-invalid.s
blobc4e5bacb7c39e40c0d81059254da8ab766d3a20f
1 # RUN: not llvm-mc -triple riscv64 -mattr=+zbb < %s 2>&1 | FileCheck %s
3 # Too many operands
4 clzw t0, t1, t2 # CHECK: :[[@LINE]]:14: error: invalid operand for instruction
5 # Too many operands
6 ctzw t0, t1, t2 # CHECK: :[[@LINE]]:14: error: invalid operand for instruction
7 # Too many operands
8 cpopw t0, t1, t2 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction
9 # Too few operands
10 rolw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
11 # Too few operands
12 rorw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
13 # Too few operands
14 roriw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
15 # Immediate operand out of range
16 roriw t0, t1, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
17 roriw t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
18 rori t0, t1, 64 # CHECK: :[[@LINE]]:14: error: immediate must be an integer in the range [0, 63]
19 rori t0, t1, -1 # CHECK: :[[@LINE]]:14: error: immediate must be an integer in the range [0, 63]