• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Instructions that are invalid.
2#
3# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r6 -mattr=+ginv 2>%t1
4# RUN: FileCheck %s < %t1
5# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64r6 -mattr=+ginv 2>%t1
6# RUN: FileCheck %s < %t1
7# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r6 \
8# RUN:     -mattr=+micromips,+ginv 2>%t1
9# RUN: FileCheck %s < %t1
10
11  ginvi            # CHECK: :[[@LINE]]:3: error: too few operands for instruction
12  ginvi 0          # CHECK: :[[@LINE]]:9: error: invalid operand for instruction
13  ginvi $4, 0      # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
14  ginvi $4, $5     # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
15  ginvi 0($4)      # CHECK: :[[@LINE]]:10: error: unexpected token in argument list
16  ginvt            # CHECK: :[[@LINE]]:3: error: too few operands for instruction
17  ginvt 0          # CHECK: :[[@LINE]]:9: error: invalid operand for instruction
18  ginvt $4         # CHECK: :[[@LINE]]:3: error: too few operands for instruction
19  ginvt $4, $5     # CHECK: :[[@LINE]]:13: error: expected 2-bit unsigned immediate
20  ginvt $4, 4      # CHECK: :[[@LINE]]:13: error: expected 2-bit unsigned immediate
21  ginvt $4, -1     # CHECK: :[[@LINE]]:13: error: expected 2-bit unsigned immediate
22  ginvt $4, 0, 1   # CHECK: :[[@LINE]]:16: error: invalid operand for instruction
23  ginvt $4, 0($4)  # CHECK: :[[@LINE]]:14: error: invalid operand for instruction
24