• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: not llvm-mc -triple riscv32 -mattr=+experimental-b,experimental-zbp < %s 2>&1 | FileCheck %s
2
3# Too few operands
4gorc t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
5# Too few operands
6grev t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
7# Too few operands
8gorci t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
9# Immediate operand out of range
10gorci t0, t1, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
11gorci t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
12# Too few operands
13grevi t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
14# Immediate operand out of range
15grevi t0, t1, 32 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
16grevi t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 31]
17# Too few operands
18shfl t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
19# Too few operands
20unshfl t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
21# Too few operands
22shfli t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
23# Immediate operand out of range
24shfli t0, t1, 16 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 15]
25shfli t0, t1, -1 # CHECK: :[[@LINE]]:15: error: immediate must be an integer in the range [0, 15]
26# Too few operands
27unshfli t0, t1 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
28# Immediate operand out of range
29unshfli t0, t1, 16 # CHECK: :[[@LINE]]:17: error: immediate must be an integer in the range [0, 15]
30unshfli t0, t1, -1 # CHECK: :[[@LINE]]:17: error: immediate must be an integer in the range [0, 15]
31