Home | History | Annotate | Download | only in Sparc
      1 # RUN: llvm-mc --disassemble %s -triple=sparc-unknown-linux | FileCheck %s
      2 
      3 # CHECK: add %g0, %g0, %g0
      4 0x80 0x00 0x00 0x00
      5 
      6 # CHECK: add %g1, %g2, %g3
      7 0x86 0x00 0x40 0x02
      8 
      9 # CHECK: add %o0, %o1, %l0
     10 0xa0 0x02 0x00 0x09
     11 
     12 # CHECK: add %o0, 10,  %l0
     13 0xa0 0x02 0x20 0x0a
     14 
     15 # CHECK: addcc %g1, %g2, %g3
     16 0x86 0x80 0x40 0x02
     17 
     18 # CHECK: addxcc %g1, %g2, %g3
     19 0x86 0xc0 0x40 0x02
     20 
     21 # CHECK: udiv %g1, %g2, %g3
     22 0x86 0x70 0x40 0x02
     23 
     24 # CHECK: sdiv %g1, %g2, %g3
     25 0x86 0x78 0x40 0x02
     26 
     27 # CHECK: and %g1, %g2, %g3
     28 0x86 0x08 0x40 0x02
     29 
     30 # CHECK: andn %g1, %g2, %g3
     31 0x86 0x28 0x40 0x02
     32 
     33 # CHECK: or %g1, %g2, %g3
     34 0x86 0x10 0x40 0x02
     35 
     36 # CHECK: orn %g1, %g2, %g3
     37 0x86 0x30 0x40 0x02
     38 
     39 # CHECK: xor %g1, %g2, %g3
     40 0x86 0x18 0x40 0x02
     41 
     42 # CHECK: xnor %g1, %g2, %g3
     43 0x86 0x38 0x40 0x02
     44 
     45 # CHECK: umul %g1, %g2, %g3
     46 0x86 0x50 0x40 0x02
     47 
     48 # CHECK: smul %g1, %g2, %g3
     49 0x86 0x58 0x40 0x02
     50 
     51 # CHECK: nop
     52 0x01 0x00 0x00 0x00
     53 
     54 # CHECK: sethi 10, %l0
     55 0x21 0x00 0x00 0x0a
     56 
     57 # CHECK: sll %g1, %g2, %g3
     58 0x87 0x28 0x40 0x02
     59 
     60 # CHECK: sll %g1, 31, %g3
     61 0x87 0x28 0x60 0x1f
     62 
     63 # CHECK: srl %g1, %g2, %g3
     64 0x87 0x30 0x40 0x02
     65 
     66 # CHECK: srl %g1, 31, %g3
     67 0x87 0x30 0x60 0x1f
     68 
     69 # CHECK: sra %g1, %g2, %g3
     70 0x87 0x38 0x40 0x02
     71 
     72 # CHECK: sra %g1, 31, %g3
     73 0x87 0x38 0x60 0x1f
     74 
     75 # CHECK: sub %g1, %g2, %g3
     76 0x86 0x20 0x40 0x02
     77 
     78 # CHECK: subcc %g1, %g2, %g3
     79 0x86 0xa0 0x40 0x02
     80 
     81 # CHECK: subxcc %g1, %g2, %g3
     82 0x86 0xe0 0x40 0x02
     83 
     84 # CHECK: ba 4194303
     85 0x10 0xbf 0xff 0xff
     86 
     87 # CHECK: bne 4194303
     88 0x12 0xbf 0xff 0xff
     89 
     90 # CHECK: be 4194303
     91 0x02 0xbf 0xff 0xff
     92 
     93 # CHECK: bg 4194303
     94 0x14 0xbf 0xff 0xff
     95 
     96 # CHECK: ble 4194303
     97 0x04 0xbf 0xff 0xff
     98 
     99 # CHECK: bge 4194303
    100 0x16 0xbf 0xff 0xff
    101 
    102 # CHECK: bl 4194303
    103 0x06 0xbf 0xff 0xff
    104 
    105 # CHECK: bgu 4194303
    106 0x18 0xbf 0xff 0xff
    107 
    108 # CHECK: bleu 4194303
    109 0x08 0xbf 0xff 0xff
    110 
    111 # CHECK: bcc 4194303
    112 0x1a 0xbf 0xff 0xff
    113 
    114 # CHECK: bcs 4194303
    115 0x0a 0xbf 0xff 0xff
    116 
    117 # CHECK: bpos 4194303
    118 0x1c 0xbf 0xff 0xff
    119 
    120 # CHECK: bneg 4194303
    121 0x0c 0xbf 0xff 0xff
    122 
    123 # CHECK: bvc 4194303
    124 0x1e 0xbf 0xff 0xff
    125 
    126 # CHECK: bvs 4194303
    127 0x0e 0xbf 0xff 0xff
    128 
    129 # CHECK: fbu 4194303
    130 0x0f 0xbf 0xff 0xff
    131 
    132 # CHECK: fbg 4194303
    133 0x0d 0xbf 0xff 0xff
    134 
    135 # CHECK: fbug 4194303
    136 0x0b 0xbf 0xff 0xff
    137 
    138 # CHECK: fbl 4194303
    139 0x09 0xbf 0xff 0xff
    140 
    141 # CHECK: fbul 4194303
    142 0x07 0xbf 0xff 0xff
    143 
    144 # CHECK: fblg 4194303
    145 0x05 0xbf 0xff 0xff
    146 
    147 # CHECK: fbne 4194303
    148 0x03 0xbf 0xff 0xff
    149 
    150 # CHECK: fbe 4194303
    151 0x13 0xbf 0xff 0xff
    152 
    153 # CHECK: fbue 4194303
    154 0x15 0xbf 0xff 0xff
    155 
    156 # CHECK: fbge 4194303
    157 0x17 0xbf 0xff 0xff
    158 
    159 # CHECK: fbuge 4194303
    160 0x19 0xbf 0xff 0xff
    161 
    162 # CHECK: fble 4194303
    163 0x1b 0xbf 0xff 0xff
    164 
    165 # CHECK: fbule 4194303
    166 0x1d 0xbf 0xff 0xff
    167 
    168 # CHECK: fbo 4194303
    169 0x1f 0xbf 0xff 0xff
    170 
    171 # CHECK: restore
    172 0x81 0xe8 0x00 0x00
    173 
    174 # CHECK: call 16
    175 0x40 0x00 0x00 0x04
    176 
    177 # CHECK: add %g1, -10, %g2
    178 0x84 0x00 0x7f 0xf6
    179 
    180 # CHECK: save %sp, -196, %sp
    181 0x9d 0xe3 0xbf 0x3c
    182 
    183 # CHECK: cmp %g1, -2
    184 0x80 0xa0 0x7f 0xfe
    185 
    186 # CHECK: unimp 12
    187 0x00 0x00 0x00 0x0c
    188 
    189 # CHECK: jmp %g1+12
    190 0x81,0xc0,0x60,0x0c
    191 
    192 # CHECK: retl
    193 0x81 0xc3 0xe0 0x08
    194 
    195 # CHECK: ret
    196 0x81,0xc7,0xe0,0x08
    197 
    198 # CHECK:  rett %i7+8
    199 0x81 0xcf 0xe0 0x08
    200 
    201 # CHECK: stbar
    202 0x81 0x43 0xc0 0x00
    203