Home | History | Annotate | Download | only in micromips32r3
      1 # RUN: llvm-mc --disassemble %s -triple=mipsel-unknown-linux -mattr=micromips \
      2 # RUN: | FileCheck %s
      3 
      4 0xf9 0x4f # CHECK: addiusp -16
      5 0xff 0x4f # CHECK: addiusp -1028
      6 0xfd 0x4f # CHECK: addiusp -1032
      7 0x01 0x4c # CHECK: addiusp 1024
      8 0x03 0x4c # CHECK: addiusp 1028
      9 0x29 0x2c # CHECK: andi16 $16, $2, 31
     10 0x05 0x47 # CHECK: jraddiusp 20
     11 0x42 0x07 # CHECK: addu16 $6, $17, $4
     12 0xb1 0x06 # CHECK: subu16 $5, $16, $3
     13 0x82 0x44 # CHECK: and16 $16, $2
     14 0x0b 0x44 # CHECK: not16 $17, $3
     15 0xc4 0x44 # CHECK: or16 $16, $4
     16 0x4d 0x44 # CHECK: xor16 $17, $5
     17 0x8a 0x25 # CHECK: sll16 $3, $16, 5
     18 0x1d 0x26 # CHECK: srl16 $4, $17, 6
     19 0x94 0x09 # CHECK: lbu16 $3, 4($17)
     20 0x8f 0x09 # CHECK: lbu16 $3, -1($16)
     21 0x82 0x29 # CHECK: lhu16 $3, 4($16)
     22 0x12 0x6a # CHECK: lw16 $4, 8($17)
     23 0x84 0x89 # CHECK: sb16 $3, 4($16)
     24 0x14 0xaa # CHECK: sh16 $4, 8($17)
     25 0x11 0xea # CHECK: sw16 $4, 4($17)
     26 0x11 0xe8 # CHECK: sw16 $zero, 4($17)
     27 0x09 0x46 # CHECK: mfhi $9
     28 0x49 0x46 # CHECK: mflo $9
     29 0x21 0x0f # CHECK: move $25, $1
     30 0xa9 0x45 # CHECK: jrc $9
     31 0xc9 0x45 # CHECK: jalr $9
     32 0xe9 0x45 # CHECK: jalrs16 $9
     33 0x89 0x45 # CHECK: jr16 $9
     34 0xff 0xed # CHECK: li16 $3, -1
     35 0xfe 0xed # CHECK: li16 $3, 126
     36 0x83 0x6f # CHECK: addiur1sp $7, 4
     37 0x7e 0x6f # CHECK: addiur2 $6, $7, -1
     38 0x76 0x6f # CHECK: addiur2 $6, $7, 12
     39 0xfc 0x4c # CHECK: addius5 $7, -2
     40 0x00 0x0c # CHECK: nop
     41 0x68 0x48 # CHECK: lw $3, 32($sp)
     42 0x9f 0xc8 # CHECK: sw $4, 124($sp)
     43 0x0a 0x8f # CHECK: beqz16 $6, 20
     44 0x0a 0xaf # CHECK: bnez16 $6, 20
     45 0x42 0xcc # CHECK: b16 132
     46 0x88 0x65 # CHECK: lw $3, 32($gp)
     47 0x12 0x45 # CHECK: lwm16 $16, $17, $ra, 8($sp)
     48 0x52 0x45 # CHECK: swm16 $16, $17, $ra, 8($sp)
     49 0x88 0x46 # CHECK: break16 8
     50 0xce 0x46 # CHECK: sdbbp16 14
     51 0x34 0x84 # CHECK: movep $5, $6, $2, $3
     52 0xe6 0x00 0x10 0x49 # CHECK: add $9, $6, $7
     53 0x26 0x11 0x67 0x45 # CHECK: addi $9, $6, 17767
     54 0x26 0x31 0x67 0xc5 # CHECK: addiu $9, $6, -15001
     55 0x26 0x11 0x67 0x45 # CHECK: addi $9, $6, 17767
     56 0x26 0x31 0x67 0xc5 # CHECK: addiu $9, $6, -15001
     57 0xe6 0x00 0x50 0x49 # CHECK: addu $9, $6, $7
     58 0xe6 0x00 0x90 0x49 # CHECK: sub $9, $6, $7
     59 0xa3 0x00 0xd0 0x21 # CHECK: subu  $4, $3, $5
     60 0xe0 0x00 0x90 0x31 # CHECK: sub $6, $zero, $7
     61 0xe0 0x00 0xd0 0x31 # CHECK: subu $6, $zero, $7
     62 0x08 0x00 0x50 0x39 # CHECK: addu $7, $8, $zero
     63 0xa3 0x00 0x50 0x1b # CHECK: slt $3, $3, $5
     64 0x63 0x90 0x67 0x00 # CHECK: slti $3, $3, 103
     65 0x63 0x90 0x67 0x00 # CHECK: slti $3, $3, 103
     66 0x63 0xb0 0x67 0x00 # CHECK: sltiu $3, $3, 103
     67 0xa3 0x00 0x90 0x1b # CHECK: sltu $3, $3, $5
     68 0xa9 0x41 0x67 0x45 # CHECK: lui $9, 17767
     69 0xe6 0x00 0x50 0x4a # CHECK: and $9, $6, $7
     70 0x26 0xd1 0x67 0x45 # CHECK: andi $9, $6, 17767
     71 0x26 0xd1 0x67 0x45 # CHECK: andi $9, $6, 17767
     72 0xa4 0x00 0x90 0x1a # CHECK: or $3, $4, $5
     73 0x26 0x51 0x67 0x45 # CHECK: ori $9, $6, 17767
     74 0xa3 0x00 0x10 0x1b # CHECK: xor $3, $3, $5
     75 0x26 0x71 0x67 0x45 # CHECK: xori $9, $6, 17767
     76 0x26 0x71 0x67 0x45 # CHECK: xori $9, $6, 17767
     77 0xe6 0x00 0xd0 0x4a # CHECK: nor $9, $6, $7
     78 0x08 0x00 0xd0 0x3a # CHECK: not $7, $8
     79 0xe6 0x00 0x10 0x4a # CHECK: mul $9, $6, $7
     80 0xe9 0x00 0x3c 0x8b # CHECK: mult $9, $7
     81 0xe9 0x00 0x3c 0x9b # CHECK: multu $9, $7
     82 0xe9 0x00 0x3c 0xab # CHECK: div $zero, $9, $7
     83 0xe9 0x00 0x3c 0xbb # CHECK: divu $zero, $9, $7
     84 0x83 0x00 0x00 0x38 # CHECK: sll $4, $3, 7
     85 0x65 0x00 0x10 0x10 # CHECK: sllv $2, $3, $5
     86 0x83 0x00 0x80 0x38 # CHECK: sra $4, $3, 7
     87 0x65 0x00 0x90 0x10 # CHECK: srav $2, $3, $5
     88 0x83 0x00 0x40 0x38 # CHECK: srl $4, $3, 7
     89 0x65 0x00 0x50 0x10 # CHECK: srlv $2, $3, $5
     90 0x26 0x01 0xc0 0x38 # CHECK: rotr $9, $6, 7
     91 0xc7 0x00 0xd0 0x48 # CHECK: rotrv $9, $6, $7
     92 0xa4 0x1c 0x08 0x00 # CHECK: lb $5, 8($4)
     93 0xc4 0x14 0x08 0x00 # CHECK: lbu $6, 8($4)
     94 0x44 0x3c 0x08 0x00 # CHECK: lh $2, 8($4)
     95 0x82 0x34 0x08 0x00 # CHECK: lhu $4, 8($2)
     96 0xc5 0xfc 0x04 0x00 # CHECK: lw $6, 4($5)
     97 0xdd 0xfc 0x7b 0x00 # CHECK: lw $6, 123($sp)
     98 0xa4 0x18 0x08 0x00 # CHECK: sb $5, 8($4)
     99 0x44 0x38 0x08 0x00 # CHECK: sh $2, 8($4)
    100 0xa6 0xf8 0x04 0x00 # CHECK: sw $5, 4($6)
    101 0xbd 0xf8 0x7b 0x00 # CHECK: sw $5, 123($sp)
    102 0x44 0x60 0x08 0xe0 # CHECK: lwu $2, 8($4)
    103 0x85 0x60 0x10 0x00 # CHECK: lwl $4, 16($5)
    104 0x85 0x60 0x10 0x10 # CHECK: lwr $4, 16($5)
    105 0x85 0x60 0x10 0x80 # CHECK: swl $4, 16($5)
    106 0x85 0x60 0x10 0x90 # CHECK: swr $4, 16($5)
    107 0xe6 0x00 0x58 0x48 # CHECK: movz $9, $6, $7
    108 0xe6 0x00 0x18 0x48 # CHECK: movn $9, $6, $7
    109 0x26 0x55 0x7b 0x09 # CHECK: movt $9, $6, $fcc0
    110 0x26 0x55 0x7b 0x01 # CHECK: movf $9, $6, $fcc0
    111 0x06 0x00 0x7c 0x2d # CHECK: mthi $6
    112 0x06 0x00 0x7c 0x0d # CHECK: mfhi $6
    113 0x06 0x00 0x7c 0x3d # CHECK: mtlo $6
    114 0x06 0x00 0x7c 0x1d # CHECK: mflo $6
    115 0xa4 0x00 0x3c 0xcb # CHECK: madd $4, $5
    116 0xa4 0x00 0x3c 0xdb # CHECK: maddu $4, $5
    117 0xa4 0x00 0x3c 0xeb # CHECK: msub $4, $5
    118 0xa4 0x00 0x3c 0xfb # CHECK: msubu $4, $5
    119 0x26 0x01 0x3c 0x5b # CHECK: clz $9, $6
    120 0x26 0x01 0x3c 0x4b # CHECK: clo $9, $6
    121 0x26 0x01 0x3c 0x2b # CHECK: seb $9, $6
    122 0x26 0x01 0x3c 0x3b # CHECK: seh $9, $6
    123 0x26 0x01 0x3c 0x7b # CHECK: wsbh $9, $6
    124 0x26 0x01 0xec 0x30 # CHECK: ext $9, $6, 3, 7
    125 0x26 0x01 0xcc 0x48 # CHECK: ins $9, $6, 3, 7
    126 0x00 0xd4 0x98 0x02 # CHECK: j 1328
    127 0x00 0xf4 0x98 0x02 # CHECK: jal 1328
    128 0xe6 0x03 0x3c 0x0f # CHECK: jalr $ra, $6
    129 0x07 0x00 0x3c 0x0f # CHECK: jr $7
    130 0xc9 0x94 0x9a 0x02 # CHECK: beq $9, $6, 1332
    131 0x46 0x40 0x9a 0x02 # CHECK: bgez $6, 1332
    132 0x66 0x40 0x9a 0x02 # CHECK: bgezal $6, 1332
    133 0x26 0x40 0x9a 0x02 # CHECK: bltzal $6, 1332
    134 0xc6 0x40 0x9a 0x02 # CHECK: bgtz $6, 1332
    135 0x86 0x40 0x9a 0x02 # CHECK: blez $6, 1332
    136 0xc9 0xb4 0x9a 0x02 # CHECK: bne $9, $6, 1332
    137 0x06 0x40 0x9a 0x02 # CHECK: bltz $6, 1332
    138 0x28 0x01 0x3c 0x00 # CHECK: teq $8, $9
    139 0x28 0x01 0x3c 0x02 # CHECK: tge $8, $9
    140 0x28 0x01 0x3c 0x04 # CHECK: tgeu $8, $9
    141 0x28 0x01 0x3c 0x08 # CHECK: tlt $8, $9
    142 0x28 0x01 0x3c 0x0a # CHECK: tltu $8, $9
    143 0x28 0x01 0x3c 0x0c # CHECK: tne $8, $9
    144 0xc9 0x41 0x67 0x45 # CHECK: teqi $9, 17767
    145 0x29 0x41 0x67 0x45 # CHECK: tgei $9, 17767
    146 0x69 0x41 0x67 0x45 # CHECK: tgeiu $9, 17767
    147 0x09 0x41 0x67 0x45 # CHECK: tlti $9, 17767
    148 0x49 0x41 0x67 0x45 # CHECK: tltiu $9, 17767
    149 0x89 0x41 0x67 0x45 # CHECK: tnei $9, 17767
    150 0x25 0x20 0x08 0x60 # CHECK: cache 1, 8($5)
    151 0x25 0x60 0x08 0x20 # CHECK: pref 1, 8($5)
    152 0x00 0x00 0x00 0x08 # CHECK: ssnop
    153 0x00 0x00 0x00 0x18 # CHECK: ehb
    154 0x00 0x00 0x00 0x28 # CHECK: pause
    155 0x44 0x60 0x08 0x30 # CHECK: ll $2, 8($4)
    156 0x44 0x60 0x08 0xb0 # CHECK: sc $2, 8($4)
    157 0x64 0x00 0x18 0x11 # CHECK: lwxs $2, $3($4)
    158 0x66 0x42 0x9a 0x02 # CHECK: bgezals $6, 1332
    159 0x26 0x42 0x9a 0x02 # CHECK: bltzals $6, 1332
    160 0xe9 0x40 0x9a 0x02 # CHECK: beqzc $9, 1332
    161 0xa9 0x40 0x9a 0x02 # CHECK: bnezc $9, 1332
    162 0x00 0x74 0x98 0x02 # CHECK: jals 1328
    163 0xe6 0x03 0x3c 0x4f # CHECK: jalrs $ra, $6
    164 0x44 0x20 0x08 0x50 # CHECK: lwm32 $16, $17, 8($4)
    165 0x3b 0x21 0x84 0x59 # CHECK: lwm32 $16, $17, $18, $19, $20, $21, $22, $23, $fp, -1660($27)
    166 0x44 0x20 0x08 0xd0 # CHECK: swm32 $16, $17, 8($4)
    167 0x04 0x22 0x08 0x90 # CHECK: swp $16, 8($4)
    168 0x04 0x22 0x08 0x10 # CHECK: lwp $16, 8($4)
    169 0x00 0x00 0x00 0x00 # CHECK: nop
    170 0x00 0x79 0x05 0x00 # CHECK: addiupc $2, 20
    171 0xbf 0x7b 0xff 0xff # CHECK: addiupc $7, 16777212
    172 0xc0 0x7b 0x00 0x00 # CHECK: addiupc $7, -16777216
    173 0x00 0x00 0x7c 0x57 # CHECK: ei
    174 0x0a 0x00 0x7c 0x57 # CHECK: ei $10
    175 0x25 0x60 0x08 0xa6 # CHECK: cachee 1, 8($5)
    176 0x25 0x60 0x08 0xa4 # CHECK: prefe 1, 8($5)
    177 0x65 0x54 0xa0 0x09 # CHECK: prefx 1, $3($5)
    178 0x82 0x60 0x08 0x62 # CHECK: lhue $4, 8($2)
    179 0x82 0x60 0x08 0x68 # CHECK: lbe $4, 8($2)
    180 0x82 0x60 0x08 0x60 # CHECK: lbue $4, 8($2)
    181 0x82 0x60 0x08 0x6a # CHECK: lhe $4, 8($2)
    182 0x82 0x60 0x08 0x6e # CHECK: lwe $4, 8($2)
    183 0xa4 0x60 0x08 0xa8 # CHECK: sbe $5, 8($4)
    184 0xa4 0x60 0x08 0xaa # CHECK: she $5, 8($4)
    185 0xa4 0x60 0x08 0xae # CHECK: swe $5, 8($4)
    186 0x03 0x63 0x05 0xa2 # CHECK: swre $24, 5($3)
    187 0x03 0x63 0x05 0xa0 # CHECK: swle $24, 5($3)
    188 0x03 0x63 0x05 0x66 # CHECK: lwre $24, 5($3)
    189 0x04 0x63 0x02 0x64 # CHECK: lwle $24, 2($4)
    190 0x44 0x60 0x08 0x6c # CHECK: lle $2, 8($4)
    191 0x44 0x60 0x08 0xac # CHECK: sce $2, 8($4)
    192