1 2# RUN: llvm-mc -triple powerpc64-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s 3# RUN: llvm-mc -triple powerpc64le-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s 4 5# Vector facility 6 7# Vector storage access instructions 8 9# CHECK-BE: lvebx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x0e] 10# CHECK-LE: lvebx 2, 3, 4 # encoding: [0x0e,0x20,0x43,0x7c] 11 lvebx 2, 3, 4 12# CHECK-BE: lvehx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x4e] 13# CHECK-LE: lvehx 2, 3, 4 # encoding: [0x4e,0x20,0x43,0x7c] 14 lvehx 2, 3, 4 15# CHECK-BE: lvewx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x8e] 16# CHECK-LE: lvewx 2, 3, 4 # encoding: [0x8e,0x20,0x43,0x7c] 17 lvewx 2, 3, 4 18# CHECK-BE: lvx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0xce] 19# CHECK-LE: lvx 2, 3, 4 # encoding: [0xce,0x20,0x43,0x7c] 20 lvx 2, 3, 4 21# CHECK-BE: lvxl 2, 3, 4 # encoding: [0x7c,0x43,0x22,0xce] 22# CHECK-LE: lvxl 2, 3, 4 # encoding: [0xce,0x22,0x43,0x7c] 23 lvxl 2, 3, 4 24# CHECK-BE: stvebx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x0e] 25# CHECK-LE: stvebx 2, 3, 4 # encoding: [0x0e,0x21,0x43,0x7c] 26 stvebx 2, 3, 4 27# CHECK-BE: stvehx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x4e] 28# CHECK-LE: stvehx 2, 3, 4 # encoding: [0x4e,0x21,0x43,0x7c] 29 stvehx 2, 3, 4 30# CHECK-BE: stvewx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x8e] 31# CHECK-LE: stvewx 2, 3, 4 # encoding: [0x8e,0x21,0x43,0x7c] 32 stvewx 2, 3, 4 33# CHECK-BE: stvx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xce] 34# CHECK-LE: stvx 2, 3, 4 # encoding: [0xce,0x21,0x43,0x7c] 35 stvx 2, 3, 4 36# CHECK-BE: stvxl 2, 3, 4 # encoding: [0x7c,0x43,0x23,0xce] 37# CHECK-LE: stvxl 2, 3, 4 # encoding: [0xce,0x23,0x43,0x7c] 38 stvxl 2, 3, 4 39# CHECK-BE: lvsl 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x0c] 40# CHECK-LE: lvsl 2, 3, 4 # encoding: [0x0c,0x20,0x43,0x7c] 41 lvsl 2, 3, 4 42# CHECK-BE: lvsr 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x4c] 43# CHECK-LE: lvsr 2, 3, 4 # encoding: [0x4c,0x20,0x43,0x7c] 44 lvsr 2, 3, 4 45 46# Vector permute and formatting instructions 47 48# CHECK-BE: vpkpx 2, 3, 4 # encoding: [0x10,0x43,0x23,0x0e] 49# CHECK-LE: vpkpx 2, 3, 4 # encoding: [0x0e,0x23,0x43,0x10] 50 vpkpx 2, 3, 4 51# CHECK-BE: vpkshss 2, 3, 4 # encoding: [0x10,0x43,0x21,0x8e] 52# CHECK-LE: vpkshss 2, 3, 4 # encoding: [0x8e,0x21,0x43,0x10] 53 vpkshss 2, 3, 4 54# CHECK-BE: vpkshus 2, 3, 4 # encoding: [0x10,0x43,0x21,0x0e] 55# CHECK-LE: vpkshus 2, 3, 4 # encoding: [0x0e,0x21,0x43,0x10] 56 vpkshus 2, 3, 4 57# CHECK-BE: vpkswss 2, 3, 4 # encoding: [0x10,0x43,0x21,0xce] 58# CHECK-LE: vpkswss 2, 3, 4 # encoding: [0xce,0x21,0x43,0x10] 59 vpkswss 2, 3, 4 60# CHECK-BE: vpkswus 2, 3, 4 # encoding: [0x10,0x43,0x21,0x4e] 61# CHECK-LE: vpkswus 2, 3, 4 # encoding: [0x4e,0x21,0x43,0x10] 62 vpkswus 2, 3, 4 63# CHECK-BE: vpkuhum 2, 3, 4 # encoding: [0x10,0x43,0x20,0x0e] 64# CHECK-LE: vpkuhum 2, 3, 4 # encoding: [0x0e,0x20,0x43,0x10] 65 vpkuhum 2, 3, 4 66# CHECK-BE: vpkuhus 2, 3, 4 # encoding: [0x10,0x43,0x20,0x8e] 67# CHECK-LE: vpkuhus 2, 3, 4 # encoding: [0x8e,0x20,0x43,0x10] 68 vpkuhus 2, 3, 4 69# CHECK-BE: vpkuwum 2, 3, 4 # encoding: [0x10,0x43,0x20,0x4e] 70# CHECK-LE: vpkuwum 2, 3, 4 # encoding: [0x4e,0x20,0x43,0x10] 71 vpkuwum 2, 3, 4 72# CHECK-BE: vpkuwus 2, 3, 4 # encoding: [0x10,0x43,0x20,0xce] 73# CHECK-LE: vpkuwus 2, 3, 4 # encoding: [0xce,0x20,0x43,0x10] 74 vpkuwus 2, 3, 4 75 76# CHECK-BE: vupkhpx 2, 3 # encoding: [0x10,0x40,0x1b,0x4e] 77# CHECK-LE: vupkhpx 2, 3 # encoding: [0x4e,0x1b,0x40,0x10] 78 vupkhpx 2, 3 79# CHECK-BE: vupkhsb 2, 3 # encoding: [0x10,0x40,0x1a,0x0e] 80# CHECK-LE: vupkhsb 2, 3 # encoding: [0x0e,0x1a,0x40,0x10] 81 vupkhsb 2, 3 82# CHECK-BE: vupkhsh 2, 3 # encoding: [0x10,0x40,0x1a,0x4e] 83# CHECK-LE: vupkhsh 2, 3 # encoding: [0x4e,0x1a,0x40,0x10] 84 vupkhsh 2, 3 85# CHECK-BE: vupklpx 2, 3 # encoding: [0x10,0x40,0x1b,0xce] 86# CHECK-LE: vupklpx 2, 3 # encoding: [0xce,0x1b,0x40,0x10] 87 vupklpx 2, 3 88# CHECK-BE: vupklsb 2, 3 # encoding: [0x10,0x40,0x1a,0x8e] 89# CHECK-LE: vupklsb 2, 3 # encoding: [0x8e,0x1a,0x40,0x10] 90 vupklsb 2, 3 91# CHECK-BE: vupklsh 2, 3 # encoding: [0x10,0x40,0x1a,0xce] 92# CHECK-LE: vupklsh 2, 3 # encoding: [0xce,0x1a,0x40,0x10] 93 vupklsh 2, 3 94 95# CHECK-BE: vmrghb 2, 3, 4 # encoding: [0x10,0x43,0x20,0x0c] 96# CHECK-LE: vmrghb 2, 3, 4 # encoding: [0x0c,0x20,0x43,0x10] 97 vmrghb 2, 3, 4 98# CHECK-BE: vmrghh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x4c] 99# CHECK-LE: vmrghh 2, 3, 4 # encoding: [0x4c,0x20,0x43,0x10] 100 vmrghh 2, 3, 4 101# CHECK-BE: vmrghw 2, 3, 4 # encoding: [0x10,0x43,0x20,0x8c] 102# CHECK-LE: vmrghw 2, 3, 4 # encoding: [0x8c,0x20,0x43,0x10] 103 vmrghw 2, 3, 4 104# CHECK-BE: vmrglb 2, 3, 4 # encoding: [0x10,0x43,0x21,0x0c] 105# CHECK-LE: vmrglb 2, 3, 4 # encoding: [0x0c,0x21,0x43,0x10] 106 vmrglb 2, 3, 4 107# CHECK-BE: vmrglh 2, 3, 4 # encoding: [0x10,0x43,0x21,0x4c] 108# CHECK-LE: vmrglh 2, 3, 4 # encoding: [0x4c,0x21,0x43,0x10] 109 vmrglh 2, 3, 4 110# CHECK-BE: vmrglw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x8c] 111# CHECK-LE: vmrglw 2, 3, 4 # encoding: [0x8c,0x21,0x43,0x10] 112 vmrglw 2, 3, 4 113# CHECK-BE: vmrgew 2, 3, 4 # encoding: [0x10,0x43,0x27,0x8c] 114# CHECK-LE: vmrgew 2, 3, 4 # encoding: [0x8c,0x27,0x43,0x10] 115 vmrgew 2, 3, 4 116# CHECK-BE: vmrgow 2, 3, 4 # encoding: [0x10,0x43,0x26,0x8c] 117# CHECK-LE: vmrgow 2, 3, 4 # encoding: [0x8c,0x26,0x43,0x10] 118 vmrgow 2, 3, 4 119 120# CHECK-BE: vspltb 2, 3, 1 # encoding: [0x10,0x41,0x1a,0x0c] 121# CHECK-LE: vspltb 2, 3, 1 # encoding: [0x0c,0x1a,0x41,0x10] 122 vspltb 2, 3, 1 123# CHECK-BE: vsplth 2, 3, 1 # encoding: [0x10,0x41,0x1a,0x4c] 124# CHECK-LE: vsplth 2, 3, 1 # encoding: [0x4c,0x1a,0x41,0x10] 125 vsplth 2, 3, 1 126# CHECK-BE: vspltw 2, 3, 1 # encoding: [0x10,0x41,0x1a,0x8c] 127# CHECK-LE: vspltw 2, 3, 1 # encoding: [0x8c,0x1a,0x41,0x10] 128 vspltw 2, 3, 1 129# CHECK-BE: vspltisb 2, 3 # encoding: [0x10,0x43,0x03,0x0c] 130# CHECK-LE: vspltisb 2, 3 # encoding: [0x0c,0x03,0x43,0x10] 131 vspltisb 2, 3 132# CHECK-BE: vspltish 2, 3 # encoding: [0x10,0x43,0x03,0x4c] 133# CHECK-LE: vspltish 2, 3 # encoding: [0x4c,0x03,0x43,0x10] 134 vspltish 2, 3 135# CHECK-BE: vspltisw 2, 3 # encoding: [0x10,0x43,0x03,0x8c] 136# CHECK-LE: vspltisw 2, 3 # encoding: [0x8c,0x03,0x43,0x10] 137 vspltisw 2, 3 138 139# CHECK-BE: vperm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x6b] 140# CHECK-LE: vperm 2, 3, 4, 5 # encoding: [0x6b,0x21,0x43,0x10] 141 vperm 2, 3, 4, 5 142 143# CHECK-BE: vpermxor 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x6d] 144# CHECK-LE: vpermxor 2, 3, 4, 5 # encoding: [0x6d,0x21,0x43,0x10] 145 vpermxor 2, 3, 4, 5 146 147# CHECK-BE: vsbox 2, 5 # encoding: [0x10,0x45,0x05,0xc8] 148# CHECK-LE: vsbox 2, 5 # encoding: [0xc8,0x05,0x45,0x10] 149 vsbox 2, 5 150 151# CHECK-BE: vcipher 2, 5, 17 # encoding: [0x10,0x45,0x8d,0x08] 152# CHECK-LE: vcipher 2, 5, 17 # encoding: [0x08,0x8d,0x45,0x10] 153 vcipher 2, 5, 17 154 155# CHECK-BE: vcipherlast 2, 5, 17 # encoding: [0x10,0x45,0x8d,0x09] 156# CHECK-LE: vcipherlast 2, 5, 17 # encoding: [0x09,0x8d,0x45,0x10] 157 vcipherlast 2, 5, 17 158 159# CHECK-BE: vncipher 2, 5, 17 # encoding: [0x10,0x45,0x8d,0x48] 160# CHECK-LE: vncipher 2, 5, 17 # encoding: [0x48,0x8d,0x45,0x10] 161 vncipher 2, 5, 17 162 163# CHECK-BE: vncipherlast 2, 5, 17 # encoding: [0x10,0x45,0x8d,0x49] 164# CHECK-LE: vncipherlast 2, 5, 17 # encoding: [0x49,0x8d,0x45,0x10] 165 vncipherlast 2, 5, 17 166 167# CHECK-BE: vpmsumb 2, 5, 17 # encoding: [0x10,0x45,0x8c,0x08] 168# CHECK-LE: vpmsumb 2, 5, 17 # encoding: [0x08,0x8c,0x45,0x10] 169 vpmsumb 2, 5, 17 170 171# CHECK-BE: vpmsumh 2, 5, 17 # encoding: [0x10,0x45,0x8c,0x48] 172# CHECK-LE: vpmsumh 2, 5, 17 # encoding: [0x48,0x8c,0x45,0x10] 173 vpmsumh 2, 5, 17 174 175# CHECK-BE: vpmsumw 2, 5, 17 # encoding: [0x10,0x45,0x8c,0x88] 176# CHECK-LE: vpmsumw 2, 5, 17 # encoding: [0x88,0x8c,0x45,0x10] 177 vpmsumw 2, 5, 17 178 179# CHECK-BE: vpmsumd 2, 5, 17 # encoding: [0x10,0x45,0x8c,0xc8] 180# CHECK-LE: vpmsumd 2, 5, 17 # encoding: [0xc8,0x8c,0x45,0x10] 181 vpmsumd 2, 5, 17 182 183# CHECK-BE: vshasigmaw 2, 3, 0, 11 # encoding: [0x10,0x43,0x5e,0x82] 184# CHECK-LE: vshasigmaw 2, 3, 0, 11 # encoding: [0x82,0x5e,0x43,0x10] 185 vshasigmaw 2, 3, 0, 11 186 187# CHECK-BE: vshasigmad 2, 3, 1, 15 # encoding: [0x10,0x43,0xfe,0xc2] 188# CHECK-LE: vshasigmad 2, 3, 1, 15 # encoding: [0xc2,0xfe,0x43,0x10] 189 vshasigmad 2, 3, 1, 15 190 191# CHECK-BE: vsel 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x6a] 192# CHECK-LE: vsel 2, 3, 4, 5 # encoding: [0x6a,0x21,0x43,0x10] 193 vsel 2, 3, 4, 5 194 195# CHECK-BE: vsl 2, 3, 4 # encoding: [0x10,0x43,0x21,0xc4] 196# CHECK-LE: vsl 2, 3, 4 # encoding: [0xc4,0x21,0x43,0x10] 197 vsl 2, 3, 4 198# CHECK-BE: vsldoi 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x6c] 199# CHECK-LE: vsldoi 2, 3, 4, 5 # encoding: [0x6c,0x21,0x43,0x10] 200 vsldoi 2, 3, 4, 5 201# CHECK-BE: vslo 2, 3, 4 # encoding: [0x10,0x43,0x24,0x0c] 202# CHECK-LE: vslo 2, 3, 4 # encoding: [0x0c,0x24,0x43,0x10] 203 vslo 2, 3, 4 204# CHECK-BE: vsr 2, 3, 4 # encoding: [0x10,0x43,0x22,0xc4] 205# CHECK-LE: vsr 2, 3, 4 # encoding: [0xc4,0x22,0x43,0x10] 206 vsr 2, 3, 4 207# CHECK-BE: vsro 2, 3, 4 # encoding: [0x10,0x43,0x24,0x4c] 208# CHECK-LE: vsro 2, 3, 4 # encoding: [0x4c,0x24,0x43,0x10] 209 vsro 2, 3, 4 210 211# Vector integer arithmetic instructions 212 213# CHECK-BE: vaddcuw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x80] 214# CHECK-LE: vaddcuw 2, 3, 4 # encoding: [0x80,0x21,0x43,0x10] 215 vaddcuw 2, 3, 4 216# CHECK-BE: vaddsbs 2, 3, 4 # encoding: [0x10,0x43,0x23,0x00] 217# CHECK-LE: vaddsbs 2, 3, 4 # encoding: [0x00,0x23,0x43,0x10] 218 vaddsbs 2, 3, 4 219# CHECK-BE: vaddshs 2, 3, 4 # encoding: [0x10,0x43,0x23,0x40] 220# CHECK-LE: vaddshs 2, 3, 4 # encoding: [0x40,0x23,0x43,0x10] 221 vaddshs 2, 3, 4 222# CHECK-BE: vaddsws 2, 3, 4 # encoding: [0x10,0x43,0x23,0x80] 223# CHECK-LE: vaddsws 2, 3, 4 # encoding: [0x80,0x23,0x43,0x10] 224 vaddsws 2, 3, 4 225# CHECK-BE: vaddubm 2, 3, 4 # encoding: [0x10,0x43,0x20,0x00] 226# CHECK-LE: vaddubm 2, 3, 4 # encoding: [0x00,0x20,0x43,0x10] 227 vaddubm 2, 3, 4 228# CHECK-BE: vadduhm 2, 3, 4 # encoding: [0x10,0x43,0x20,0x40] 229# CHECK-LE: vadduhm 2, 3, 4 # encoding: [0x40,0x20,0x43,0x10] 230 vadduhm 2, 3, 4 231# CHECK-BE: vadduwm 2, 3, 4 # encoding: [0x10,0x43,0x20,0x80] 232# CHECK-LE: vadduwm 2, 3, 4 # encoding: [0x80,0x20,0x43,0x10] 233 vadduwm 2, 3, 4 234# CHECK-BE: vaddudm 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc0] 235# CHECK-LE: vaddudm 2, 3, 4 # encoding: [0xc0,0x20,0x43,0x10] 236 vaddudm 2, 3, 4 237# CHECK-BE: vaddubs 2, 3, 4 # encoding: [0x10,0x43,0x22,0x00] 238# CHECK-LE: vaddubs 2, 3, 4 # encoding: [0x00,0x22,0x43,0x10] 239 vaddubs 2, 3, 4 240# CHECK-BE: vadduhs 2, 3, 4 # encoding: [0x10,0x43,0x22,0x40] 241# CHECK-LE: vadduhs 2, 3, 4 # encoding: [0x40,0x22,0x43,0x10] 242 vadduhs 2, 3, 4 243# CHECK-BE: vadduws 2, 3, 4 # encoding: [0x10,0x43,0x22,0x80] 244# CHECK-LE: vadduws 2, 3, 4 # encoding: [0x80,0x22,0x43,0x10] 245 vadduws 2, 3, 4 246# CHECK-BE: vadduqm 2, 3, 4 # encoding: [0x10,0x43,0x21,0x00] 247# CHECK-LE: vadduqm 2, 3, 4 # encoding: [0x00,0x21,0x43,0x10] 248 vadduqm 2, 3, 4 249# CHECK-BE: vaddeuqm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x7c] 250# CHECK-LE: vaddeuqm 2, 3, 4, 5 # encoding: [0x7c,0x21,0x43,0x10] 251 vaddeuqm 2, 3, 4, 5 252# CHECK-BE: vaddcuq 2, 3, 4 # encoding: [0x10,0x43,0x21,0x40] 253# CHECK-LE: vaddcuq 2, 3, 4 # encoding: [0x40,0x21,0x43,0x10] 254 vaddcuq 2, 3, 4 255# CHECK-BE: vaddecuq 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x7d] 256# CHECK-LE: vaddecuq 2, 3, 4, 5 # encoding: [0x7d,0x21,0x43,0x10] 257 vaddecuq 2, 3, 4, 5 258 259# CHECK-BE: vsubcuw 2, 3, 4 # encoding: [0x10,0x43,0x25,0x80] 260# CHECK-LE: vsubcuw 2, 3, 4 # encoding: [0x80,0x25,0x43,0x10] 261 vsubcuw 2, 3, 4 262# CHECK-BE: vsubsbs 2, 3, 4 # encoding: [0x10,0x43,0x27,0x00] 263# CHECK-LE: vsubsbs 2, 3, 4 # encoding: [0x00,0x27,0x43,0x10] 264 vsubsbs 2, 3, 4 265# CHECK-BE: vsubshs 2, 3, 4 # encoding: [0x10,0x43,0x27,0x40] 266# CHECK-LE: vsubshs 2, 3, 4 # encoding: [0x40,0x27,0x43,0x10] 267 vsubshs 2, 3, 4 268# CHECK-BE: vsubsws 2, 3, 4 # encoding: [0x10,0x43,0x27,0x80] 269# CHECK-LE: vsubsws 2, 3, 4 # encoding: [0x80,0x27,0x43,0x10] 270 vsubsws 2, 3, 4 271# CHECK-BE: vsububm 2, 3, 4 # encoding: [0x10,0x43,0x24,0x00] 272# CHECK-LE: vsububm 2, 3, 4 # encoding: [0x00,0x24,0x43,0x10] 273 vsububm 2, 3, 4 274# CHECK-BE: vsubuhm 2, 3, 4 # encoding: [0x10,0x43,0x24,0x40] 275# CHECK-LE: vsubuhm 2, 3, 4 # encoding: [0x40,0x24,0x43,0x10] 276 vsubuhm 2, 3, 4 277# CHECK-BE: vsubuwm 2, 3, 4 # encoding: [0x10,0x43,0x24,0x80] 278# CHECK-LE: vsubuwm 2, 3, 4 # encoding: [0x80,0x24,0x43,0x10] 279 vsubuwm 2, 3, 4 280# CHECK-BE: vsubudm 2, 3, 4 # encoding: [0x10,0x43,0x24,0xc0] 281# CHECK-LE: vsubudm 2, 3, 4 # encoding: [0xc0,0x24,0x43,0x10] 282 vsubudm 2, 3, 4 283# CHECK-BE: vsububs 2, 3, 4 # encoding: [0x10,0x43,0x26,0x00] 284# CHECK-LE: vsububs 2, 3, 4 # encoding: [0x00,0x26,0x43,0x10] 285 vsububs 2, 3, 4 286# CHECK-BE: vsubuhs 2, 3, 4 # encoding: [0x10,0x43,0x26,0x40] 287# CHECK-LE: vsubuhs 2, 3, 4 # encoding: [0x40,0x26,0x43,0x10] 288 vsubuhs 2, 3, 4 289# CHECK-BE: vsubuws 2, 3, 4 # encoding: [0x10,0x43,0x26,0x80] 290# CHECK-LE: vsubuws 2, 3, 4 # encoding: [0x80,0x26,0x43,0x10] 291 vsubuws 2, 3, 4 292# CHECK-BE: vsubuqm 2, 3, 4 # encoding: [0x10,0x43,0x25,0x00] 293# CHECK-LE: vsubuqm 2, 3, 4 # encoding: [0x00,0x25,0x43,0x10] 294 vsubuqm 2, 3, 4 295# CHECK-BE: vsubeuqm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x7e] 296# CHECK-LE: vsubeuqm 2, 3, 4, 5 # encoding: [0x7e,0x21,0x43,0x10] 297 vsubeuqm 2, 3, 4, 5 298# CHECK-BE: vsubcuq 2, 3, 4 # encoding: [0x10,0x43,0x25,0x40] 299# CHECK-LE: vsubcuq 2, 3, 4 # encoding: [0x40,0x25,0x43,0x10] 300 vsubcuq 2, 3, 4 301# CHECK-BE: vsubecuq 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x7f] 302# CHECK-LE: vsubecuq 2, 3, 4, 5 # encoding: [0x7f,0x21,0x43,0x10] 303 vsubecuq 2, 3, 4, 5 304 305# CHECK-BE: vmulesb 2, 3, 4 # encoding: [0x10,0x43,0x23,0x08] 306# CHECK-LE: vmulesb 2, 3, 4 # encoding: [0x08,0x23,0x43,0x10] 307 vmulesb 2, 3, 4 308# CHECK-BE: vmulesh 2, 3, 4 # encoding: [0x10,0x43,0x23,0x48] 309# CHECK-LE: vmulesh 2, 3, 4 # encoding: [0x48,0x23,0x43,0x10] 310 vmulesh 2, 3, 4 311# CHECK-BE: vmulesw 2, 3, 4 # encoding: [0x10,0x43,0x23,0x88] 312# CHECK-LE: vmulesw 2, 3, 4 # encoding: [0x88,0x23,0x43,0x10] 313 vmulesw 2, 3, 4 314# CHECK-BE: vmuleub 2, 3, 4 # encoding: [0x10,0x43,0x22,0x08] 315# CHECK-LE: vmuleub 2, 3, 4 # encoding: [0x08,0x22,0x43,0x10] 316 vmuleub 2, 3, 4 317# CHECK-BE: vmuleuh 2, 3, 4 # encoding: [0x10,0x43,0x22,0x48] 318# CHECK-LE: vmuleuh 2, 3, 4 # encoding: [0x48,0x22,0x43,0x10] 319 vmuleuh 2, 3, 4 320# CHECK-BE: vmuleuw 2, 3, 4 # encoding: [0x10,0x43,0x22,0x88] 321# CHECK-LE: vmuleuw 2, 3, 4 # encoding: [0x88,0x22,0x43,0x10] 322 vmuleuw 2, 3, 4 323# CHECK-BE: vmulosb 2, 3, 4 # encoding: [0x10,0x43,0x21,0x08] 324# CHECK-LE: vmulosb 2, 3, 4 # encoding: [0x08,0x21,0x43,0x10] 325 vmulosb 2, 3, 4 326# CHECK-BE: vmulosh 2, 3, 4 # encoding: [0x10,0x43,0x21,0x48] 327# CHECK-LE: vmulosh 2, 3, 4 # encoding: [0x48,0x21,0x43,0x10] 328 vmulosh 2, 3, 4 329# CHECK-BE: vmulosw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x88] 330# CHECK-LE: vmulosw 2, 3, 4 # encoding: [0x88,0x21,0x43,0x10] 331 vmulosw 2, 3, 4 332# CHECK-BE: vmuloub 2, 3, 4 # encoding: [0x10,0x43,0x20,0x08] 333# CHECK-LE: vmuloub 2, 3, 4 # encoding: [0x08,0x20,0x43,0x10] 334 vmuloub 2, 3, 4 335# CHECK-BE: vmulouh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x48] 336# CHECK-LE: vmulouh 2, 3, 4 # encoding: [0x48,0x20,0x43,0x10] 337 vmulouh 2, 3, 4 338# CHECK-BE: vmulouw 2, 3, 4 # encoding: [0x10,0x43,0x20,0x88] 339# CHECK-LE: vmulouw 2, 3, 4 # encoding: [0x88,0x20,0x43,0x10] 340 vmulouw 2, 3, 4 341# CHECK-BE: vmuluwm 2, 3, 4 # encoding: [0x10,0x43,0x20,0x89] 342# CHECK-LE: vmuluwm 2, 3, 4 # encoding: [0x89,0x20,0x43,0x10] 343 vmuluwm 2, 3, 4 344 345# CHECK-BE: vmhaddshs 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x60] 346# CHECK-LE: vmhaddshs 2, 3, 4, 5 # encoding: [0x60,0x21,0x43,0x10] 347 vmhaddshs 2, 3, 4, 5 348# CHECK-BE: vmhraddshs 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x61] 349# CHECK-LE: vmhraddshs 2, 3, 4, 5 # encoding: [0x61,0x21,0x43,0x10] 350 vmhraddshs 2, 3, 4, 5 351# CHECK-BE: vmladduhm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x62] 352# CHECK-LE: vmladduhm 2, 3, 4, 5 # encoding: [0x62,0x21,0x43,0x10] 353 vmladduhm 2, 3, 4, 5 354# CHECK-BE: vmsumubm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x64] 355# CHECK-LE: vmsumubm 2, 3, 4, 5 # encoding: [0x64,0x21,0x43,0x10] 356 vmsumubm 2, 3, 4, 5 357# CHECK-BE: vmsummbm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x65] 358# CHECK-LE: vmsummbm 2, 3, 4, 5 # encoding: [0x65,0x21,0x43,0x10] 359 vmsummbm 2, 3, 4, 5 360# CHECK-BE: vmsumshm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x68] 361# CHECK-LE: vmsumshm 2, 3, 4, 5 # encoding: [0x68,0x21,0x43,0x10] 362 vmsumshm 2, 3, 4, 5 363# CHECK-BE: vmsumshs 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x69] 364# CHECK-LE: vmsumshs 2, 3, 4, 5 # encoding: [0x69,0x21,0x43,0x10] 365 vmsumshs 2, 3, 4, 5 366# CHECK-BE: vmsumuhm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x66] 367# CHECK-LE: vmsumuhm 2, 3, 4, 5 # encoding: [0x66,0x21,0x43,0x10] 368 vmsumuhm 2, 3, 4, 5 369# CHECK-BE: vmsumuhs 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x67] 370# CHECK-LE: vmsumuhs 2, 3, 4, 5 # encoding: [0x67,0x21,0x43,0x10] 371 vmsumuhs 2, 3, 4, 5 372 373# CHECK-BE: vsumsws 2, 3, 4 # encoding: [0x10,0x43,0x27,0x88] 374# CHECK-LE: vsumsws 2, 3, 4 # encoding: [0x88,0x27,0x43,0x10] 375 vsumsws 2, 3, 4 376# CHECK-BE: vsum2sws 2, 3, 4 # encoding: [0x10,0x43,0x26,0x88] 377# CHECK-LE: vsum2sws 2, 3, 4 # encoding: [0x88,0x26,0x43,0x10] 378 vsum2sws 2, 3, 4 379# CHECK-BE: vsum4sbs 2, 3, 4 # encoding: [0x10,0x43,0x27,0x08] 380# CHECK-LE: vsum4sbs 2, 3, 4 # encoding: [0x08,0x27,0x43,0x10] 381 vsum4sbs 2, 3, 4 382# CHECK-BE: vsum4shs 2, 3, 4 # encoding: [0x10,0x43,0x26,0x48] 383# CHECK-LE: vsum4shs 2, 3, 4 # encoding: [0x48,0x26,0x43,0x10] 384 vsum4shs 2, 3, 4 385# CHECK-BE: vsum4ubs 2, 3, 4 # encoding: [0x10,0x43,0x26,0x08] 386# CHECK-LE: vsum4ubs 2, 3, 4 # encoding: [0x08,0x26,0x43,0x10] 387 vsum4ubs 2, 3, 4 388 389# CHECK-BE: vavgsb 2, 3, 4 # encoding: [0x10,0x43,0x25,0x02] 390# CHECK-LE: vavgsb 2, 3, 4 # encoding: [0x02,0x25,0x43,0x10] 391 vavgsb 2, 3, 4 392# CHECK-BE: vavgsh 2, 3, 4 # encoding: [0x10,0x43,0x25,0x42] 393# CHECK-LE: vavgsh 2, 3, 4 # encoding: [0x42,0x25,0x43,0x10] 394 vavgsh 2, 3, 4 395# CHECK-BE: vavgsw 2, 3, 4 # encoding: [0x10,0x43,0x25,0x82] 396# CHECK-LE: vavgsw 2, 3, 4 # encoding: [0x82,0x25,0x43,0x10] 397 vavgsw 2, 3, 4 398# CHECK-BE: vavgub 2, 3, 4 # encoding: [0x10,0x43,0x24,0x02] 399# CHECK-LE: vavgub 2, 3, 4 # encoding: [0x02,0x24,0x43,0x10] 400 vavgub 2, 3, 4 401# CHECK-BE: vavguh 2, 3, 4 # encoding: [0x10,0x43,0x24,0x42] 402# CHECK-LE: vavguh 2, 3, 4 # encoding: [0x42,0x24,0x43,0x10] 403 vavguh 2, 3, 4 404# CHECK-BE: vavguw 2, 3, 4 # encoding: [0x10,0x43,0x24,0x82] 405# CHECK-LE: vavguw 2, 3, 4 # encoding: [0x82,0x24,0x43,0x10] 406 vavguw 2, 3, 4 407 408# CHECK-BE: vmaxsb 2, 3, 4 # encoding: [0x10,0x43,0x21,0x02] 409# CHECK-LE: vmaxsb 2, 3, 4 # encoding: [0x02,0x21,0x43,0x10] 410 vmaxsb 2, 3, 4 411# CHECK-BE: vmaxsh 2, 3, 4 # encoding: [0x10,0x43,0x21,0x42] 412# CHECK-LE: vmaxsh 2, 3, 4 # encoding: [0x42,0x21,0x43,0x10] 413 vmaxsh 2, 3, 4 414# CHECK-BE: vmaxsw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x82] 415# CHECK-LE: vmaxsw 2, 3, 4 # encoding: [0x82,0x21,0x43,0x10] 416 vmaxsw 2, 3, 4 417# CHECK-BE: vmaxsd 2, 3, 4 # encoding: [0x10,0x43,0x21,0xc2] 418# CHECK-LE: vmaxsd 2, 3, 4 # encoding: [0xc2,0x21,0x43,0x10] 419 vmaxsd 2, 3, 4 420# CHECK-BE: vmaxub 2, 3, 4 # encoding: [0x10,0x43,0x20,0x02] 421# CHECK-LE: vmaxub 2, 3, 4 # encoding: [0x02,0x20,0x43,0x10] 422 vmaxub 2, 3, 4 423# CHECK-BE: vmaxuh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x42] 424# CHECK-LE: vmaxuh 2, 3, 4 # encoding: [0x42,0x20,0x43,0x10] 425 vmaxuh 2, 3, 4 426# CHECK-BE: vmaxuw 2, 3, 4 # encoding: [0x10,0x43,0x20,0x82] 427# CHECK-LE: vmaxuw 2, 3, 4 # encoding: [0x82,0x20,0x43,0x10] 428 vmaxuw 2, 3, 4 429# CHECK-BE: vmaxud 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc2] 430# CHECK-LE: vmaxud 2, 3, 4 # encoding: [0xc2,0x20,0x43,0x10] 431 vmaxud 2, 3, 4 432 433# CHECK-BE: vminsb 2, 3, 4 # encoding: [0x10,0x43,0x23,0x02] 434# CHECK-LE: vminsb 2, 3, 4 # encoding: [0x02,0x23,0x43,0x10] 435 vminsb 2, 3, 4 436# CHECK-BE: vminsh 2, 3, 4 # encoding: [0x10,0x43,0x23,0x42] 437# CHECK-LE: vminsh 2, 3, 4 # encoding: [0x42,0x23,0x43,0x10] 438 vminsh 2, 3, 4 439# CHECK-BE: vminsw 2, 3, 4 # encoding: [0x10,0x43,0x23,0x82] 440# CHECK-LE: vminsw 2, 3, 4 # encoding: [0x82,0x23,0x43,0x10] 441 vminsw 2, 3, 4 442# CHECK-BE: vminsd 2, 3, 4 # encoding: [0x10,0x43,0x23,0xc2] 443# CHECK-LE: vminsd 2, 3, 4 # encoding: [0xc2,0x23,0x43,0x10] 444 vminsd 2, 3, 4 445# CHECK-BE: vminub 2, 3, 4 # encoding: [0x10,0x43,0x22,0x02] 446# CHECK-LE: vminub 2, 3, 4 # encoding: [0x02,0x22,0x43,0x10] 447 vminub 2, 3, 4 448# CHECK-BE: vminuh 2, 3, 4 # encoding: [0x10,0x43,0x22,0x42] 449# CHECK-LE: vminuh 2, 3, 4 # encoding: [0x42,0x22,0x43,0x10] 450 vminuh 2, 3, 4 451# CHECK-BE: vminuw 2, 3, 4 # encoding: [0x10,0x43,0x22,0x82] 452# CHECK-LE: vminuw 2, 3, 4 # encoding: [0x82,0x22,0x43,0x10] 453 vminuw 2, 3, 4 454# CHECK-BE: vminud 2, 3, 4 # encoding: [0x10,0x43,0x22,0xc2] 455# CHECK-LE: vminud 2, 3, 4 # encoding: [0xc2,0x22,0x43,0x10] 456 vminud 2, 3, 4 457 458# Vector integer compare instructions 459 460# CHECK-BE: vcmpequb 2, 3, 4 # encoding: [0x10,0x43,0x20,0x06] 461# CHECK-LE: vcmpequb 2, 3, 4 # encoding: [0x06,0x20,0x43,0x10] 462 vcmpequb 2, 3, 4 463# CHECK-BE: vcmpequb. 2, 3, 4 # encoding: [0x10,0x43,0x24,0x06] 464# CHECK-LE: vcmpequb. 2, 3, 4 # encoding: [0x06,0x24,0x43,0x10] 465 vcmpequb. 2, 3, 4 466# CHECK-BE: vcmpequh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x46] 467# CHECK-LE: vcmpequh 2, 3, 4 # encoding: [0x46,0x20,0x43,0x10] 468 vcmpequh 2, 3, 4 469# CHECK-BE: vcmpequh. 2, 3, 4 # encoding: [0x10,0x43,0x24,0x46] 470# CHECK-LE: vcmpequh. 2, 3, 4 # encoding: [0x46,0x24,0x43,0x10] 471 vcmpequh. 2, 3, 4 472# CHECK-BE: vcmpequw 2, 3, 4 # encoding: [0x10,0x43,0x20,0x86] 473# CHECK-LE: vcmpequw 2, 3, 4 # encoding: [0x86,0x20,0x43,0x10] 474 vcmpequw 2, 3, 4 475# CHECK-BE: vcmpequw. 2, 3, 4 # encoding: [0x10,0x43,0x24,0x86] 476# CHECK-LE: vcmpequw. 2, 3, 4 # encoding: [0x86,0x24,0x43,0x10] 477 vcmpequw. 2, 3, 4 478# CHECK-BE: vcmpequd 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc7] 479# CHECK-LE: vcmpequd 2, 3, 4 # encoding: [0xc7,0x20,0x43,0x10] 480 vcmpequd 2, 3, 4 481# CHECK-BE: vcmpequd. 2, 3, 4 # encoding: [0x10,0x43,0x24,0xc7] 482# CHECK-LE: vcmpequd. 2, 3, 4 # encoding: [0xc7,0x24,0x43,0x10] 483 vcmpequd. 2, 3, 4 484# CHECK-BE: vcmpgtsb 2, 3, 4 # encoding: [0x10,0x43,0x23,0x06] 485# CHECK-LE: vcmpgtsb 2, 3, 4 # encoding: [0x06,0x23,0x43,0x10] 486 vcmpgtsb 2, 3, 4 487# CHECK-BE: vcmpgtsb. 2, 3, 4 # encoding: [0x10,0x43,0x27,0x06] 488# CHECK-LE: vcmpgtsb. 2, 3, 4 # encoding: [0x06,0x27,0x43,0x10] 489 vcmpgtsb. 2, 3, 4 490# CHECK-BE: vcmpgtsh 2, 3, 4 # encoding: [0x10,0x43,0x23,0x46] 491# CHECK-LE: vcmpgtsh 2, 3, 4 # encoding: [0x46,0x23,0x43,0x10] 492 vcmpgtsh 2, 3, 4 493# CHECK-BE: vcmpgtsh. 2, 3, 4 # encoding: [0x10,0x43,0x27,0x46] 494# CHECK-LE: vcmpgtsh. 2, 3, 4 # encoding: [0x46,0x27,0x43,0x10] 495 vcmpgtsh. 2, 3, 4 496# CHECK-BE: vcmpgtsw 2, 3, 4 # encoding: [0x10,0x43,0x23,0x86] 497# CHECK-LE: vcmpgtsw 2, 3, 4 # encoding: [0x86,0x23,0x43,0x10] 498 vcmpgtsw 2, 3, 4 499# CHECK-BE: vcmpgtsw. 2, 3, 4 # encoding: [0x10,0x43,0x27,0x86] 500# CHECK-LE: vcmpgtsw. 2, 3, 4 # encoding: [0x86,0x27,0x43,0x10] 501 vcmpgtsw. 2, 3, 4 502# CHECK-BE: vcmpgtsd 2, 3, 4 # encoding: [0x10,0x43,0x23,0xc7] 503# CHECK-LE: vcmpgtsd 2, 3, 4 # encoding: [0xc7,0x23,0x43,0x10] 504 vcmpgtsd 2, 3, 4 505# CHECK-BE: vcmpgtsd. 2, 3, 4 # encoding: [0x10,0x43,0x27,0xc7] 506# CHECK-LE: vcmpgtsd. 2, 3, 4 # encoding: [0xc7,0x27,0x43,0x10] 507 vcmpgtsd. 2, 3, 4 508# CHECK-BE: vcmpgtub 2, 3, 4 # encoding: [0x10,0x43,0x22,0x06] 509# CHECK-LE: vcmpgtub 2, 3, 4 # encoding: [0x06,0x22,0x43,0x10] 510 vcmpgtub 2, 3, 4 511# CHECK-BE: vcmpgtub. 2, 3, 4 # encoding: [0x10,0x43,0x26,0x06] 512# CHECK-LE: vcmpgtub. 2, 3, 4 # encoding: [0x06,0x26,0x43,0x10] 513 vcmpgtub. 2, 3, 4 514# CHECK-BE: vcmpgtuh 2, 3, 4 # encoding: [0x10,0x43,0x22,0x46] 515# CHECK-LE: vcmpgtuh 2, 3, 4 # encoding: [0x46,0x22,0x43,0x10] 516 vcmpgtuh 2, 3, 4 517# CHECK-BE: vcmpgtuh. 2, 3, 4 # encoding: [0x10,0x43,0x26,0x46] 518# CHECK-LE: vcmpgtuh. 2, 3, 4 # encoding: [0x46,0x26,0x43,0x10] 519 vcmpgtuh. 2, 3, 4 520# CHECK-BE: vcmpgtuw 2, 3, 4 # encoding: [0x10,0x43,0x22,0x86] 521# CHECK-LE: vcmpgtuw 2, 3, 4 # encoding: [0x86,0x22,0x43,0x10] 522 vcmpgtuw 2, 3, 4 523# CHECK-BE: vcmpgtuw. 2, 3, 4 # encoding: [0x10,0x43,0x26,0x86] 524# CHECK-LE: vcmpgtuw. 2, 3, 4 # encoding: [0x86,0x26,0x43,0x10] 525 vcmpgtuw. 2, 3, 4 526# CHECK-BE: vcmpgtud 2, 3, 4 # encoding: [0x10,0x43,0x22,0xc7] 527# CHECK-LE: vcmpgtud 2, 3, 4 # encoding: [0xc7,0x22,0x43,0x10] 528 vcmpgtud 2, 3, 4 529# CHECK-BE: vcmpgtud. 2, 3, 4 # encoding: [0x10,0x43,0x26,0xc7] 530# CHECK-LE: vcmpgtud. 2, 3, 4 # encoding: [0xc7,0x26,0x43,0x10] 531 vcmpgtud. 2, 3, 4 532 533# Vector integer logical instructions 534 535# CHECK-BE: vand 2, 3, 4 # encoding: [0x10,0x43,0x24,0x04] 536# CHECK-LE: vand 2, 3, 4 # encoding: [0x04,0x24,0x43,0x10] 537 vand 2, 3, 4 538# CHECK-BE: vandc 2, 3, 4 # encoding: [0x10,0x43,0x24,0x44] 539# CHECK-LE: vandc 2, 3, 4 # encoding: [0x44,0x24,0x43,0x10] 540 vandc 2, 3, 4 541# CHECK-BE: veqv 2, 3, 4 # encoding: [0x10,0x43,0x26,0x84] 542# CHECK-LE: veqv 2, 3, 4 # encoding: [0x84,0x26,0x43,0x10] 543 veqv 2, 3, 4 544# CHECK-BE: vnand 2, 3, 4 # encoding: [0x10,0x43,0x25,0x84] 545# CHECK-LE: vnand 2, 3, 4 # encoding: [0x84,0x25,0x43,0x10] 546 vnand 2, 3, 4 547# CHECK-BE: vorc 2, 3, 4 # encoding: [0x10,0x43,0x25,0x44] 548# CHECK-LE: vorc 2, 3, 4 # encoding: [0x44,0x25,0x43,0x10] 549 vorc 2, 3, 4 550# CHECK-BE: vnor 2, 3, 4 # encoding: [0x10,0x43,0x25,0x04] 551# CHECK-LE: vnor 2, 3, 4 # encoding: [0x04,0x25,0x43,0x10] 552 vnor 2, 3, 4 553# CHECK-BE: vor 2, 3, 4 # encoding: [0x10,0x43,0x24,0x84] 554# CHECK-LE: vor 2, 3, 4 # encoding: [0x84,0x24,0x43,0x10] 555 vor 2, 3, 4 556# CHECK-BE: vxor 2, 3, 4 # encoding: [0x10,0x43,0x24,0xc4] 557# CHECK-LE: vxor 2, 3, 4 # encoding: [0xc4,0x24,0x43,0x10] 558 vxor 2, 3, 4 559 560# Vector integer rotate and shift instructions 561 562# CHECK-BE: vrlb 2, 3, 4 # encoding: [0x10,0x43,0x20,0x04] 563# CHECK-LE: vrlb 2, 3, 4 # encoding: [0x04,0x20,0x43,0x10] 564 vrlb 2, 3, 4 565# CHECK-BE: vrlh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x44] 566# CHECK-LE: vrlh 2, 3, 4 # encoding: [0x44,0x20,0x43,0x10] 567 vrlh 2, 3, 4 568# CHECK-BE: vrlw 2, 3, 4 # encoding: [0x10,0x43,0x20,0x84] 569# CHECK-LE: vrlw 2, 3, 4 # encoding: [0x84,0x20,0x43,0x10] 570 vrlw 2, 3, 4 571# CHECK-BE: vrld 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc4] 572# CHECK-LE: vrld 2, 3, 4 # encoding: [0xc4,0x20,0x43,0x10] 573 vrld 2, 3, 4 574# CHECK-BE: vslb 2, 3, 4 # encoding: [0x10,0x43,0x21,0x04] 575# CHECK-LE: vslb 2, 3, 4 # encoding: [0x04,0x21,0x43,0x10] 576 vslb 2, 3, 4 577# CHECK-BE: vslh 2, 3, 4 # encoding: [0x10,0x43,0x21,0x44] 578# CHECK-LE: vslh 2, 3, 4 # encoding: [0x44,0x21,0x43,0x10] 579 vslh 2, 3, 4 580# CHECK-BE: vslw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x84] 581# CHECK-LE: vslw 2, 3, 4 # encoding: [0x84,0x21,0x43,0x10] 582 vslw 2, 3, 4 583# CHECK-BE: vsld 2, 3, 4 # encoding: [0x10,0x43,0x25,0xc4] 584# CHECK-LE: vsld 2, 3, 4 # encoding: [0xc4,0x25,0x43,0x10] 585 vsld 2, 3, 4 586# CHECK-BE: vsrb 2, 3, 4 # encoding: [0x10,0x43,0x22,0x04] 587# CHECK-LE: vsrb 2, 3, 4 # encoding: [0x04,0x22,0x43,0x10] 588 vsrb 2, 3, 4 589# CHECK-BE: vsrh 2, 3, 4 # encoding: [0x10,0x43,0x22,0x44] 590# CHECK-LE: vsrh 2, 3, 4 # encoding: [0x44,0x22,0x43,0x10] 591 vsrh 2, 3, 4 592# CHECK-BE: vsrw 2, 3, 4 # encoding: [0x10,0x43,0x22,0x84] 593# CHECK-LE: vsrw 2, 3, 4 # encoding: [0x84,0x22,0x43,0x10] 594 vsrw 2, 3, 4 595# CHECK-BE: vsrd 2, 3, 4 # encoding: [0x10,0x43,0x26,0xc4] 596# CHECK-LE: vsrd 2, 3, 4 # encoding: [0xc4,0x26,0x43,0x10] 597 vsrd 2, 3, 4 598# CHECK-BE: vsrab 2, 3, 4 # encoding: [0x10,0x43,0x23,0x04] 599# CHECK-LE: vsrab 2, 3, 4 # encoding: [0x04,0x23,0x43,0x10] 600 vsrab 2, 3, 4 601# CHECK-BE: vsrah 2, 3, 4 # encoding: [0x10,0x43,0x23,0x44] 602# CHECK-LE: vsrah 2, 3, 4 # encoding: [0x44,0x23,0x43,0x10] 603 vsrah 2, 3, 4 604# CHECK-BE: vsraw 2, 3, 4 # encoding: [0x10,0x43,0x23,0x84] 605# CHECK-LE: vsraw 2, 3, 4 # encoding: [0x84,0x23,0x43,0x10] 606 vsraw 2, 3, 4 607# CHECK-BE: vsrad 2, 3, 4 # encoding: [0x10,0x43,0x23,0xc4] 608# CHECK-LE: vsrad 2, 3, 4 # encoding: [0xc4,0x23,0x43,0x10] 609 vsrad 2, 3, 4 610 611# Vector floating-point instructions 612 613# CHECK-BE: vaddfp 2, 3, 4 # encoding: [0x10,0x43,0x20,0x0a] 614# CHECK-LE: vaddfp 2, 3, 4 # encoding: [0x0a,0x20,0x43,0x10] 615 vaddfp 2, 3, 4 616# CHECK-BE: vsubfp 2, 3, 4 # encoding: [0x10,0x43,0x20,0x4a] 617# CHECK-LE: vsubfp 2, 3, 4 # encoding: [0x4a,0x20,0x43,0x10] 618 vsubfp 2, 3, 4 619# CHECK-BE: vmaddfp 2, 3, 4, 5 # encoding: [0x10,0x43,0x29,0x2e] 620# CHECK-LE: vmaddfp 2, 3, 4, 5 # encoding: [0x2e,0x29,0x43,0x10] 621 vmaddfp 2, 3, 4, 5 622# CHECK-BE: vnmsubfp 2, 3, 4, 5 # encoding: [0x10,0x43,0x29,0x2f] 623# CHECK-LE: vnmsubfp 2, 3, 4, 5 # encoding: [0x2f,0x29,0x43,0x10] 624 vnmsubfp 2, 3, 4, 5 625 626# CHECK-BE: vmaxfp 2, 3, 4 # encoding: [0x10,0x43,0x24,0x0a] 627# CHECK-LE: vmaxfp 2, 3, 4 # encoding: [0x0a,0x24,0x43,0x10] 628 vmaxfp 2, 3, 4 629# CHECK-BE: vminfp 2, 3, 4 # encoding: [0x10,0x43,0x24,0x4a] 630# CHECK-LE: vminfp 2, 3, 4 # encoding: [0x4a,0x24,0x43,0x10] 631 vminfp 2, 3, 4 632 633# CHECK-BE: vctsxs 2, 3, 4 # encoding: [0x10,0x44,0x1b,0xca] 634# CHECK-LE: vctsxs 2, 3, 4 # encoding: [0xca,0x1b,0x44,0x10] 635 vctsxs 2, 3, 4 636# CHECK-BE: vctuxs 2, 3, 4 # encoding: [0x10,0x44,0x1b,0x8a] 637# CHECK-LE: vctuxs 2, 3, 4 # encoding: [0x8a,0x1b,0x44,0x10] 638 vctuxs 2, 3, 4 639# CHECK-BE: vcfsx 2, 3, 4 # encoding: [0x10,0x44,0x1b,0x4a] 640# CHECK-LE: vcfsx 2, 3, 4 # encoding: [0x4a,0x1b,0x44,0x10] 641 vcfsx 2, 3, 4 642# CHECK-BE: vcfux 2, 3, 4 # encoding: [0x10,0x44,0x1b,0x0a] 643# CHECK-LE: vcfux 2, 3, 4 # encoding: [0x0a,0x1b,0x44,0x10] 644 vcfux 2, 3, 4 645# CHECK-BE: vrfim 2, 3 # encoding: [0x10,0x40,0x1a,0xca] 646# CHECK-LE: vrfim 2, 3 # encoding: [0xca,0x1a,0x40,0x10] 647 vrfim 2, 3 648# CHECK-BE: vrfin 2, 3 # encoding: [0x10,0x40,0x1a,0x0a] 649# CHECK-LE: vrfin 2, 3 # encoding: [0x0a,0x1a,0x40,0x10] 650 vrfin 2, 3 651# CHECK-BE: vrfip 2, 3 # encoding: [0x10,0x40,0x1a,0x8a] 652# CHECK-LE: vrfip 2, 3 # encoding: [0x8a,0x1a,0x40,0x10] 653 vrfip 2, 3 654# CHECK-BE: vrfiz 2, 3 # encoding: [0x10,0x40,0x1a,0x4a] 655# CHECK-LE: vrfiz 2, 3 # encoding: [0x4a,0x1a,0x40,0x10] 656 vrfiz 2, 3 657 658# CHECK-BE: vcmpbfp 2, 3, 4 # encoding: [0x10,0x43,0x23,0xc6] 659# CHECK-LE: vcmpbfp 2, 3, 4 # encoding: [0xc6,0x23,0x43,0x10] 660 vcmpbfp 2, 3, 4 661# CHECK-BE: vcmpbfp. 2, 3, 4 # encoding: [0x10,0x43,0x27,0xc6] 662# CHECK-LE: vcmpbfp. 2, 3, 4 # encoding: [0xc6,0x27,0x43,0x10] 663 vcmpbfp. 2, 3, 4 664# CHECK-BE: vcmpeqfp 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc6] 665# CHECK-LE: vcmpeqfp 2, 3, 4 # encoding: [0xc6,0x20,0x43,0x10] 666 vcmpeqfp 2, 3, 4 667# CHECK-BE: vcmpeqfp. 2, 3, 4 # encoding: [0x10,0x43,0x24,0xc6] 668# CHECK-LE: vcmpeqfp. 2, 3, 4 # encoding: [0xc6,0x24,0x43,0x10] 669 vcmpeqfp. 2, 3, 4 670# CHECK-BE: vcmpgefp 2, 3, 4 # encoding: [0x10,0x43,0x21,0xc6] 671# CHECK-LE: vcmpgefp 2, 3, 4 # encoding: [0xc6,0x21,0x43,0x10] 672 vcmpgefp 2, 3, 4 673# CHECK-BE: vcmpgefp. 2, 3, 4 # encoding: [0x10,0x43,0x25,0xc6] 674# CHECK-LE: vcmpgefp. 2, 3, 4 # encoding: [0xc6,0x25,0x43,0x10] 675 vcmpgefp. 2, 3, 4 676# CHECK-BE: vcmpgtfp 2, 3, 4 # encoding: [0x10,0x43,0x22,0xc6] 677# CHECK-LE: vcmpgtfp 2, 3, 4 # encoding: [0xc6,0x22,0x43,0x10] 678 vcmpgtfp 2, 3, 4 679# CHECK-BE: vcmpgtfp. 2, 3, 4 # encoding: [0x10,0x43,0x26,0xc6] 680# CHECK-LE: vcmpgtfp. 2, 3, 4 # encoding: [0xc6,0x26,0x43,0x10] 681 vcmpgtfp. 2, 3, 4 682 683# CHECK-BE: vexptefp 2, 3 # encoding: [0x10,0x40,0x19,0x8a] 684# CHECK-LE: vexptefp 2, 3 # encoding: [0x8a,0x19,0x40,0x10] 685 vexptefp 2, 3 686# CHECK-BE: vlogefp 2, 3 # encoding: [0x10,0x40,0x19,0xca] 687# CHECK-LE: vlogefp 2, 3 # encoding: [0xca,0x19,0x40,0x10] 688 vlogefp 2, 3 689# CHECK-BE: vrefp 2, 3 # encoding: [0x10,0x40,0x19,0x0a] 690# CHECK-LE: vrefp 2, 3 # encoding: [0x0a,0x19,0x40,0x10] 691 vrefp 2, 3 692# CHECK-BE: vrsqrtefp 2, 3 # encoding: [0x10,0x40,0x19,0x4a] 693# CHECK-LE: vrsqrtefp 2, 3 # encoding: [0x4a,0x19,0x40,0x10] 694 vrsqrtefp 2, 3 695# CHECK-BE: vgbbd 2, 3 # encoding: [0x10,0x40,0x1d,0x0c] 696# CHECK-LE: vgbbd 2, 3 # encoding: [0x0c,0x1d,0x40,0x10] 697 vgbbd 2, 3 698# CHECK-BE: vbpermq 2, 5, 17 # encoding: [0x10,0x45,0x8d,0x4c] 699# CHECK-LE: vbpermq 2, 5, 17 # encoding: [0x4c,0x8d,0x45,0x10] 700 vbpermq 2, 5, 17 701 702# Vector count leading zero instructions 703# CHECK-BE: vclzb 2, 3 # encoding: [0x10,0x40,0x1f,0x02] 704# CHECK-LE: vclzb 2, 3 # encoding: [0x02,0x1f,0x40,0x10] 705 vclzb 2, 3 706 707# CHECK-BE: vclzh 2, 3 # encoding: [0x10,0x40,0x1f,0x42] 708# CHECK-LE: vclzh 2, 3 # encoding: [0x42,0x1f,0x40,0x10] 709 vclzh 2, 3 710 711# CHECK-BE: vclzw 2, 3 # encoding: [0x10,0x40,0x1f,0x82] 712# CHECK-LE: vclzw 2, 3 # encoding: [0x82,0x1f,0x40,0x10] 713 vclzw 2, 3 714 715# CHECK-BE: vclzd 2, 3 # encoding: [0x10,0x40,0x1f,0xc2] 716# CHECK-LE: vclzd 2, 3 # encoding: [0xc2,0x1f,0x40,0x10] 717 vclzd 2, 3 718 719# Vector population count instructions 720# CHECK-BE: vpopcntb 2, 3 # encoding: [0x10,0x40,0x1f,0x03] 721# CHECK-LE: vpopcntb 2, 3 # encoding: [0x03,0x1f,0x40,0x10] 722 vpopcntb 2, 3 723 724# CHECK-BE: vpopcnth 2, 3 # encoding: [0x10,0x40,0x1f,0x43] 725# CHECK-LE: vpopcnth 2, 3 # encoding: [0x43,0x1f,0x40,0x10] 726 vpopcnth 2, 3 727 728# CHECK-BE: vpopcntw 2, 3 # encoding: [0x10,0x40,0x1f,0x83] 729# CHECK-LE: vpopcntw 2, 3 # encoding: [0x83,0x1f,0x40,0x10] 730 vpopcntw 2, 3 731 732# BCHECK-BE: vpopcntd 2, 3 # encoding: [0x10,0x40,0x1f,0xC3] 733# BCHECK-LE: vpopcntd 2, 3 # encoding: [0xC3,0x1f,0x40,0x10] 734# vpopcntd 2, 3 735 736# Vector status and control register instructions 737 738# CHECK-BE: mtvscr 2 # encoding: [0x10,0x00,0x16,0x44] 739# CHECK-LE: mtvscr 2 # encoding: [0x44,0x16,0x00,0x10] 740 mtvscr 2 741# CHECK-BE: mfvscr 2 # encoding: [0x10,0x40,0x06,0x04] 742# CHECK-LE: mfvscr 2 # encoding: [0x04,0x06,0x40,0x10] 743 mfvscr 2 744 745