brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · c23593a Raw
43 lines · plain
1# RUN: not llvm-mc -triple riscv32 -mattr=+zbb < %s 2>&1 | FileCheck %s2 3# Too many operands4clz t0, t1, t2 # CHECK: :[[@LINE]]:13: error: invalid operand for instruction5# Too many operands6ctz t0, t1, t2 # CHECK: :[[@LINE]]:13: error: invalid operand for instruction7# Too many operands8cpop t0, t1, t2 # CHECK: :[[@LINE]]:14: error: invalid operand for instruction9# Too many operands10sext.b t0, t1, t2 # CHECK: :[[@LINE]]:16: error: invalid operand for instruction11# Too many operands12sext.h t0, t1, t2 # CHECK: :[[@LINE]]:16: error: invalid operand for instruction13# Too few operands14min t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction15# Too few operands16max t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction17# Too few operands18minu t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction19# Too few operands20maxu t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction21clzw t0, t1 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}22ctzw t0, t1 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}23cpopw t0, t1 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}24# Too few operands25andn t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction26# Too few operands27orn t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction28# Too few operands29xnor t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction30# Too few operands31rol t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction32# Too few operands33ror t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction34# Too few operands35rori t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction36# Immediate operand out of range37rori t0, t1, 32 # CHECK: :[[@LINE]]:14: error: immediate must be an integer in the range [0, 31]38rori t0, t1, -1 # CHECK: :[[@LINE]]:14: error: immediate must be an integer in the range [0, 31]39rolw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}40rorw t0, t1, t2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}41roriw t0, t1, 31 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}42roriw t0, t1, 0 # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}43