1 # RUN: llvm-mc --disassemble %s -triple powerpc64-unknown-unknown -mcpu=pwr7 | FileCheck %s 2 3 # CHECK: lfs 2, 128(4) 4 0xc0 0x44 0x00 0x80 5 6 # CHECK: lfsx 2, 3, 4 7 0x7c 0x43 0x24 0x2e 8 9 # CHECK: lfsu 2, 128(4) 10 0xc4 0x44 0x00 0x80 11 12 # CHECK: lfsux 2, 3, 4 13 0x7c 0x43 0x24 0x6e 14 15 # CHECK: lfd 2, 128(4) 16 0xc8 0x44 0x00 0x80 17 18 # CHECK: lfdx 2, 3, 4 19 0x7c 0x43 0x24 0xae 20 21 # CHECK: lfdu 2, 128(4) 22 0xcc 0x44 0x00 0x80 23 24 # CHECK: lfdux 2, 3, 4 25 0x7c 0x43 0x24 0xee 26 27 # CHECK: lfiwax 2, 3, 4 28 0x7c 0x43 0x26 0xae 29 30 # CHECK: lfiwzx 2, 3, 4 31 0x7c 0x43 0x26 0xee 32 33 # CHECK: stfs 2, 128(4) 34 0xd0 0x44 0x00 0x80 35 36 # CHECK: stfsx 2, 3, 4 37 0x7c 0x43 0x25 0x2e 38 39 # CHECK: stfsu 2, 128(4) 40 0xd4 0x44 0x00 0x80 41 42 # CHECK: stfsux 2, 3, 4 43 0x7c 0x43 0x25 0x6e 44 45 # CHECK: stfd 2, 128(4) 46 0xd8 0x44 0x00 0x80 47 48 # CHECK: stfdx 2, 3, 4 49 0x7c 0x43 0x25 0xae 50 51 # CHECK: stfdu 2, 128(4) 52 0xdc 0x44 0x00 0x80 53 54 # CHECK: stfdux 2, 3, 4 55 0x7c 0x43 0x25 0xee 56 57 # CHECK: stfiwx 2, 3, 4 58 0x7c 0x43 0x27 0xae 59 60 # CHECK: fmr 2, 3 61 0xfc 0x40 0x18 0x90 62 63 # CHECK: fmr. 2, 3 64 0xfc 0x40 0x18 0x91 65 66 # CHECK: fneg 2, 3 67 0xfc 0x40 0x18 0x50 68 69 # CHECK: fneg. 2, 3 70 0xfc 0x40 0x18 0x51 71 72 # CHECK: fabs 2, 3 73 0xfc 0x40 0x1a 0x10 74 75 # CHECK: fabs. 2, 3 76 0xfc 0x40 0x1a 0x11 77 78 # CHECK: fnabs 2, 3 79 0xfc 0x40 0x19 0x10 80 81 # CHECK: fnabs. 2, 3 82 0xfc 0x40 0x19 0x11 83 84 # CHECK: fcpsgn 2, 3, 4 85 0xfc 0x43 0x20 0x10 86 87 # CHECK: fcpsgn. 2, 3, 4 88 0xfc 0x43 0x20 0x11 89 90 # CHECK: fadd 2, 3, 4 91 0xfc 0x43 0x20 0x2a 92 93 # CHECK: fadd. 2, 3, 4 94 0xfc 0x43 0x20 0x2b 95 96 # CHECK: fadds 2, 3, 4 97 0xec 0x43 0x20 0x2a 98 99 # CHECK: fadds. 2, 3, 4 100 0xec 0x43 0x20 0x2b 101 102 # CHECK: fsub 2, 3, 4 103 0xfc 0x43 0x20 0x28 104 105 # CHECK: fsub. 2, 3, 4 106 0xfc 0x43 0x20 0x29 107 108 # CHECK: fsubs 2, 3, 4 109 0xec 0x43 0x20 0x28 110 111 # CHECK: fsubs. 2, 3, 4 112 0xec 0x43 0x20 0x29 113 114 # CHECK: fmul 2, 3, 4 115 0xfc 0x43 0x01 0x32 116 117 # CHECK: fmul. 2, 3, 4 118 0xfc 0x43 0x01 0x33 119 120 # CHECK: fmuls 2, 3, 4 121 0xec 0x43 0x01 0x32 122 123 # CHECK: fmuls. 2, 3, 4 124 0xec 0x43 0x01 0x33 125 126 # CHECK: fdiv 2, 3, 4 127 0xfc 0x43 0x20 0x24 128 129 # CHECK: fdiv. 2, 3, 4 130 0xfc 0x43 0x20 0x25 131 132 # CHECK: fdivs 2, 3, 4 133 0xec 0x43 0x20 0x24 134 135 # CHECK: fdivs. 2, 3, 4 136 0xec 0x43 0x20 0x25 137 138 # CHECK: fsqrt 2, 3 139 0xfc 0x40 0x18 0x2c 140 141 # CHECK: fsqrt. 2, 3 142 0xfc 0x40 0x18 0x2d 143 144 # CHECK: fsqrts 2, 3 145 0xec 0x40 0x18 0x2c 146 147 # CHECK: fsqrts. 2, 3 148 0xec 0x40 0x18 0x2d 149 150 # CHECK: fre 2, 3 151 0xfc 0x40 0x18 0x30 152 153 # CHECK: fre. 2, 3 154 0xfc 0x40 0x18 0x31 155 156 # CHECK: fres 2, 3 157 0xec 0x40 0x18 0x30 158 159 # CHECK: fres. 2, 3 160 0xec 0x40 0x18 0x31 161 162 # CHECK: frsqrte 2, 3 163 0xfc 0x40 0x18 0x34 164 165 # CHECK: frsqrte. 2, 3 166 0xfc 0x40 0x18 0x35 167 168 # CHECK: frsqrtes 2, 3 169 0xec 0x40 0x18 0x34 170 171 # CHECK: frsqrtes. 2, 3 172 0xec 0x40 0x18 0x35 173 174 # CHECK: fmadd 2, 3, 4, 5 175 0xfc 0x43 0x29 0x3a 176 177 # CHECK: fmadd. 2, 3, 4, 5 178 0xfc 0x43 0x29 0x3b 179 180 # CHECK: fmadds 2, 3, 4, 5 181 0xec 0x43 0x29 0x3a 182 183 # CHECK: fmadds. 2, 3, 4, 5 184 0xec 0x43 0x29 0x3b 185 186 # CHECK: fmsub 2, 3, 4, 5 187 0xfc 0x43 0x29 0x38 188 189 # CHECK: fmsub. 2, 3, 4, 5 190 0xfc 0x43 0x29 0x39 191 192 # CHECK: fmsubs 2, 3, 4, 5 193 0xec 0x43 0x29 0x38 194 195 # CHECK: fmsubs. 2, 3, 4, 5 196 0xec 0x43 0x29 0x39 197 198 # CHECK: fnmadd 2, 3, 4, 5 199 0xfc 0x43 0x29 0x3e 200 201 # CHECK: fnmadd. 2, 3, 4, 5 202 0xfc 0x43 0x29 0x3f 203 204 # CHECK: fnmadds 2, 3, 4, 5 205 0xec 0x43 0x29 0x3e 206 207 # CHECK: fnmadds. 2, 3, 4, 5 208 0xec 0x43 0x29 0x3f 209 210 # CHECK: fnmsub 2, 3, 4, 5 211 0xfc 0x43 0x29 0x3c 212 213 # CHECK: fnmsub. 2, 3, 4, 5 214 0xfc 0x43 0x29 0x3d 215 216 # CHECK: fnmsubs 2, 3, 4, 5 217 0xec 0x43 0x29 0x3c 218 219 # CHECK: fnmsubs. 2, 3, 4, 5 220 0xec 0x43 0x29 0x3d 221 222 # CHECK: frsp 2, 3 223 0xfc 0x40 0x18 0x18 224 225 # CHECK: frsp. 2, 3 226 0xfc 0x40 0x18 0x19 227 228 # CHECK: fctid 2, 3 229 0xfc 0x40 0x1e 0x5c 230 231 # CHECK: fctid. 2, 3 232 0xfc 0x40 0x1e 0x5d 233 234 # CHECK: fctidz 2, 3 235 0xfc 0x40 0x1e 0x5e 236 237 # CHECK: fctidz. 2, 3 238 0xfc 0x40 0x1e 0x5f 239 240 # CHECK: fctiduz 2, 3 241 0xfc 0x40 0x1f 0x5e 242 243 # CHECK: fctiduz. 2, 3 244 0xfc 0x40 0x1f 0x5f 245 246 # CHECK: fctiw 2, 3 247 0xfc 0x40 0x18 0x1c 248 249 # CHECK: fctiw. 2, 3 250 0xfc 0x40 0x18 0x1d 251 252 # CHECK: fctiwz 2, 3 253 0xfc 0x40 0x18 0x1e 254 255 # CHECK: fctiwz. 2, 3 256 0xfc 0x40 0x18 0x1f 257 258 # CHECK: fctiwuz 2, 3 259 0xfc 0x40 0x19 0x1e 260 261 # CHECK: fctiwuz. 2, 3 262 0xfc 0x40 0x19 0x1f 263 264 # CHECK: fcfid 2, 3 265 0xfc 0x40 0x1e 0x9c 266 267 # CHECK: fcfid. 2, 3 268 0xfc 0x40 0x1e 0x9d 269 270 # CHECK: fcfidu 2, 3 271 0xfc 0x40 0x1f 0x9c 272 273 # CHECK: fcfidu. 2, 3 274 0xfc 0x40 0x1f 0x9d 275 276 # CHECK: fcfids 2, 3 277 0xec 0x40 0x1e 0x9c 278 279 # CHECK: fcfids. 2, 3 280 0xec 0x40 0x1e 0x9d 281 282 # CHECK: fcfidus 2, 3 283 0xec 0x40 0x1f 0x9c 284 285 # CHECK: fcfidus. 2, 3 286 0xec 0x40 0x1f 0x9d 287 288 # CHECK: frin 2, 3 289 0xfc 0x40 0x1b 0x10 290 291 # CHECK: frin. 2, 3 292 0xfc 0x40 0x1b 0x11 293 294 # CHECK: frip 2, 3 295 0xfc 0x40 0x1b 0x90 296 297 # CHECK: frip. 2, 3 298 0xfc 0x40 0x1b 0x91 299 300 # CHECK: friz 2, 3 301 0xfc 0x40 0x1b 0x50 302 303 # CHECK: friz. 2, 3 304 0xfc 0x40 0x1b 0x51 305 306 # CHECK: frim 2, 3 307 0xfc 0x40 0x1b 0xd0 308 309 # CHECK: frim. 2, 3 310 0xfc 0x40 0x1b 0xd1 311 312 # CHECK: fcmpu 2, 3, 4 313 0xfd 0x03 0x20 0x00 314 315 # CHECK: fsel 2, 3, 4, 5 316 0xfc 0x43 0x29 0x2e 317 318 # CHECK: fsel. 2, 3, 4, 5 319 0xfc 0x43 0x29 0x2f 320 321 # CHECK: mffs 2 322 0xfc 0x40 0x04 0x8e 323 324 # CHECK: mffs. 7 325 0xfc 0xe0 0x04 0x8f 326 327 # CHECK: mcrfs 4, 5 328 0xfe 0x14 0x00 0x80 329 330 # CHECK: mtfsfi 5, 2, 1 331 0xfe 0x81 0x21 0x0c 332 333 # CHECK: mtfsfi. 5, 2, 1 334 0xfe 0x81 0x21 0x0d 335 336 # CHECK: mtfsf 127, 8, 1, 1 337 0xfe 0xff 0x45 0x8e 338 339 # CHECK: mtfsf. 125, 8, 1, 1 340 0xfe 0xfb 0x45 0x8f 341 342 # CHECK: mtfsb0 31 343 0xff 0xe0 0x00 0x8c 344 345 # CHECK: mtfsb1 31 346 0xff 0xe0 0x00 0x4c 347 348