1# RUN: llvm-mc %s -disassemble -triple=mipsel-unknown-linux -mcpu=mips64r6 | FileCheck %s
20x0a 0x00 0x29 0x25 # CHECK: addiu $9, $9, 10
30xa0 0x22 0x43 0x7c # CHECK: align $4, $2, $3, 2
40x38 0x00 0x7f 0xec # CHECK: aluipc $3, 56
50x04 0x00 0x42 0x30 # CHECK: andi $2, $2, 4
60xe9 0xff 0x43 0x3c # CHECK: aui $3, $2, 65513
70xff 0xff 0x7e 0xec # CHECK: auipc $3, -1
80x9b 0x14 0x11 0x04 # CHECK: bal 21104
90xb8 0x96 0x37 0xe8 # CHECK: balc 14572260
100xb8 0x96 0x37 0xc8 # CHECK: bc 14572260
110x01 0x00 0x20 0x45 # CHECK: bc1eqz $f0, 8
120x01 0x00 0x3f 0x45 # CHECK: bc1eqz $f31, 8
130x01 0x00 0xa0 0x45 # CHECK: bc1nez $f0, 8
140x01 0x00 0xbf 0x45 # CHECK: bc1nez $f31, 8
150x02 0x00 0x20 0x49 # CHECK: bc2eqz $0, 12
160x02 0x00 0x3f 0x49 # CHECK: bc2eqz $31, 12
170x02 0x00 0xa0 0x49 # CHECK: bc2nez $0, 12
180x02 0x00 0xbf 0x49 # CHECK: bc2nez $31, 12
190x40 0x00 0xa6 0x20 # CHECK: beqc $5, $6, 260
200x40 0x01 0x00 0x00 # CHECK: pause
210x4d 0x01 0x02 0x20 # CHECK: beqzalc $2, 1336
220x90 0x46 0xa0 0xd8 # CHECK: beqzc $5, 72260
230xfa 0xff 0x5f 0xd8 # CHECK: beqzc $2, -20
240x40 0x00 0x43 0x58 # CHECK: bgec $2, $3, 260
250xfa 0xff 0x43 0x58 # CHECK: bgec $2, $3, -20
260x40 0x00 0x43 0x18 # CHECK: bgeuc $2, $3, 260
270xfa 0xff 0x43 0x18 # CHECK: bgeuc $2, $3, -20
280x4d 0x01 0x42 0x18 # CHECK: bgezalc $2, 1336
290xfa 0xff 0x42 0x18 # CHECK: bgezalc $2, -20
300x40 0x00 0xa5 0x58 # CHECK: bgezc $5, 260
310xfa 0xff 0xa5 0x58 # CHECK: bgezc $5, -20
320x4d 0x01 0x02 0x1c # CHECK: bgtzalc $2, 1336
330xfa 0xff 0x02 0x1c # CHECK: bgtzalc $2, -20
340x40 0x00 0x05 0x5c # CHECK: bgtzc $5, 260
350xfa 0xff 0x05 0x5c # CHECK: bgtzc $5, -20
360x20 0x20 0x02 0x7c # CHECK: bitswap $4, $2
370x4d 0x01 0x02 0x18 # CHECK: blezalc $2, 1336
380xfa 0xff 0x02 0x18 # CHECK: blezalc $2, -20
390x40 0x00 0x05 0x58 # CHECK: blezc $5, 260
400xfa 0xff 0x05 0x58 # CHECK: blezc $5, -20
410x40 0x00 0xa6 0x5c # CHECK: bltc $5, $6, 260
420xfa 0xff 0xa6 0x5c # CHECK: bltc $5, $6, -20
430x40 0x00 0xa6 0x1c # CHECK: bltuc $5, $6, 260
440xfa 0xff 0xa6 0x1c # CHECK: bltuc $5, $6, -20
450x4d 0x01 0x42 0x1c # CHECK: bltzalc $2, 1336
460xfa 0xff 0x42 0x1c # CHECK: bltzalc $2, -20
470x40 0x00 0xa5 0x5c # CHECK: bltzc $5, 260
480xfa 0xff 0xa5 0x5c # CHECK: bltzc $5, -20
490x40 0x00 0xa6 0x60 # CHECK: bnec $5, $6, 260
500xfa 0xff 0x43 0x60 # CHECK: bnec $2, $3, -20
510x4d 0x01 0x02 0x60 # CHECK: bnezalc $2, 1336
520x90 0x46 0xa0 0xf8 # CHECK: bnezc $5, 72260
530xfa 0xff 0x5f 0xf8 # CHECK: bnezc $2, -20
540x01 0x00 0x40 0x60 # CHECK: bnvc $2, $zero, 8
550x01 0x00 0x82 0x60 # CHECK: bnvc $4, $2, 8
560x01 0x00 0x00 0x60 # CHECK: bnvc $zero, $zero, 8
570x01 0x00 0x40 0x20 # CHECK: bovc $2, $zero, 8
580x01 0x00 0x82 0x20 # CHECK: bovc $4, $2, 8
590x01 0x00 0x00 0x20 # CHECK: bovc $zero, $zero, 8
600x25 0x04 0xa1 0x7c # CHECK: cache 1, 8($5)
610x9b 0x20 0x20 0x46 # CHECK: class.d $f2, $f4
620x9b 0x20 0x00 0x46 # CHECK: class.s $f2, $f4
630x51 0x58 0xa0 0x00 # CHECK: clo $11, $5
640x50 0xe8 0x80 0x03 # CHECK: clz $sp, $gp
650x80 0x18 0xa4 0x46 # CHECK: cmp.af.d $f2, $f3, $f4
660x80 0x18 0x84 0x46 # CHECK: cmp.af.s $f2, $f3, $f4
670x82 0x18 0xa4 0x46 # CHECK: cmp.eq.d $f2, $f3, $f4
680x82 0x18 0x84 0x46 # CHECK: cmp.eq.s $f2, $f3, $f4
690x86 0x18 0xa4 0x46 # CHECK: cmp.le.d $f2, $f3, $f4
700x86 0x18 0x84 0x46 # CHECK: cmp.le.s $f2, $f3, $f4
710x84 0x18 0xa4 0x46 # CHECK: cmp.lt.d $f2, $f3, $f4
720x84 0x18 0x84 0x46 # CHECK: cmp.lt.s $f2, $f3, $f4
730x88 0x18 0xa4 0x46 # CHECK: cmp.saf.d $f2, $f3, $f4
740x88 0x18 0x84 0x46 # CHECK: cmp.saf.s $f2, $f3, $f4
750x8a 0x18 0xa4 0x46 # CHECK: cmp.seq.d $f2, $f3, $f4
760x8a 0x18 0x84 0x46 # CHECK: cmp.seq.s $f2, $f3, $f4
770x8e 0x18 0xa4 0x46 # CHECK: cmp.sle.d $f2, $f3, $f4
780x8e 0x18 0x84 0x46 # CHECK: cmp.sle.s $f2, $f3, $f4
790x8c 0x18 0xa4 0x46 # CHECK: cmp.slt.d $f2, $f3, $f4
800x8c 0x18 0x84 0x46 # CHECK: cmp.slt.s $f2, $f3, $f4
810x8b 0x18 0xa4 0x46 # CHECK: cmp.sueq.d $f2, $f3, $f4
820x8b 0x18 0x84 0x46 # CHECK: cmp.sueq.s $f2, $f3, $f4
830x8f 0x18 0xa4 0x46 # CHECK: cmp.sule.d $f2, $f3, $f4
840x8f 0x18 0x84 0x46 # CHECK: cmp.sule.s $f2, $f3, $f4
850x8d 0x18 0xa4 0x46 # CHECK: cmp.sult.d $f2, $f3, $f4
860x8d 0x18 0x84 0x46 # CHECK: cmp.sult.s $f2, $f3, $f4
870x89 0x18 0xa4 0x46 # CHECK: cmp.sun.d $f2, $f3, $f4
880x89 0x18 0x84 0x46 # CHECK: cmp.sun.s $f2, $f3, $f4
890x83 0x18 0xa4 0x46 # CHECK: cmp.ueq.d $f2, $f3, $f4
900x83 0x18 0x84 0x46 # CHECK: cmp.ueq.s $f2, $f3, $f4
910x87 0x18 0xa4 0x46 # CHECK: cmp.ule.d $f2, $f3, $f4
920x87 0x18 0x84 0x46 # CHECK: cmp.ule.s $f2, $f3, $f4
930x85 0x18 0xa4 0x46 # CHECK: cmp.ult.d $f2, $f3, $f4
940x85 0x18 0x84 0x46 # CHECK: cmp.ult.s $f2, $f3, $f4
950x81 0x18 0xa4 0x46 # CHECK: cmp.un.d $f2, $f3, $f4
960x81 0x18 0x84 0x46 # CHECK: cmp.un.s $f2, $f3, $f4
970x78 0x56 0x66 0x04 # CHECK: dahi $3, $3, 22136
980xcd 0xab 0x7e 0x04 # CHECK: dati $3, $3, 43981
990x64 0x23 0x43 0x7c # CHECK: dalign $4, $2, $3, 5
1000x34 0x12 0x43 0x74 # CHECK: daui $3, $2, 4660
1010x24 0x20 0x02 0x7c # CHECK: dbitswap $4, $2
1020x53 0x90 0xc0 0x00 # CHECK: dclo $18, $6
1030x52 0x80 0x20 0x03 # CHECK: dclz $16, $25
1040x9e 0x10 0x64 0x00 # CHECK: ddiv $2, $3, $4
1050x9f 0x10 0x64 0x00 # CHECK: ddivu $2, $3, $4
1060x00 0x60 0x60 0x41 # CHECK: di
1070x00 0x60 0x7e 0x41 # CHECK: di $fp
1080x9a 0x10 0x64 0x00 # CHECK: div $2, $3, $4
1090x9b 0x10 0x64 0x00 # CHECK: divu $2, $3, $4
1100xd5 0x10 0x64 0x00 # CHECK: dlsa $2, $3, $4, 4
1110x00 0x50 0x38 0x40 # CHECK: dmfc0 $24, $10, 0
1120xde 0x10 0x64 0x00 # CHECK: dmod $2, $3, $4
1130xdf 0x10 0x64 0x00 # CHECK: dmodu $2, $3, $4
1140x00 0x50 0xa4 0x40 # CHECK: dmtc0 $4, $10, 0
1150xdc 0x10 0x64 0x00 # CHECK: dmuh $2, $3, $4
1160xdd 0x10 0x64 0x00 # CHECK: dmuhu $2, $3, $4
1170x9c 0x10 0x64 0x00 # CHECK: dmul $2, $3, $4
1180x9d 0x10 0x64 0x00 # CHECK: dmulu $2, $3, $4
1190x24 0x00 0x71 0x41 # CHECK: dvp $17
1200x24 0x00 0x60 0x41 # CHECK: dvp $zero
1210x20 0x60 0x60 0x41 # CHECK: ei
1220x20 0x60 0x6e 0x41 # CHECK: ei $14
1230x04 0x00 0x70 0x41 # CHECK: evp $16
1240x04 0x00 0x60 0x41 # CHECK: evp $zero
1250x09 0xfc 0x80 0x00 # CHECK: jalr.hb $4
1260x09 0x24 0xa0 0x00 # CHECK: jalr.hb $4, $5
1270x00 0x00 0x19 0xf8 # CHECK: jalrc $25
1280x00 0x01 0x05 0xf8 # CHECK: jialc $5, 256
1290x00 0x01 0x05 0xd8 # CHECK: jic $5, 256
1300x00 0x00 0x1b 0xd8 # CHECK: jrc $27
1310x09 0x04 0x80 0x00 # CHECK: jr.hb $4
1320x19 0x00 0x80 0xec # CHECK: lapc $4, 100
1330x43 0x0d 0xc8 0x49 # CHECK: ldc2 $8, -701($1)
1340x48 0x3c 0x58 0xec # CHECK: ldpc $2, 123456
1350xb6 0xb3 0x42 0x7e # CHECK: ll $2, -153($18)
1360x37 0x38 0xe0 0x7f # CHECK: lld $zero, 112($ra)
1370xc5 0x10 0x64 0x00 # CHECK: lsa $2, $3, $4, 4
1380xb7 0x34 0x52 0x49 # CHECK: lwc2 $18, -841($6)
1390x43 0x00 0x48 0xec # CHECK: lwpc $2, 268
1400x43 0x00 0x50 0xec # CHECK: lwupc $2, 268
1410x98 0x18 0x24 0x46 # CHECK: maddf.d $f2, $f3, $f4
1420x98 0x18 0x04 0x46 # CHECK: maddf.s $f2, $f3, $f4
1430x1d 0x10 0x24 0x46 # CHECK: max.d $f0, $f2, $f4
1440x1d 0x10 0x04 0x46 # CHECK: max.s $f0, $f2, $f4
1450x1f 0x10 0x24 0x46 # CHECK: maxa.d $f0, $f2, $f4
1460x1f 0x10 0x04 0x46 # CHECK: maxa.s $f0, $f2, $f4
1470x01 0x78 0x08 0x40 # CHECK: mfc0 $8, $15, 1
1480x1c 0x10 0x24 0x46 # CHECK: min.d $f0, $f2, $f4
1490x1c 0x10 0x04 0x46 # CHECK: min.s $f0, $f2, $f4
1500x1e 0x10 0x24 0x46 # CHECK: mina.d $f0, $f2, $f4
1510x1e 0x10 0x04 0x46 # CHECK: mina.s $f0, $f2, $f4
1520xda 0x10 0x64 0x00 # CHECK: mod $2, $3, $4
1530xdb 0x10 0x64 0x00 # CHECK: modu $2, $3, $4
1540x25 0x78 0xe0 0x03 # CHECK: move $15, $ra
1550x2d 0x78 0xe0 0x03 # CHECK: move $15, $ra
1560x01 0x78 0x89 0x40 # CHECK: mtc0 $9, $15, 1
1570x99 0x18 0x24 0x46 # CHECK: msubf.d $f2, $f3, $f4
1580x99 0x18 0x04 0x46 # CHECK: msubf.s $f2, $f3, $f4
1590xd8 0x10 0x64 0x00 # CHECK: muh $2, $3, $4
1600xd9 0x10 0x64 0x00 # CHECK: muhu $2, $3, $4
1610x98 0x10 0x64 0x00 # CHECK: mul $2, $3, $4
1620x99 0x10 0x64 0x00 # CHECK: mulu $2, $3, $4
1630x04 0x00 0x42 0x34 # CHECK: ori $2, $2, 4
1640x35 0x04 0xa1 0x7c # CHECK: pref 1, 8($5)
1650x95 0x34 0x20 0x46 # CHECK: recip.d $f18, $f6
1660xd5 0xf0 0x00 0x46 # CHECK: recip.s $f3, $f30
1670x9a 0x20 0x20 0x46 # CHECK: rint.d $f2, $f4
1680x9a 0x20 0x00 0x46 # CHECK: rint.s $f2, $f4
1690x96 0xe0 0x20 0x46 # CHECK: rsqrt.d $f2, $f28
1700x16 0x41 0x00 0x46 # CHECK: rsqrt.s $f4, $f8
1710x26 0xec 0x6f 0x7e # CHECK: sc $15, -40($19)
1720xa7 0xe6 0xaf 0x7f # CHECK: scd $15, -51($sp)
1730x0e 0x00 0x00 0x00 # CHECK: sdbbp
1740x8e 0x08 0x00 0x00 # CHECK: sdbbp 34
1750x75 0x92 0xf4 0x49 # CHECK: sdc2 $20, 629($18)
1760x10 0x08 0x22 0x46 # CHECK: sel.d $f0, $f1, $f2
1770x10 0x08 0x02 0x46 # CHECK: sel.s $f0, $f1, $f2
1780x35 0x10 0x64 0x00 # CHECK: seleqz $2, $3, $4
1790x14 0x10 0x24 0x46 # CHECK: seleqz.d $f0, $f2, $f4
1800x14 0x10 0x04 0x46 # CHECK: seleqz.s $f0, $f2, $f4
1810x37 0x10 0x64 0x00 # CHECK: selnez $2, $3, $4
1820x17 0x10 0x24 0x46 # CHECK: selnez.d $f0, $f2, $f4
1830x17 0x10 0x04 0x46 # CHECK: selnez.s $f0, $f2, $f4
1840x40 0x00 0x00 0x00 # CHECK: ssnop
1850x30 0x81 0x79 0x49 # CHECK: swc2 $25, 304($16)
1860x0f 0x00 0x00 0x00 # CHECK: sync
1870x4f 0x00 0x00 0x00 # CHECK: sync 1
1880x34 0x9b 0xa7 0x00 # CHECK: teq $5, $7, 620
1890x34 0x00 0x03 0x00 # CHECK: teq $zero, $3
1900x30 0x55 0xb3 0x00 # CHECK: tge $5, $19, 340
1910x30 0x00 0xea 0x00 # CHECK: tge $7, $10
1920xf1 0x5e 0x8e 0x02 # CHECK: tgeu $20, $14, 379
1930x31 0x00 0xdc 0x02 # CHECK: tgeu $22, $gp
1940x32 0x00 0xed 0x01 # CHECK: tlt $15, $13
1950x72 0x21 0x53 0x00 # CHECK: tlt $2, $19, 133
1960x33 0x00 0x70 0x01 # CHECK: tltu $11, $16
1970x33 0xfe 0x1d 0x02 # CHECK: tltu $16, $sp, 1016
1980x36 0x00 0xd1 0x00 # CHECK: tne $6, $17
1990x76 0xdd 0xe8 0x00 # CHECK: tne $7, $8, 885
2000x05 0x00 0x17 0x04 # CHECK: sigrie 5
201