• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: not llvm-mc -arch=mips -mcpu=mips32r2 -mattr=+mt -show-encoding < %s 2>%t1
2# RUN: FileCheck %s < %t1
3
4  mftc0 $4, 0($5)     # CHECK: error: invalid operand for instruction
5  mftc0 $4, 0($5), 1  # CHECK: error: invalid operand for instruction
6  mftc0 $4, $5, -1    # CHECK: error: expected 3-bit unsigned immediate
7  mftc0 $4, $5, 9     # CHECK: error: expected 3-bit unsigned immediate
8  mftc0 $4, $5, $6    # CHECK: error: expected 3-bit unsigned immediate
9  mftgpr $4, 0($5)    # CHECK: error: invalid operand for instruction
10  mftgpr $4, $5, $6   # CHECK: error: invalid operand for instruction
11  mftlo $3, 0($ac1)   # CHECK: error: invalid operand for instruction
12  mftlo $4, $ac1, $4  # CHECK: error: invalid operand for instruction
13  mfthi $3, 0($ac1)   # CHECK: error: invalid operand for instruction
14  mfthi $4, $ac1, $4  # CHECK: error: invalid operand for instruction
15  mftacx $3, 0($ac1)  # CHECK: error: invalid operand for instruction
16  mftacx $4, $ac1, $4 # CHECK: error: invalid operand for instruction
17  mftdsp $4, $5       # CHECK: error: invalid operand for instruction
18  mftdsp $4, $f5      # CHECK: error: invalid operand for instruction
19  mftdsp $4, $ac0     # CHECK: error: invalid operand for instruction
20  mftc1 $4, 0($f4)    # CHECK: error: invalid operand for instruction
21  mfthc1 $4, 0($f4)   # CHECK: error: invalid operand for instruction
22  cftc1 $4, 0($f4)    # CHECK: error: invalid operand for instruction
23  cftc1 $4, $f4, $5   # CHECK: error: invalid operand for instruction
24