• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc %s -triple=mips-unknown-linux -show-encoding -show-inst -mattr=micromips,eva | FileCheck %s
2
3.set noat
4addiusp -16                 # CHECK: addiusp -16        # encoding: [0x4f,0xf9]
5                            # CHECK:                    # <MCInst #{{.*}} ADDIUSP_MM
6addiusp -1028               # CHECK: addiusp -1028      # encoding: [0x4f,0xff]
7                            # CHECK:                    # <MCInst #{{.*}} ADDIUSP_MM
8addiusp -1032               # CHECK: addiusp -1032      # encoding: [0x4f,0xfd]
9                            # CHECK:                    # <MCInst #{{.*}} ADDIUSP_MM
10addiusp 1024                # CHECK: addiusp 1024       # encoding: [0x4c,0x01]
11                            # CHECK:                    # <MCInst #{{.*}} ADDIUSP_MM
12addiusp 1028                # CHECK: addiusp 1028       # encoding: [0x4c,0x03]
13                            # CHECK:                    # <MCInst #{{.*}} ADDIUSP_MM
14andi16 $16, $2, 31          # CHECK: andi16 $16, $2, 31 # encoding: [0x2c,0x29]
15                            # CHECK:                    # <MCInst #{{.*}} ANDI16_MM
16jraddiusp 20                # CHECK: jraddiusp 20       # encoding: [0x47,0x05]
17                            # CHECK:                    # <MCInst #{{.*}} JRADDIUSP
18addu16 $6, $17, $4          # CHECK: addu16 $6, $17, $4 # encoding: [0x07,0x42]
19                            # CHECK:                    # <MCInst #{{.*}} ADDU16_MM
20subu16 $5, $16, $3          # CHECK: subu16 $5, $16, $3 # encoding: [0x06,0xb1]
21                            # CHECK:                    # <MCInst #{{.*}} SUBU16_MM
22and16 $16, $2               # CHECK: and16 $16, $2      # encoding: [0x44,0x82]
23                            # CHECK:                    # <MCInst #{{.*}} AND16_MM
24not16 $17, $3               # CHECK: not16 $17, $3      # encoding: [0x44,0x0b]
25                            # CHECK:                    # <MCInst #{{.*}} NOT16_MM
26or16 $16, $4                # CHECK: or16 $16, $4       # encoding: [0x44,0xc4]
27                            # CHECK:                    # <MCInst #{{.*}} OR16_MM
28xor16 $17, $5               # CHECK: xor16 $17, $5      # encoding: [0x44,0x4d]
29                            # CHECK:                    # <MCInst #{{.*}} XOR16_MM
30sll16 $3, $16, 5            # CHECK: sll16 $3, $16, 5   # encoding: [0x25,0x8a]
31                            # CHECK:                    # <MCInst #{{.*}} SLL16_MM
32srl16 $4, $17, 6            # CHECK: srl16 $4, $17, 6   # encoding: [0x26,0x1d]
33                            # CHECK:                    # <MCInst #{{.*}} SRL16_MM
34lbu16 $3, 4($17)            # CHECK: lbu16 $3, 4($17)   # encoding: [0x09,0x94]
35                            # CHECK:                    # <MCInst #{{.*}} LBU16_MM
36lbu16 $3, -1($16)           # CHECK: lbu16 $3, -1($16)  # encoding: [0x09,0x8f]
37                            # CHECK:                    # <MCInst #{{.*}} LBU16_MM
38lhu16 $3, 4($16)            # CHECK: lhu16 $3, 4($16)   # encoding: [0x29,0x82]
39                            # CHECK:                    # <MCInst #{{.*}} LHU16_MM
40lw16 $4, 8($17)             # CHECK: lw16 $4, 8($17)    # encoding: [0x6a,0x12]
41                            # CHECK:                    # <MCInst #{{.*}} LW16_MM
42sb16 $3, 4($16)             # CHECK: sb16 $3, 4($16)    # encoding: [0x89,0x84]
43                            # CHECK:                    # <MCInst #{{.*}} SB16_MM
44sh16 $4, 8($17)             # CHECK: sh16 $4, 8($17)    # encoding: [0xaa,0x14]
45                            # CHECK:                    # <MCInst #{{.*}} SH16_MM
46sw16 $4, 4($17)             # CHECK: sw16 $4, 4($17)    # encoding: [0xea,0x11]
47                            # CHECK:                    # <MCInst #{{.*}} SW16_MM
48sw16 $zero, 4($17)          # CHECK: sw16 $zero, 4($17) # encoding: [0xe8,0x11]
49                            # CHECK:                    # <MCInst #{{.*}} SW16_MM
50mfhi16 $9                   # CHECK: mfhi16 $9          # encoding: [0x46,0x09]
51                            # CHECK:                    # <MCInst #{{.*}} MFHI16_MM
52mflo16 $9                   # CHECK: mflo16 $9          # encoding: [0x46,0x49]
53                            # CHECK:                    # <MCInst #{{.*}} MFLO16_MM
54move $25, $1                # CHECK: move $25, $1       # encoding: [0x0f,0x21]
55                            # CHECK:                    # <MCInst #{{.*}} MOVE16_MM
56jrc $9                      # CHECK: jrc $9             # encoding: [0x45,0xa9]
57                            # CHECK:                    # <MCInst #{{.*}} JRC16_MM
58jalr $9                     # CHECK: jalr $9            # encoding: [0x45,0xc9]
59                            # CHECK:                    # <MCInst #{{.*}} JALR16_MM
60jalrs16 $9                  # CHECK: jalrs16 $9         # encoding: [0x45,0xe9]
61                            # CHECK:                    # <MCInst #{{.*}} MOVE16_MM
62jr16 $9                     # CHECK: jr16 $9            # encoding: [0x45,0x89]
63                            # CHECK:                    # <MCInst #{{.*}} JR16_MM
64li16 $3, -1                 # CHECK: li16 $3, -1        # encoding: [0xed,0xff]
65                            # CHECK:                    # <MCInst #{{.*}} LI16_MM
66li16 $3, 126                # CHECK: li16 $3, 126       # encoding: [0xed,0xfe]
67                            # CHECK:                    # <MCInst #{{.*}} LI16_MM
68addiur1sp $7, 4             # CHECK: addiur1sp $7, 4    # encoding: [0x6f,0x83]
69                            # CHECK:                    # <MCInst #{{.*}} ADDIUR1SP_MM
70addiur2 $6, $7, -1          # CHECK: addiur2 $6, $7, -1 # encoding: [0x6f,0x7e]
71                            # CHECK:                    # <MCInst #{{.*}} ADDIUR2_MM
72addiur2 $6, $7, 12          # CHECK: addiur2 $6, $7, 12 # encoding: [0x6f,0x76]
73                            # CHECK:                    # <MCInst #{{.*}} ADDIUR2_MM
74addius5 $7, -2              # CHECK: addius5 $7, -2     # encoding: [0x4c,0xfc]
75nop                         # CHECK: nop                # encoding: [0x00,0x00,0x00,0x00]
76beqz16 $6, 20               # CHECK: beqz16 $6, 20      # encoding: [0x8f,0x0a]
77                            # CHECK:                    # <MCInst #{{.*}} BEQZ16_MM
78bnez16 $6, 20               # CHECK: bnez16 $6, 20      # encoding: [0xaf,0x0a]
79                            # CHECK:                    # <MCInst #{{.*}} BNEZ16_MM
80b16 132                     # CHECK: b16 132            # encoding: [0xcc,0x42]
81                            # CHECK:                    # <MCInst #{{.*}} B16_MM
82lwm16 $16, $17, $ra, 8($sp) # CHECK: lwm16 $16, $17, $ra, 8($sp) # encoding: [0x45,0x12]
83                            # CHECK:                             # <MCInst #{{.*}} LWM16_MM
84swm16 $16, $17, $ra, 8($sp) # CHECK: swm16 $16, $17, $ra, 8($sp) # encoding: [0x45,0x52]
85                            # CHECK:                      # <MCInst #{{.*}} SWM16_MM
86movep $5, $6, $2, $3        # CHECK: movep $5, $6, $2, $3 # encoding: [0x84,0x34]
87                            # CHECK:                      # <MCInst #{{.*}} MOVEP_MM
88break16 8                   # CHECK: break16 8            # encoding: [0x46,0x88]
89                            # CHECK:                      # <MCInst #{{.*}} BREAK16_MM
90sdbbp16 14                  # CHECK: sdbbp16 14           # encoding: [0x46,0xce]
91                            # CHECK:                      # <MCInst #{{.*}} SDBBP16_MM
92lw $3, 32($sp)              # CHECK: lw $3, 32($sp)       # encoding: [0x48,0x68]
93                            # CHECK:                      # <MCInst #{{.*}} LWSP_MM
94sw $4, 124($sp)             # CHECK: sw $4, 124($sp)      # encoding: [0xc8,0x9f]
95                            # CHECK:                      # <MCInst #{{.*}} SWSP_MM
96lw $3, 32($gp)              # CHECK: lw $3, 32($gp)       # encoding: [0x65,0x88]
97                            # CHECK:                      # <MCInst #{{.*}} LWGP_MM
98abs.s $f0, $f2              # CHECK:  abs.s $f0, $f2    # encoding: [0x54,0x02,0x03,0x7b]
99                            # CHECK-NEXT:               # <MCInst #{{[0-9]+}} FABS_S_MM
100abs.d $f4, $f6              # CHECK:  abs.d $f4, $f6    # encoding: [0x54,0x86,0x23,0x7b]
101                            # CHECK-NEXT:               # <MCInst #{{[0-9]+}} FABS_D32_MM
102sqrt.s  $f0, $f12           # CHECK:  sqrt.s  $f0, $f12 # encoding: [0x54,0x0c,0x0a,0x3b]
103                            # CHECK-NEXT:               # <MCInst #{{[0-9]+}} FSQRT_S_MM
104sqrt.d  $f0, $f12           # CHECK:  sqrt.d  $f0, $f12 # encoding: [0x54,0x0c,0x4a,0x3b]
105                            # CHECK-NEXT:               # <MCInst #{{[0-9]+}} FSQRT_D32_MM
106add $9, $6, $7              # CHECK: add $9, $6, $7         # encoding: [0x00,0xe6,0x49,0x10]
107add.d $f0, $f2, $f4         # CHECK: add.d $f0, $f2, $f4    # encoding: [0x54,0x82,0x01,0x30]
108                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} FADD_D32_MM
109addi $9, $6, 17767          # CHECK: addi $9, $6, 17767     # encoding: [0x11,0x26,0x45,0x67]
110addiu $9, $6, -15001        # CHECK: addiu $9, $6, -15001   # encoding: [0x31,0x26,0xc5,0x67]
111addi $9, $6, 17767          # CHECK: addi $9, $6, 17767     # encoding: [0x11,0x26,0x45,0x67]
112addiu $9, $6, -15001        # CHECK: addiu $9, $6, -15001   # encoding: [0x31,0x26,0xc5,0x67]
113addu $9, $6, $7             # CHECK: addu $9, $6, $7        # encoding: [0x00,0xe6,0x49,0x50]
114sub $9, $6, $7              # CHECK: sub $9, $6, $7         # encoding: [0x00,0xe6,0x49,0x90]
115subu $4, $3, $5             # CHECK: subu $4, $3, $5        # encoding: [0x00,0xa3,0x21,0xd0]
116sub $6, $zero, $7           # CHECK: neg $6, $7             # encoding: [0x00,0xe0,0x31,0x90]
117sub.d $f0, $f2, $f4         # CHECK: sub.d $f0, $f2, $f4    # encoding: [0x54,0x82,0x01,0x70]
118                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} FSUB_D32_MM
119subu $6, $zero, $7          # CHECK: negu $6, $7            # encoding: [0x00,0xe0,0x31,0xd0]
120addu $7, $8, $zero          # CHECK: addu $7, $8, $zero     # encoding: [0x00,0x08,0x39,0x50]
121slt $3, $3, $5              # CHECK: slt $3, $3, $5         # encoding: [0x00,0xa3,0x1b,0x50]
122slti $3, $3, 103            # CHECK: slti $3, $3, 103       # encoding: [0x90,0x63,0x00,0x67]
123slti $3, $3, 103            # CHECK: slti $3, $3, 103       # encoding: [0x90,0x63,0x00,0x67]
124sltiu $3, $3, 103           # CHECK: sltiu $3, $3, 103      # encoding: [0xb0,0x63,0x00,0x67]
125sltu $3, $3, $5             # CHECK: sltu $3, $3, $5        # encoding: [0x00,0xa3,0x1b,0x90]
126lui $9, 17767               # CHECK: lui $9, 17767          # encoding: [0x41,0xa9,0x45,0x67]
127and $9, $6, $7              # CHECK: and $9, $6, $7         # encoding: [0x00,0xe6,0x4a,0x50]
128andi $9, $6, 17767          # CHECK: andi $9, $6, 17767     # encoding: [0xd1,0x26,0x45,0x67]
129or $3, $4, $5               # CHECK: or $3, $4, $5          # encoding: [0x00,0xa4,0x1a,0x90]
130ori $9, $6, 17767           # CHECK: ori $9, $6, 17767      # encoding: [0x51,0x26,0x45,0x67]
131xor $3, $3, $5              # CHECK: xor $3, $3, $5         # encoding: [0x00,0xa3,0x1b,0x10]
132xori $9, $6, 17767          # CHECK: xori $9, $6, 17767     # encoding: [0x71,0x26,0x45,0x67]
133nor $9, $6, $7              # CHECK: nor $9, $6, $7         # encoding: [0x00,0xe6,0x4a,0xd0]
134                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} NOR_MM
135not $7, $8                  # CHECK: not $7, $8             # encoding: [0x00,0x08,0x3a,0xd0]
136not $7                      # CHECK: not $7, $7             # encoding: [0x00,0x07,0x3a,0xd0]
137mul $9, $6, $7              # CHECK: mul $9, $6, $7         # encoding: [0x00,0xe6,0x4a,0x10]
138mul.d $f0, $f2, $f4         # CHECK: mul.d $f0, $f2, $f4    # encoding: [0x54,0x82,0x01,0xb0]
139                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} FMUL_D32_MM
140mult $9, $7                 # CHECK: mult $9, $7            # encoding: [0x00,0xe9,0x8b,0x3c]
141multu $9, $7                # CHECK: multu $9, $7           # encoding: [0x00,0xe9,0x9b,0x3c]
142div $zero, $9, $7           # CHECK: div $zero, $9, $7      # encoding: [0x00,0xe9,0xab,0x3c]
143div.d $f0, $f2, $f4         # CHECK: div.d $f0, $f2, $f4    # encoding: [0x54,0x82,0x01,0xf0]
144                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} FDIV_D32_MM
145divu $zero, $9, $7          # CHECK: divu $zero, $9, $7     # encoding: [0x00,0xe9,0xbb,0x3c]
146rdhwr $5, $29, 2            # CHECK: rdhwr $5, $29, 2       # encoding: [0x00,0xbd,0x6b,0x3c]
147                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} RDHWR_MM
148rdhwr $5, $29, 0            # CHECK: rdhwr $5, $29          # encoding: [0x00,0xbd,0x6b,0x3c]
149                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} RDHWR_MM
150rdhwr $5, $29               # CHECK: rdhwr $5, $29          # encoding: [0x00,0xbd,0x6b,0x3c]
151                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} RDHWR_MM
152sll $4, $3, 7               # CHECK: sll $4, $3, 7          # encoding: [0x00,0x83,0x38,0x00]
153                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SLL_MM
154sllv $2, $3, $5             # CHECK: sllv $2, $3, $5        # encoding: [0x00,0x65,0x10,0x10]
155                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SLLV_MM
156sra $4, $3, 7               # CHECK: sra $4, $3, 7          # encoding: [0x00,0x83,0x38,0x80]
157                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SRA_MM
158srav $2, $3, $5             # CHECK: srav $2, $3, $5        # encoding: [0x00,0x65,0x10,0x90]
159                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SRAV_MM
160srl $4, $3, 7               # CHECK: srl $4, $3, 7          # encoding: [0x00,0x83,0x38,0x40]
161                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SRL_MM
162srlv $2, $3, $5             # CHECK: srlv $2, $3, $5        # encoding: [0x00,0x65,0x10,0x50]
163                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SRLV_MM
164rotr $9, $6, 7              # CHECK: rotr $9, $6, 7         # encoding: [0x01,0x26,0x38,0xc0]
165rotrv $9, $6, $7            # CHECK: rotrv $9, $6, $7       # encoding: [0x00,0xc7,0x48,0xd0]
166lb $5, 8($4)                # CHECK: lb $5, 8($4)           # encoding: [0x1c,0xa4,0x00,0x08]
167                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} LB_MM
168lbu $6, 8($4)               # CHECK: lbu $6, 8($4)          # encoding: [0x14,0xc4,0x00,0x08]
169                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} LBu_MM
170lh $2, 8($4)                # CHECK: lh $2, 8($4)           # encoding: [0x3c,0x44,0x00,0x08]
171                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} LH_MM
172lhu $4, 8($2)               # CHECK: lhu $4, 8($2)          # encoding: [0x34,0x82,0x00,0x08]
173                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} LHu_MM
174lw  $6, 4($5)               # CHECK: lw  $6, 4($5)          # encoding: [0xfc,0xc5,0x00,0x04]
175                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} LW_MM
176lw $6, 123($sp)             # CHECK: lw $6, 123($sp)        # encoding: [0xfc,0xdd,0x00,0x7b]
177                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} LW_MM
178sb $5, 8($4)                # CHECK: sb $5, 8($4)           # encoding: [0x18,0xa4,0x00,0x08]
179                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SB_MM
180sh  $2, 8($4)               # CHECK: sh  $2, 8($4)          # encoding: [0x38,0x44,0x00,0x08]
181                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SH_MM
182sw  $5, 4($6)               # CHECK: sw  $5, 4($6)          # encoding: [0xf8,0xa6,0x00,0x04]
183                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SW_MM
184sw $5, 123($sp)             # CHECK: sw $5, 123($sp)        # encoding: [0xf8,0xbd,0x00,0x7b]
185                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SW_MM
186lwu $2, 8($4)               # CHECK: lwu $2, 8($4)          # encoding: [0x60,0x44,0xe0,0x08]
187lwl $4, 16($5)              # CHECK: lwl $4, 16($5)         # encoding: [0x60,0x85,0x00,0x10]
188lwr $4, 16($5)              # CHECK: lwr $4, 16($5)         # encoding: [0x60,0x85,0x10,0x10]
189swl $4, 16($5)              # CHECK: swl $4, 16($5)         # encoding: [0x60,0x85,0x80,0x10]
190swr $4, 16($5)              # CHECK: swr $4, 16($5)         # encoding: [0x60,0x85,0x90,0x10]
191mov.s $f0, $f2              # CHECK: mov.s $f0, $f2         # encoding: [0x54,0x02,0x00,0x7b]
192                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} FMOV_S_MM
193mov.d $f0, $f2              # CHECK: mov.d $f0, $f2         # encoding: [0x54,0x02,0x20,0x7b]
194                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} FMOV_D32_MM
195movz $9, $6, $7             # CHECK: movz $9, $6, $7        # encoding: [0x00,0xe6,0x48,0x58]
196movn $9, $6, $7             # CHECK: movn $9, $6, $7        # encoding: [0x00,0xe6,0x48,0x18]
197movt $9, $6, $fcc0          # CHECK: movt $9, $6, $fcc0     # encoding: [0x55,0x26,0x09,0x7b]
198movf $9, $6, $fcc0          # CHECK: movf $9, $6, $fcc0     # encoding: [0x55,0x26,0x01,0x7b]
199# FIXME: MTHI should also have its 16 bit implementation selected in micromips
200mthi   $6                   # CHECK: mthi   $6              # encoding: [0x00,0x06,0x2d,0x7c]
201mfhi   $6                   # CHECK: mfhi   $6              # encoding: [0x00,0x06,0x0d,0x7c]
202# FIXME: MTLO should also have its 16 bit implementation selected in micromips
203mtlo   $6                   # CHECK: mtlo   $6              # encoding: [0x00,0x06,0x3d,0x7c]
204mflo   $6                   # CHECK: mflo   $6              # encoding: [0x00,0x06,0x1d,0x7c]
205mfc1  $3, $f4               # CHECK: mfc1  $3, $f4          # encoding: [0x54,0x64,0x20,0x3b]
206                            # CHECK-NEXT:                   # <MCInst #{{.*}} MFC1_MM
207mtc1  $2, $f4               # CHECK: mtc1  $2, $f4          # encoding: [0x54,0x44,0x28,0x3b]
208                            # CHECK-NEXT:                   # <MCInst #{{.*}} MTC1_MM
209mfhc1 $4, $f0               # CHECK: mfhc1 $4, $f0          # encoding: [0x54,0x80,0x30,0x3b]
210                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} MFHC1_D32_MM
211mthc1 $4, $f0               # CHECK: mthc1 $4, $f0          # encoding: [0x54,0x80,0x38,0x3b]
212                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} MTHC1_D32_MM
213madd   $4, $5               # CHECK: madd   $4, $5          # encoding: [0x00,0xa4,0xcb,0x3c]
214maddu  $4, $5               # CHECK: maddu  $4, $5          # encoding: [0x00,0xa4,0xdb,0x3c]
215msub   $4, $5               # CHECK: msub   $4, $5          # encoding: [0x00,0xa4,0xeb,0x3c]
216msubu  $4, $5               # CHECK: msubu  $4, $5          # encoding: [0x00,0xa4,0xfb,0x3c]
217neg.d $f0, $f2              # CHECK: neg.d $f0, $f2         # encoding: [0x54,0x02,0x2b,0x7b]
218                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} FNEG_D32_MM
219clz $9, $6                  # CHECK: clz $9, $6             # encoding: [0x01,0x26,0x5b,0x3c]
220                            # CHECK-NEXT:                   # <MCInst #{{.*}} CLZ_MM
221clo $9, $6                  # CHECK: clo $9, $6             # encoding: [0x01,0x26,0x4b,0x3c]
222                            # CHECK-NEXT:                   # <MCInst #{{.*}} CLO_MM
223seb $9, $6                  # CHECK: seb $9, $6             # encoding: [0x01,0x26,0x2b,0x3c]
224                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SEB_MM
225seb $9                      # CHECK: seb $9, $9             # encoding: [0x01,0x29,0x2b,0x3c]
226                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SEB_MM
227seh $9, $6                  # CHECK: seh $9, $6             # encoding: [0x01,0x26,0x3b,0x3c]
228                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SEH_MM
229seh $9                      # CHECK: seh $9, $9             # encoding: [0x01,0x29,0x3b,0x3c]
230                            # CHECK-NEXT:                   # <MCInst #{{[0-9]+}} SEH_MM
231wsbh $9, $6                 # CHECK: wsbh $9, $6            # encoding: [0x01,0x26,0x7b,0x3c]
232ext $9, $6, 3, 7            # CHECK: ext $9, $6, 3, 7       # encoding: [0x01,0x26,0x30,0xec]
233ins $9, $6, 3, 7            # CHECK: ins $9, $6, 3, 7       # encoding: [0x01,0x26,0x48,0xcc]
234j 1328                      # CHECK: j 1328                 # encoding: [0xd4,0x00,0x02,0x98]
235jal 1328                    # CHECK: jal 1328               # encoding: [0xf4,0x00,0x02,0x98]
236jalr $ra, $6                # CHECK: jalr $ra, $6           # encoding: [0x03,0xe6,0x0f,0x3c]
237jr $7                       # CHECK: jr $7                  # encoding: [0x00,0x07,0x0f,0x3c]
238beq $9, $6, 1332            # CHECK: beq $9, $6, 1332       # encoding: [0x94,0xc9,0x02,0x9a]
239bgez $6, 1332               # CHECK: bgez $6, 1332          # encoding: [0x40,0x46,0x02,0x9a]
240bgezal $6, 1332             # CHECK: bgezal $6, 1332        # encoding: [0x40,0x66,0x02,0x9a]
241bltzal $6, 1332             # CHECK: bltzal $6, 1332        # encoding: [0x40,0x26,0x02,0x9a]
242bgtz $6, 1332               # CHECK: bgtz $6, 1332          # encoding: [0x40,0xc6,0x02,0x9a]
243blez $6, 1332               # CHECK: blez $6, 1332          # encoding: [0x40,0x86,0x02,0x9a]
244bne $9, $6, 1332            # CHECK: bne $9, $6, 1332       # encoding: [0xb4,0xc9,0x02,0x9a]
245bltz $6, 1332               # CHECK: bltz $6, 1332          # encoding: [0x40,0x06,0x02,0x9a]
246teq $8, $9                  # CHECK: teq $8, $9             # encoding: [0x01,0x28,0x00,0x3c]
247tge $8, $9                  # CHECK: tge $8, $9             # encoding: [0x01,0x28,0x02,0x3c]
248tgeu $8, $9                 # CHECK: tgeu $8, $9            # encoding: [0x01,0x28,0x04,0x3c]
249tlt $8, $9                  # CHECK: tlt $8, $9             # encoding: [0x01,0x28,0x08,0x3c]
250tltu $8, $9                 # CHECK: tltu $8, $9            # encoding: [0x01,0x28,0x0a,0x3c]
251tne $8, $9                  # CHECK: tne $8, $9             # encoding: [0x01,0x28,0x0c,0x3c]
252teqi $9, 17767              # CHECK: teqi $9, 17767         # encoding: [0x41,0xc9,0x45,0x67]
253tgei $9, 17767              # CHECK: tgei $9, 17767         # encoding: [0x41,0x29,0x45,0x67]
254tgeiu $9, 17767             # CHECK: tgeiu $9, 17767        # encoding: [0x41,0x69,0x45,0x67]
255tlti $9, 17767              # CHECK: tlti $9, 17767         # encoding: [0x41,0x09,0x45,0x67]
256tltiu $9, 17767             # CHECK: tltiu $9, 17767        # encoding: [0x41,0x49,0x45,0x67]
257tnei $9, 17767              # CHECK: tnei $9, 17767         # encoding: [0x41,0x89,0x45,0x67]
258cache 1, 8($5)              # CHECK: cache 1, 8($5)         # encoding: [0x20,0x25,0x60,0x08]
259                            # CHECK-NEXT:                   # <MCInst #{{.*}} CACHE_MM
260pref 1, 8($5)               # CHECK: pref 1, 8($5)          # encoding: [0x60,0x25,0x20,0x08]
261                            # CHECK-NEXT:                   # <MCInst #{{.*}} PREF_MM
262ssnop                       # CHECK: ssnop                  # encoding: [0x00,0x00,0x08,0x00]
263ehb                         # CHECK: ehb                    # encoding: [0x00,0x00,0x18,0x00]
264pause                       # CHECK: pause                  # encoding: [0x00,0x00,0x28,0x00]
265ll $2, 8($4)                # CHECK: ll $2, 8($4)           # encoding: [0x60,0x44,0x30,0x08]
266sc $2, 8($4)                # CHECK: sc $2, 8($4)           # encoding: [0x60,0x44,0xb0,0x08]
267lwxs $2, $3($4)             # CHECK: lwxs $2, $3($4)        # encoding: [0x00,0x64,0x11,0x18]
268bgezals $6, 1332            # CHECK: bgezals $6, 1332       # encoding: [0x42,0x66,0x02,0x9a]
269bltzals $6, 1332            # CHECK: bltzals $6, 1332       # encoding: [0x42,0x26,0x02,0x9a]
270beqzc $9, 1332              # CHECK: beqzc $9, 1332         # encoding: [0x40,0xe9,0x02,0x9a]
271bnezc $9, 1332              # CHECK: bnezc $9, 1332         # encoding: [0x40,0xa9,0x02,0x9a]
272jals 1328                   # CHECK: jals 1328              # encoding: [0x74,0x00,0x02,0x98]
273jalrs $ra, $6               # CHECK: jalrs $ra, $6          # encoding: [0x03,0xe6,0x4f,0x3c]
274lwm32 $16, $17, 8($4)       # CHECK: lwm32 $16, $17, 8($4)  # encoding: [0x20,0x44,0x50,0x08]
275lwm32 $16, $17, $18, $19, $20, $21, $22, $23, $fp, -1660($27)   # CHECK: lwm32 $16, $17, $18, $19, $20, $21, $22, $23, $fp, -1660($27)  # encoding: [0x21,0x3b,0x59,0x84]
276swm32 $16, $17, 8($4)       # CHECK: swm32 $16, $17, 8($4)  # encoding: [0x20,0x44,0xd0,0x08]
277swp $16, 8($4)              # CHECK: swp $16, 8($4)         # encoding: [0x22,0x04,0x90,0x08]
278lwp $16, 8($4)              # CHECK: lwp $16, 8($4)         # encoding: [0x22,0x04,0x10,0x08]
279nop                         # CHECK: nop                    # encoding: [0x00,0x00,0x00,0x00]
280addiupc $2, 20              # CHECK: addiupc $2, 20         # encoding: [0x79,0x00,0x00,0x05]
281addiupc $7, 16777212        # CHECK: addiupc $7, 16777212   # encoding: [0x7b,0xbf,0xff,0xff]
282addiupc $7, -16777216       # CHECK: addiupc $7, -16777216  # encoding: [0x7b,0xc0,0x00,0x00]
283ei                          # CHECK: ei                     # encoding: [0x00,0x00,0x57,0x7c]
284ei $10                      # CHECK: ei $10                 # encoding: [0x00,0x0a,0x57,0x7c]
285cachee 1, 8($5)             # CHECK: cachee 1, 8($5)        # encoding: [0x60,0x25,0xa6,0x08]
286prefe 1, 8($5)              # CHECK: prefe 1, 8($5)         # encoding: [0x60,0x25,0xa4,0x08]
287prefx 1, $3($5)             # CHECK: prefx 1, $3($5)        # encoding: [0x54,0x65,0x09,0xa0]
288lhue $4, 8($2)              # CHECK: lhue $4, 8($2)         # encoding: [0x60,0x82,0x62,0x08]
289lbe $4, 8($2)               # CHECK: lbe $4, 8($2)          # encoding: [0x60,0x82,0x68,0x08]
290lbue $4, 8($2)              # CHECK: lbue $4, 8($2)         # encoding: [0x60,0x82,0x60,0x08]
291lhe $4, 8($2)               # CHECK: lhe $4, 8($2)          # encoding: [0x60,0x82,0x6a,0x08]
292lwe $4, 8($2)               # CHECK: lwe $4, 8($2)          # encoding: [0x60,0x82,0x6e,0x08]
293sbe $5, 8($4)               # CHECK: sbe $5, 8($4)          # encoding: [0x60,0xa4,0xa8,0x08]
294she $5, 8($4)               # CHECK: she $5, 8($4)          # encoding: [0x60,0xa4,0xaa,0x08]
295swe $5, 8($4)               # CHECK: swe $5, 8($4)          # encoding: [0x60,0xa4,0xae,0x08]
296swre $24, 5($3)             # CHECK: swre $24, 5($3)        # encoding: [0x63,0x03,0xa2,0x05]
297swle $24, 5($3)             # CHECK: swle $24, 5($3)        # encoding: [0x63,0x03,0xa0,0x05]
298lwre $24, 5($3)             # CHECK: lwre $24, 5($3)        # encoding: [0x63,0x03,0x66,0x05]
299lwle $24, 2($4)             # CHECK: lwle $24, 2($4)        # encoding: [0x63,0x04,0x64,0x02]
300lle $2, 8($4)               # CHECK: lle $2, 8($4)          # encoding: [0x60,0x44,0x6c,0x08]
301sce $2, 8($4)               # CHECK: sce $2, 8($4)          # encoding: [0x60,0x44,0xac,0x08]
302syscall                     # CHECK: syscall                # encoding: [0x00,0x00,0x8b,0x7c]
303syscall 396                 # CHECK: syscall 396            # encoding: [0x01,0x8c,0x8b,0x7c]
304# FIXME: ldc1 should accept uneven registers
305# ldc1 $f7, 300($10)        # -CHECK: ldc1 $f7, 300($10)    # encoding: [0xbc,0xea,0x01,0x2c]
306ldc1 $f8, 300($10)          # CHECK: ldc1 $f8, 300($10)     # encoding: [0xbd,0x0a,0x01,0x2c]
307lwc1 $f2, 4($6)             # CHECK: lwc1 $f2, 4($6)        # encoding: [0x9c,0x46,0x00,0x04]
308                            # CHECK-NEXT:                   # <MCInst #{{.*}} LWC1_MM
309sdc1 $f2, 4($6)             # CHECK: sdc1 $f2, 4($6)        # encoding: [0xb8,0x46,0x00,0x04]
310# FIXME: sdc1 should accept uneven registers
311# sdc1 $f7, 64($10)         # -CHECK: sdc1 $f7, 64($10)     # encoding: [0xb8,0xea,0x00,0x40]
312swc1 $f2, 4($6)             # CHECK: swc1 $f2, 4($6)        # encoding: [0x98,0x46,0x00,0x04]
313                            # CHECK-NEXT:                   # <MCInst #{{.*}} SWC1_MM
314cfc1 $1, $2                 # CHECK: cfc1 $1, $2            # encoding: [0x54,0x22,0x10,0x3b]
315                            # CHECK:                        # <MCInst #{{.*}} CFC1_MM
316cfc2 $3, $4                 # CHECK: cfc2 $3, $4            # encoding: [0x00,0x64,0xcd,0x3c]
317ctc1 $5, $6                 # CHECK: ctc1 $5, $6            # encoding: [0x54,0xa6,0x18,0x3b]
318                            # CHECK:                        # <MCInst #{{.*}} CTC1_MM
319ctc2 $7, $8                 # CHECK: ctc2 $7, $8            # encoding: [0x00,0xe8,0xdd,0x3c]
320recip.s $f2, $f4            # CHECK: recip.s $f2, $f4       # encoding: [0x54,0x44,0x12,0x3b]
321recip.d $f2, $f4            # CHECK: recip.d $f2, $f4       # encoding: [0x54,0x44,0x52,0x3b]
322rsqrt.s $f3, $f5            # CHECK: rsqrt.s $f3, $f5       # encoding: [0x54,0x65,0x02,0x3b]
323rsqrt.d $f2, $f4            # CHECK: rsqrt.d $f2, $f4       # encoding: [0x54,0x44,0x42,0x3b]
324c.eq.d   $fcc1, $f14, $f14  # CHECK: c.eq.d   $fcc1, $f14, $f14 # encoding: [0x55,0xce,0x24,0xbc]
325c.eq.s   $fcc5, $f24, $f17  # CHECK: c.eq.s   $fcc5, $f24, $f17 # encoding: [0x56,0x38,0xa0,0xbc]
326c.f.d    $fcc4, $f10, $f20  # CHECK: c.f.d    $fcc4, $f10, $f20 # encoding: [0x56,0x8a,0x84,0x3c]
327c.f.s    $fcc4, $f30, $f7   # CHECK: c.f.s    $fcc4, $f30, $f7  # encoding: [0x54,0xfe,0x80,0x3c]
328c.le.d   $fcc4, $f18, $f0   # CHECK: c.le.d   $fcc4, $f18, $f0  # encoding: [0x54,0x12,0x87,0xbc]
329c.le.s   $fcc6, $f24, $f4   # CHECK: c.le.s   $fcc6, $f24, $f4  # encoding: [0x54,0x98,0xc3,0xbc]
330c.lt.d   $fcc3, $f8, $f2    # CHECK: c.lt.d   $fcc3, $f8, $f2   # encoding: [0x54,0x48,0x67,0x3c]
331c.lt.s   $fcc2, $f17, $f14  # CHECK: c.lt.s   $fcc2, $f17, $f14 # encoding: [0x55,0xd1,0x43,0x3c]
332c.nge.d  $fcc5, $f20, $f16  # CHECK: c.nge.d  $fcc5, $f20, $f16 # encoding: [0x56,0x14,0xa7,0x7c]
333c.nge.s  $fcc3, $f11, $f8   # CHECK: c.nge.s  $fcc3, $f11, $f8  # encoding: [0x55,0x0b,0x63,0x7c]
334c.ngl.s  $fcc2, $f31, $f23  # CHECK: c.ngl.s  $fcc2, $f31, $f23 # encoding: [0x56,0xff,0x42,0xfc]
335c.ngle.s $fcc2, $f18, $f23  # CHECK: c.ngle.s $fcc2, $f18, $f23 # encoding: [0x56,0xf2,0x42,0x7c]
336c.ngl.d  $f28, $f28         # CHECK: c.ngl.d  $f28, $f28        # encoding: [0x57,0x9c,0x06,0xfc]
337c.ngle.d $f0, $f16          # CHECK: c.ngle.d $f0, $f16         # encoding: [0x56,0x00,0x06,0x7c]
338c.ngt.d  $fcc4, $f24, $f6   # CHECK: c.ngt.d  $fcc4, $f24, $f6  # encoding: [0x54,0xd8,0x87,0xfc]
339c.ngt.s  $fcc5, $f8, $f13   # CHECK: c.ngt.s  $fcc5, $f8, $f13  # encoding: [0x55,0xa8,0xa3,0xfc]
340c.ole.d  $fcc2, $f16, $f30  # CHECK: c.ole.d  $fcc2, $f16, $f30 # encoding: [0x57,0xd0,0x45,0xbc]
341c.ole.s  $fcc3, $f7, $f20   # CHECK: c.ole.s  $fcc3, $f7, $f20  # encoding: [0x56,0x87,0x61,0xbc]
342c.olt.d  $fcc4, $f18, $f28  # CHECK: c.olt.d  $fcc4, $f18, $f28 # encoding: [0x57,0x92,0x85,0x3c]
343c.olt.s  $fcc6, $f20, $f7   # CHECK: c.olt.s  $fcc6, $f20, $f7  # encoding: [0x54,0xf4,0xc1,0x3c]
344c.seq.d  $fcc4, $f30, $f6   # CHECK: c.seq.d  $fcc4, $f30, $f6  # encoding: [0x54,0xde,0x86,0xbc]
345c.seq.s  $fcc7, $f1, $f25   # CHECK: c.seq.s  $fcc7, $f1, $f25  # encoding: [0x57,0x21,0xe2,0xbc]
346c.sf.d   $f30, $f0          # CHECK: c.sf.d   $f30, $f0         # encoding: [0x54,0x1e,0x06,0x3c]
347c.sf.s   $f14, $f22         # CHECK: c.sf.s   $f14, $f22        # encoding: [0x56,0xce,0x02,0x3c]
348c.ueq.d  $fcc4, $f12, $f24  # CHECK: c.ueq.d  $fcc4, $f12, $f24 # encoding: [0x57,0x0c,0x84,0xfc]
349c.ueq.s  $fcc6, $f3, $f30   # CHECK: c.ueq.s  $fcc6, $f3, $f30  # encoding: [0x57,0xc3,0xc0,0xfc]
350c.ule.d  $fcc7, $f24, $f18  # CHECK: c.ule.d  $fcc7, $f24, $f18 # encoding: [0x56,0x58,0xe5,0xfc]
351c.ule.s  $fcc7, $f21, $f30  # CHECK: c.ule.s  $fcc7, $f21, $f30 # encoding: [0x57,0xd5,0xe1,0xfc]
352c.ult.d  $fcc6, $f6, $f16   # CHECK: c.ult.d  $fcc6, $f6, $f16  # encoding: [0x56,0x06,0xc5,0x7c]
353c.ult.s  $fcc7, $f24, $f10  # CHECK: c.ult.s  $fcc7, $f24, $f10 # encoding: [0x55,0x58,0xe1,0x7c]
354c.un.d   $fcc6, $f22, $f24  # CHECK: c.un.d   $fcc6, $f22, $f24 # encoding: [0x57,0x16,0xc4,0x7c]
355c.un.s   $fcc1, $f30, $f4   # CHECK: c.un.s   $fcc1, $f30, $f4  # encoding: [0x54,0x9e,0x20,0x7c]
356cvt.w.d $f0, $f2            # CHECK: cvt.w.d    $f0, $f2        # encoding: [0x54,0x02,0x49,0x3b]
357                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} CVT_W_D32_MM
358cvt.d.s $f0, $f2            # CHECK: cvt.d.s    $f0, $f2        # encoding: [0x54,0x02,0x13,0x7b]
359                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} CVT_D32_S_MM
360cvt.d.w $f0, $f2            # CHECK: cvt.d.w    $f0, $f2        # encoding: [0x54,0x02,0x33,0x7b]
361                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} CVT_D32_W_MM
362cvt.s.d $f0, $f2            # CHECK: cvt.s.d    $f0, $f2        # encoding: [0x54,0x02,0x1b,0x7b]
363                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} CVT_S_D32_MM
364bc1t 8                      # CHECK: bc1t 8                     # encoding: [0x43,0xa0,0x00,0x04]
365                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} BC1T_MM
366bc1f 16                     # CHECK: bc1f 16                    # encoding: [0x43,0x80,0x00,0x08]
367                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} BC1F_MM
368bc1t $fcc1, 4               # CHECK: bc1t $fcc1, 4              # encoding: [0x43,0xa4,0x00,0x02]
369                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} BC1T_MM
370bc1f $fcc2, -20             # CHECK: bc1f $fcc2, -20            # encoding: [0x43,0x88,0xff,0xf6]
371                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} BC1F_MM
372sync                        # CHECK: sync                       # encoding: [0x00,0x00,0x6b,0x7c]
373                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} SYNC_MM
374sync 0                      # CHECK: sync                       # encoding: [0x00,0x00,0x6b,0x7c]
375                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} SYNC_MM
376sync 1                      # CHECK: sync 1                     # encoding: [0x00,0x01,0x6b,0x7c]
377                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} SYNC_MM
378synci 64($5)                # CHECK: synci 64($5)               # encoding: [0x42,0x05,0x00,0x40]
379                            # CHECK-NEXT:                       # <MCInst #{{[0-9]+}} SYNCI_MM
380add.s  $f4, $f6, $f8        # CHECK:      add.s $f4, $f6, $f8   # encoding: [0x55,0x06,0x20,0x30]
381                            # CHECK-NEXT:                       # <MCInst {{.*}} FADD_S_MM
382sub.s  $f4, $f6, $f8        # CHECK:       sub.s $f4, $f6, $f8  # encoding: [0x55,0x06,0x20,0x70]
383                            # CHECK-NEXT:                       # <MCInst {{.*}} FSUB_S_MM
384mul.s  $f4, $f6, $f8        # CHECK:       mul.s $f4, $f6, $f8  # encoding: [0x55,0x06,0x20,0xb0]
385                            # CHECK-NEXT:                       # <MCInst {{.*}} FMUL_S_MM
386div.s  $f4, $f6, $f8        # CHECK:       div.s $f4, $f6, $f8  # encoding: [0x55,0x06,0x20,0xf0]
387                            # CHECK-NEXT:                       # <MCInst {{.*}} FDIV_S_MM
388add.d  $f4, $f6, $f8        # CHECK:       add.d $f4, $f6, $f8  # encoding: [0x55,0x06,0x21,0x30]
389                            # CHECK-NEXT:                       # <MCInst {{.*}} FADD_D32_MM
390sub.d  $f4, $f6, $f8        # CHECK:       sub.d $f4, $f6, $f8  # encoding: [0x55,0x06,0x21,0x70]
391                            # CHECK-NEXT:                       # <MCInst {{.*}} FSUB_D32_MM
392mul.d  $f4, $f6, $f8        # CHECK:       mul.d $f4, $f6, $f8  # encoding: [0x55,0x06,0x21,0xb0]
393                            # CHECK-NEXT:                       # <MCInst {{.*}} FMUL_D32_MM
394div.d  $f4, $f6, $f8        # CHECK:       div.d $f4, $f6, $f8  # encoding: [0x55,0x06,0x21,0xf0]
395                            # CHECK-NEXT:                       # <MCInst {{.*}} FDIV_D32_MM
396