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: cba 4194303 172 0x11 0xff 0xff 0xff 173 174 # CHECK: cbn 4194303 175 0x01 0xff 0xff 0xff 176 177 # CHECK: cb3 4194303 178 0x0f 0xff 0xff 0xff 179 180 # CHECK: cb2 4194303 181 0x0d 0xff 0xff 0xff 182 183 # CHECK: cb23 4194303 184 0x0b 0xff 0xff 0xff 185 186 # CHECK: cb1 4194303 187 0x09 0xff 0xff 0xff 188 189 # CHECK: cb13 4194303 190 0x07 0xff 0xff 0xff 191 192 # CHECK: cb12 4194303 193 0x05 0xff 0xff 0xff 194 195 # CHECK: cb123 4194303 196 0x03 0xff 0xff 0xff 197 198 # CHECK: cb03 4194303 199 0x15 0xff 0xff 0xff 200 201 # CHECK: cb02 4194303 202 0x17 0xff 0xff 0xff 203 204 # CHECK: cb023 4194303 205 0x19 0xff 0xff 0xff 206 207 # CHECK: cb01 4194303 208 0x1b 0xff 0xff 0xff 209 210 # CHECK: cb013 4194303 211 0x1d 0xff 0xff 0xff 212 213 # CHECK: cb012 4194303 214 0x1f 0xff 0xff 0xff 215 216 # CHECK: restore 217 0x81 0xe8 0x00 0x00 218 219 # CHECK: call 16 220 0x40 0x00 0x00 0x04 221 222 # CHECK: add %g1, -10, %g2 223 0x84 0x00 0x7f 0xf6 224 225 # CHECK: save %sp, -196, %sp 226 0x9d 0xe3 0xbf 0x3c 227 228 # CHECK: cmp %g1, -2 229 0x80 0xa0 0x7f 0xfe 230 231 # CHECK: unimp 12 232 0x00 0x00 0x00 0x0c 233 234 # CHECK: jmp %g1+12 235 0x81 0xc0 0x60 0x0c 236 237 # CHECK: retl 238 0x81 0xc3 0xe0 0x08 239 240 # CHECK: ret 241 0x81 0xc7 0xe0 0x08 242 243 # CHECK: rett %i7+8 244 0x81 0xcf 0xe0 0x08 245 246 # CHECK: stbar 247 0x81 0x43 0xc0 0x00 248 249 # CHECK: ta %i5 250 0x91 0xd0 0x00 0x1d 251 252 # CHECK: ta 82 253 0x91 0xd0 0x20 0x52 254 255 # CHECK: ta %g1 + %i2 256 0x91 0xd0 0x40 0x1a 257 258 # CHECK: ta %i5 + 41 259 0x91 0xd7 0x60 0x29 260 261 # CHECK: tn %i5 262 0x81 0xd0 0x00 0x1d 263 264 # CHECK: tne 82 265 0x93 0xd0 0x20 0x52 266 267 # CHECK: te %g1 + %i2 268 0x83 0xd0 0x40 0x1a 269 270 # CHECK: tg %i5 + 41 271 0x95 0xd7 0x60 0x29 272 273 # CHECK: tle %i5 274 0x85 0xd0 0x00 0x1d 275 276 # CHECK: tge 82 277 0x97 0xd0 0x20 0x52 278 279 # CHECK: tl %g1 + %i2 280 0x87 0xd0 0x40 0x1a 281 282 # CHECK: tgu %i5 + 41 283 0x99 0xd7 0x60 0x29 284 285 # CHECK: tleu %i5 286 0x89 0xd0 0x00 0x1d 287 288 # CHECK: tcc 82 289 0x9b 0xd0 0x20 0x52 290 291 # CHECK: tcs %g1 + %i2 292 0x8b 0xd0 0x40 0x1a 293 294 # CHECK: tpos %i5 + 41 295 0x9d 0xd7 0x60 0x29 296 297 # CHECK: tneg %i5 298 0x8d 0xd0 0x00 0x1d 299 300 # CHECK: tvc 82 301 0x9f 0xd0 0x20 0x52 302 303 # CHECK: tvs %g1 + %i2 304 0x8f 0xd0 0x40 0x1a 305