1# RUN: llvm-mc --disassemble %s -triple=sparc-unknown-linux | FileCheck %s 2 3# CHECK: add %g0, %g0, %g0 40x80 0x00 0x00 0x00 5 6# CHECK: add %g1, %g2, %g3 70x86 0x00 0x40 0x02 8 9# CHECK: add %o0, %o1, %l0 100xa0 0x02 0x00 0x09 11 12# CHECK: add %o0, 10, %l0 130xa0 0x02 0x20 0x0a 14 15# CHECK: addcc %g1, %g2, %g3 160x86 0x80 0x40 0x02 17 18# CHECK: addxcc %g1, %g2, %g3 190x86 0xc0 0x40 0x02 20 21# CHECK: udiv %g1, %g2, %g3 220x86 0x70 0x40 0x02 23 24# CHECK: sdiv %g1, %g2, %g3 250x86 0x78 0x40 0x02 26 27# CHECK: and %g1, %g2, %g3 280x86 0x08 0x40 0x02 29 30# CHECK: andn %g1, %g2, %g3 310x86 0x28 0x40 0x02 32 33# CHECK: or %g1, %g2, %g3 340x86 0x10 0x40 0x02 35 36# CHECK: orn %g1, %g2, %g3 370x86 0x30 0x40 0x02 38 39# CHECK: xor %g1, %g2, %g3 400x86 0x18 0x40 0x02 41 42# CHECK: xnor %g1, %g2, %g3 430x86 0x38 0x40 0x02 44 45# CHECK: umul %g1, %g2, %g3 460x86 0x50 0x40 0x02 47 48# CHECK: smul %g1, %g2, %g3 490x86 0x58 0x40 0x02 50 51# CHECK: nop 520x01 0x00 0x00 0x00 53 54# CHECK: sethi 10, %l0 550x21 0x00 0x00 0x0a 56 57# CHECK: sll %g1, %g2, %g3 580x87 0x28 0x40 0x02 59 60# CHECK: sll %g1, 31, %g3 610x87 0x28 0x60 0x1f 62 63# CHECK: srl %g1, %g2, %g3 640x87 0x30 0x40 0x02 65 66# CHECK: srl %g1, 31, %g3 670x87 0x30 0x60 0x1f 68 69# CHECK: sra %g1, %g2, %g3 700x87 0x38 0x40 0x02 71 72# CHECK: sra %g1, 31, %g3 730x87 0x38 0x60 0x1f 74 75# CHECK: sub %g1, %g2, %g3 760x86 0x20 0x40 0x02 77 78# CHECK: subcc %g1, %g2, %g3 790x86 0xa0 0x40 0x02 80 81# CHECK: subxcc %g1, %g2, %g3 820x86 0xe0 0x40 0x02 83 84# CHECK: ba 4194303 850x10 0xbf 0xff 0xff 86 87# CHECK: bne 4194303 880x12 0xbf 0xff 0xff 89 90# CHECK: be 4194303 910x02 0xbf 0xff 0xff 92 93# CHECK: bg 4194303 940x14 0xbf 0xff 0xff 95 96# CHECK: ble 4194303 970x04 0xbf 0xff 0xff 98 99# CHECK: bge 4194303 1000x16 0xbf 0xff 0xff 101 102# CHECK: bl 4194303 1030x06 0xbf 0xff 0xff 104 105# CHECK: bgu 4194303 1060x18 0xbf 0xff 0xff 107 108# CHECK: bleu 4194303 1090x08 0xbf 0xff 0xff 110 111# CHECK: bcc 4194303 1120x1a 0xbf 0xff 0xff 113 114# CHECK: bcs 4194303 1150x0a 0xbf 0xff 0xff 116 117# CHECK: bpos 4194303 1180x1c 0xbf 0xff 0xff 119 120# CHECK: bneg 4194303 1210x0c 0xbf 0xff 0xff 122 123# CHECK: bvc 4194303 1240x1e 0xbf 0xff 0xff 125 126# CHECK: bvs 4194303 1270x0e 0xbf 0xff 0xff 128 129# CHECK: fbu 4194303 1300x0f 0xbf 0xff 0xff 131 132# CHECK: fbg 4194303 1330x0d 0xbf 0xff 0xff 134 135# CHECK: fbug 4194303 1360x0b 0xbf 0xff 0xff 137 138# CHECK: fbl 4194303 1390x09 0xbf 0xff 0xff 140 141# CHECK: fbul 4194303 1420x07 0xbf 0xff 0xff 143 144# CHECK: fblg 4194303 1450x05 0xbf 0xff 0xff 146 147# CHECK: fbne 4194303 1480x03 0xbf 0xff 0xff 149 150# CHECK: fbe 4194303 1510x13 0xbf 0xff 0xff 152 153# CHECK: fbue 4194303 1540x15 0xbf 0xff 0xff 155 156# CHECK: fbge 4194303 1570x17 0xbf 0xff 0xff 158 159# CHECK: fbuge 4194303 1600x19 0xbf 0xff 0xff 161 162# CHECK: fble 4194303 1630x1b 0xbf 0xff 0xff 164 165# CHECK: fbule 4194303 1660x1d 0xbf 0xff 0xff 167 168# CHECK: fbo 4194303 1690x1f 0xbf 0xff 0xff 170 171# CHECK: cba 4194303 1720x11 0xff 0xff 0xff 173 174# CHECK: cbn 4194303 1750x01 0xff 0xff 0xff 176 177# CHECK: cb3 4194303 1780x0f 0xff 0xff 0xff 179 180# CHECK: cb2 4194303 1810x0d 0xff 0xff 0xff 182 183# CHECK: cb23 4194303 1840x0b 0xff 0xff 0xff 185 186# CHECK: cb1 4194303 1870x09 0xff 0xff 0xff 188 189# CHECK: cb13 4194303 1900x07 0xff 0xff 0xff 191 192# CHECK: cb12 4194303 1930x05 0xff 0xff 0xff 194 195# CHECK: cb123 4194303 1960x03 0xff 0xff 0xff 197 198# CHECK: cb03 4194303 1990x15 0xff 0xff 0xff 200 201# CHECK: cb02 4194303 2020x17 0xff 0xff 0xff 203 204# CHECK: cb023 4194303 2050x19 0xff 0xff 0xff 206 207# CHECK: cb01 4194303 2080x1b 0xff 0xff 0xff 209 210# CHECK: cb013 4194303 2110x1d 0xff 0xff 0xff 212 213# CHECK: cb012 4194303 2140x1f 0xff 0xff 0xff 215 216# CHECK: restore 2170x81 0xe8 0x00 0x00 218 219# CHECK: call 16 2200x40 0x00 0x00 0x04 221 222# CHECK: add %g1, -10, %g2 2230x84 0x00 0x7f 0xf6 224 225# CHECK: save %sp, -196, %sp 2260x9d 0xe3 0xbf 0x3c 227 228# CHECK: cmp %g1, -2 2290x80 0xa0 0x7f 0xfe 230 231# CHECK: unimp 12 2320x00 0x00 0x00 0x0c 233 234# CHECK: jmp %g1+12 2350x81 0xc0 0x60 0x0c 236 237# CHECK: retl 2380x81 0xc3 0xe0 0x08 239 240# CHECK: ret 2410x81 0xc7 0xe0 0x08 242 243# CHECK: rett %i7+8 2440x81 0xcf 0xe0 0x08 245 246# CHECK: stbar 2470x81 0x43 0xc0 0x00 248 249# CHECK: ta %i5 2500x91 0xd0 0x00 0x1d 251 252# CHECK: ta 82 2530x91 0xd0 0x20 0x52 254 255# CHECK: ta %g1 + %i2 2560x91 0xd0 0x40 0x1a 257 258# CHECK: ta %i5 + 41 2590x91 0xd7 0x60 0x29 260 261# CHECK: tn %i5 2620x81 0xd0 0x00 0x1d 263 264# CHECK: tne 82 2650x93 0xd0 0x20 0x52 266 267# CHECK: te %g1 + %i2 2680x83 0xd0 0x40 0x1a 269 270# CHECK: tg %i5 + 41 2710x95 0xd7 0x60 0x29 272 273# CHECK: tle %i5 2740x85 0xd0 0x00 0x1d 275 276# CHECK: tge 82 2770x97 0xd0 0x20 0x52 278 279# CHECK: tl %g1 + %i2 2800x87 0xd0 0x40 0x1a 281 282# CHECK: tgu %i5 + 41 2830x99 0xd7 0x60 0x29 284 285# CHECK: tleu %i5 2860x89 0xd0 0x00 0x1d 287 288# CHECK: tcc 82 2890x9b 0xd0 0x20 0x52 290 291# CHECK: tcs %g1 + %i2 2920x8b 0xd0 0x40 0x1a 293 294# CHECK: tpos %i5 + 41 2950x9d 0xd7 0x60 0x29 296 297# CHECK: tneg %i5 2980x8d 0xd0 0x00 0x1d 299 300# CHECK: tvc 82 3010x9f 0xd0 0x20 0x52 302 303# CHECK: tvs %g1 + %i2 3040x8f 0xd0 0x40 0x1a 305