brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · c4e5bac Raw
20 lines · plain
1# RUN: not llvm-mc -triple riscv64 -mattr=+zbb < %s 2>&1 | FileCheck %s2 3# Too many operands4clzw t0, t1, t2 # CHECK: :[[@LINE]]:14: error: invalid operand for instruction5# Too many operands6ctzw t0, t1, t2 # CHECK: :[[@LINE]]:14: error: invalid operand for instruction7# Too many operands8cpopw t0, t1, t2 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction9# Too few operands10rolw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction11# Too few operands12rorw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction13# Too few operands14roriw t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction15# Immediate operand out of range16roriw t0, t1, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]17roriw t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]18rori t0, t1, 64 # CHECK: :[[@LINE]]:14: error: immediate must be an integer in the range [0, 63]19rori t0, t1, -1 # CHECK: :[[@LINE]]:14: error: immediate must be an integer in the range [0, 63]20