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: vnot 2, 3 # encoding: [0x10,0x43,0x1d,0x04] 554# CHECK-LE: vnot 2, 3 # encoding: [0x04,0x1d,0x43,0x10] 555 vnot 2, 3 556# CHECK-BE: vor 2, 3, 4 # encoding: [0x10,0x43,0x24,0x84] 557# CHECK-LE: vor 2, 3, 4 # encoding: [0x84,0x24,0x43,0x10] 558 vor 2, 3, 4 559# CHECK-BE: vmr 2, 3 # encoding: [0x10,0x43,0x1c,0x84] 560# CHECK-LE: vmr 2, 3 # encoding: [0x84,0x1c,0x43,0x10] 561 vmr 2, 3 562# CHECK-BE: vxor 2, 3, 4 # encoding: [0x10,0x43,0x24,0xc4] 563# CHECK-LE: vxor 2, 3, 4 # encoding: [0xc4,0x24,0x43,0x10] 564 vxor 2, 3, 4 565 566# Vector integer rotate and shift instructions 567 568# CHECK-BE: vrlb 2, 3, 4 # encoding: [0x10,0x43,0x20,0x04] 569# CHECK-LE: vrlb 2, 3, 4 # encoding: [0x04,0x20,0x43,0x10] 570 vrlb 2, 3, 4 571# CHECK-BE: vrlh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x44] 572# CHECK-LE: vrlh 2, 3, 4 # encoding: [0x44,0x20,0x43,0x10] 573 vrlh 2, 3, 4 574# CHECK-BE: vrlw 2, 3, 4 # encoding: [0x10,0x43,0x20,0x84] 575# CHECK-LE: vrlw 2, 3, 4 # encoding: [0x84,0x20,0x43,0x10] 576 vrlw 2, 3, 4 577# CHECK-BE: vrld 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc4] 578# CHECK-LE: vrld 2, 3, 4 # encoding: [0xc4,0x20,0x43,0x10] 579 vrld 2, 3, 4 580# CHECK-BE: vslb 2, 3, 4 # encoding: [0x10,0x43,0x21,0x04] 581# CHECK-LE: vslb 2, 3, 4 # encoding: [0x04,0x21,0x43,0x10] 582 vslb 2, 3, 4 583# CHECK-BE: vslh 2, 3, 4 # encoding: [0x10,0x43,0x21,0x44] 584# CHECK-LE: vslh 2, 3, 4 # encoding: [0x44,0x21,0x43,0x10] 585 vslh 2, 3, 4 586# CHECK-BE: vslw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x84] 587# CHECK-LE: vslw 2, 3, 4 # encoding: [0x84,0x21,0x43,0x10] 588 vslw 2, 3, 4 589# CHECK-BE: vsld 2, 3, 4 # encoding: [0x10,0x43,0x25,0xc4] 590# CHECK-LE: vsld 2, 3, 4 # encoding: [0xc4,0x25,0x43,0x10] 591 vsld 2, 3, 4 592# CHECK-BE: vsrb 2, 3, 4 # encoding: [0x10,0x43,0x22,0x04] 593# CHECK-LE: vsrb 2, 3, 4 # encoding: [0x04,0x22,0x43,0x10] 594 vsrb 2, 3, 4 595# CHECK-BE: vsrh 2, 3, 4 # encoding: [0x10,0x43,0x22,0x44] 596# CHECK-LE: vsrh 2, 3, 4 # encoding: [0x44,0x22,0x43,0x10] 597 vsrh 2, 3, 4 598# CHECK-BE: vsrw 2, 3, 4 # encoding: [0x10,0x43,0x22,0x84] 599# CHECK-LE: vsrw 2, 3, 4 # encoding: [0x84,0x22,0x43,0x10] 600 vsrw 2, 3, 4 601# CHECK-BE: vsrd 2, 3, 4 # encoding: [0x10,0x43,0x26,0xc4] 602# CHECK-LE: vsrd 2, 3, 4 # encoding: [0xc4,0x26,0x43,0x10] 603 vsrd 2, 3, 4 604# CHECK-BE: vsrab 2, 3, 4 # encoding: [0x10,0x43,0x23,0x04] 605# CHECK-LE: vsrab 2, 3, 4 # encoding: [0x04,0x23,0x43,0x10] 606 vsrab 2, 3, 4 607# CHECK-BE: vsrah 2, 3, 4 # encoding: [0x10,0x43,0x23,0x44] 608# CHECK-LE: vsrah 2, 3, 4 # encoding: [0x44,0x23,0x43,0x10] 609 vsrah 2, 3, 4 610# CHECK-BE: vsraw 2, 3, 4 # encoding: [0x10,0x43,0x23,0x84] 611# CHECK-LE: vsraw 2, 3, 4 # encoding: [0x84,0x23,0x43,0x10] 612 vsraw 2, 3, 4 613# CHECK-BE: vsrad 2, 3, 4 # encoding: [0x10,0x43,0x23,0xc4] 614# CHECK-LE: vsrad 2, 3, 4 # encoding: [0xc4,0x23,0x43,0x10] 615 vsrad 2, 3, 4 616 617# Vector floating-point instructions 618 619# CHECK-BE: vaddfp 2, 3, 4 # encoding: [0x10,0x43,0x20,0x0a] 620# CHECK-LE: vaddfp 2, 3, 4 # encoding: [0x0a,0x20,0x43,0x10] 621 vaddfp 2, 3, 4 622# CHECK-BE: vsubfp 2, 3, 4 # encoding: [0x10,0x43,0x20,0x4a] 623# CHECK-LE: vsubfp 2, 3, 4 # encoding: [0x4a,0x20,0x43,0x10] 624 vsubfp 2, 3, 4 625# CHECK-BE: vmaddfp 2, 3, 4, 5 # encoding: [0x10,0x43,0x29,0x2e] 626# CHECK-LE: vmaddfp 2, 3, 4, 5 # encoding: [0x2e,0x29,0x43,0x10] 627 vmaddfp 2, 3, 4, 5 628# CHECK-BE: vnmsubfp 2, 3, 4, 5 # encoding: [0x10,0x43,0x29,0x2f] 629# CHECK-LE: vnmsubfp 2, 3, 4, 5 # encoding: [0x2f,0x29,0x43,0x10] 630 vnmsubfp 2, 3, 4, 5 631 632# CHECK-BE: vmaxfp 2, 3, 4 # encoding: [0x10,0x43,0x24,0x0a] 633# CHECK-LE: vmaxfp 2, 3, 4 # encoding: [0x0a,0x24,0x43,0x10] 634 vmaxfp 2, 3, 4 635# CHECK-BE: vminfp 2, 3, 4 # encoding: [0x10,0x43,0x24,0x4a] 636# CHECK-LE: vminfp 2, 3, 4 # encoding: [0x4a,0x24,0x43,0x10] 637 vminfp 2, 3, 4 638 639# CHECK-BE: vctsxs 2, 3, 4 # encoding: [0x10,0x44,0x1b,0xca] 640# CHECK-LE: vctsxs 2, 3, 4 # encoding: [0xca,0x1b,0x44,0x10] 641 vctsxs 2, 3, 4 642# CHECK-BE: vctuxs 2, 3, 4 # encoding: [0x10,0x44,0x1b,0x8a] 643# CHECK-LE: vctuxs 2, 3, 4 # encoding: [0x8a,0x1b,0x44,0x10] 644 vctuxs 2, 3, 4 645# CHECK-BE: vcfsx 2, 3, 4 # encoding: [0x10,0x44,0x1b,0x4a] 646# CHECK-LE: vcfsx 2, 3, 4 # encoding: [0x4a,0x1b,0x44,0x10] 647 vcfsx 2, 3, 4 648# CHECK-BE: vcfux 2, 3, 4 # encoding: [0x10,0x44,0x1b,0x0a] 649# CHECK-LE: vcfux 2, 3, 4 # encoding: [0x0a,0x1b,0x44,0x10] 650 vcfux 2, 3, 4 651# CHECK-BE: vrfim 2, 3 # encoding: [0x10,0x40,0x1a,0xca] 652# CHECK-LE: vrfim 2, 3 # encoding: [0xca,0x1a,0x40,0x10] 653 vrfim 2, 3 654# CHECK-BE: vrfin 2, 3 # encoding: [0x10,0x40,0x1a,0x0a] 655# CHECK-LE: vrfin 2, 3 # encoding: [0x0a,0x1a,0x40,0x10] 656 vrfin 2, 3 657# CHECK-BE: vrfip 2, 3 # encoding: [0x10,0x40,0x1a,0x8a] 658# CHECK-LE: vrfip 2, 3 # encoding: [0x8a,0x1a,0x40,0x10] 659 vrfip 2, 3 660# CHECK-BE: vrfiz 2, 3 # encoding: [0x10,0x40,0x1a,0x4a] 661# CHECK-LE: vrfiz 2, 3 # encoding: [0x4a,0x1a,0x40,0x10] 662 vrfiz 2, 3 663 664# CHECK-BE: vcmpbfp 2, 3, 4 # encoding: [0x10,0x43,0x23,0xc6] 665# CHECK-LE: vcmpbfp 2, 3, 4 # encoding: [0xc6,0x23,0x43,0x10] 666 vcmpbfp 2, 3, 4 667# CHECK-BE: vcmpbfp. 2, 3, 4 # encoding: [0x10,0x43,0x27,0xc6] 668# CHECK-LE: vcmpbfp. 2, 3, 4 # encoding: [0xc6,0x27,0x43,0x10] 669 vcmpbfp. 2, 3, 4 670# CHECK-BE: vcmpeqfp 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc6] 671# CHECK-LE: vcmpeqfp 2, 3, 4 # encoding: [0xc6,0x20,0x43,0x10] 672 vcmpeqfp 2, 3, 4 673# CHECK-BE: vcmpeqfp. 2, 3, 4 # encoding: [0x10,0x43,0x24,0xc6] 674# CHECK-LE: vcmpeqfp. 2, 3, 4 # encoding: [0xc6,0x24,0x43,0x10] 675 vcmpeqfp. 2, 3, 4 676# CHECK-BE: vcmpgefp 2, 3, 4 # encoding: [0x10,0x43,0x21,0xc6] 677# CHECK-LE: vcmpgefp 2, 3, 4 # encoding: [0xc6,0x21,0x43,0x10] 678 vcmpgefp 2, 3, 4 679# CHECK-BE: vcmpgefp. 2, 3, 4 # encoding: [0x10,0x43,0x25,0xc6] 680# CHECK-LE: vcmpgefp. 2, 3, 4 # encoding: [0xc6,0x25,0x43,0x10] 681 vcmpgefp. 2, 3, 4 682# CHECK-BE: vcmpgtfp 2, 3, 4 # encoding: [0x10,0x43,0x22,0xc6] 683# CHECK-LE: vcmpgtfp 2, 3, 4 # encoding: [0xc6,0x22,0x43,0x10] 684 vcmpgtfp 2, 3, 4 685# CHECK-BE: vcmpgtfp. 2, 3, 4 # encoding: [0x10,0x43,0x26,0xc6] 686# CHECK-LE: vcmpgtfp. 2, 3, 4 # encoding: [0xc6,0x26,0x43,0x10] 687 vcmpgtfp. 2, 3, 4 688 689# CHECK-BE: vexptefp 2, 3 # encoding: [0x10,0x40,0x19,0x8a] 690# CHECK-LE: vexptefp 2, 3 # encoding: [0x8a,0x19,0x40,0x10] 691 vexptefp 2, 3 692# CHECK-BE: vlogefp 2, 3 # encoding: [0x10,0x40,0x19,0xca] 693# CHECK-LE: vlogefp 2, 3 # encoding: [0xca,0x19,0x40,0x10] 694 vlogefp 2, 3 695# CHECK-BE: vrefp 2, 3 # encoding: [0x10,0x40,0x19,0x0a] 696# CHECK-LE: vrefp 2, 3 # encoding: [0x0a,0x19,0x40,0x10] 697 vrefp 2, 3 698# CHECK-BE: vrsqrtefp 2, 3 # encoding: [0x10,0x40,0x19,0x4a] 699# CHECK-LE: vrsqrtefp 2, 3 # encoding: [0x4a,0x19,0x40,0x10] 700 vrsqrtefp 2, 3 701# CHECK-BE: vgbbd 2, 3 # encoding: [0x10,0x40,0x1d,0x0c] 702# CHECK-LE: vgbbd 2, 3 # encoding: [0x0c,0x1d,0x40,0x10] 703 vgbbd 2, 3 704# CHECK-BE: vbpermq 2, 5, 17 # encoding: [0x10,0x45,0x8d,0x4c] 705# CHECK-LE: vbpermq 2, 5, 17 # encoding: [0x4c,0x8d,0x45,0x10] 706 vbpermq 2, 5, 17 707 708# Vector count leading zero instructions 709# CHECK-BE: vclzb 2, 3 # encoding: [0x10,0x40,0x1f,0x02] 710# CHECK-LE: vclzb 2, 3 # encoding: [0x02,0x1f,0x40,0x10] 711 vclzb 2, 3 712 713# CHECK-BE: vclzh 2, 3 # encoding: [0x10,0x40,0x1f,0x42] 714# CHECK-LE: vclzh 2, 3 # encoding: [0x42,0x1f,0x40,0x10] 715 vclzh 2, 3 716 717# CHECK-BE: vclzw 2, 3 # encoding: [0x10,0x40,0x1f,0x82] 718# CHECK-LE: vclzw 2, 3 # encoding: [0x82,0x1f,0x40,0x10] 719 vclzw 2, 3 720 721# CHECK-BE: vclzd 2, 3 # encoding: [0x10,0x40,0x1f,0xc2] 722# CHECK-LE: vclzd 2, 3 # encoding: [0xc2,0x1f,0x40,0x10] 723 vclzd 2, 3 724 725# Vector population count instructions 726# CHECK-BE: vpopcntb 2, 3 # encoding: [0x10,0x40,0x1f,0x03] 727# CHECK-LE: vpopcntb 2, 3 # encoding: [0x03,0x1f,0x40,0x10] 728 vpopcntb 2, 3 729 730# CHECK-BE: vpopcnth 2, 3 # encoding: [0x10,0x40,0x1f,0x43] 731# CHECK-LE: vpopcnth 2, 3 # encoding: [0x43,0x1f,0x40,0x10] 732 vpopcnth 2, 3 733 734# CHECK-BE: vpopcntw 2, 3 # encoding: [0x10,0x40,0x1f,0x83] 735# CHECK-LE: vpopcntw 2, 3 # encoding: [0x83,0x1f,0x40,0x10] 736 vpopcntw 2, 3 737 738# BCHECK-BE: vpopcntd 2, 3 # encoding: [0x10,0x40,0x1f,0xC3] 739# BCHECK-LE: vpopcntd 2, 3 # encoding: [0xC3,0x1f,0x40,0x10] 740# vpopcntd 2, 3 741 742# Vector status and control register instructions 743 744# CHECK-BE: mtvscr 2 # encoding: [0x10,0x00,0x16,0x44] 745# CHECK-LE: mtvscr 2 # encoding: [0x44,0x16,0x00,0x10] 746 mtvscr 2 747# CHECK-BE: mfvscr 2 # encoding: [0x10,0x40,0x06,0x04] 748# CHECK-LE: mfvscr 2 # encoding: [0x04,0x06,0x40,0x10] 749 mfvscr 2 750 751# Power9 instructions 752 753# Vector Compare Not Equal (Zero) 754# CHECK-BE: vcmpneb 2, 3, 4 # encoding: [0x10,0x43,0x20,0x07] 755# CHECK-LE: vcmpneb 2, 3, 4 # encoding: [0x07,0x20,0x43,0x10] 756 vcmpneb 2, 3, 4 757# CHECK-BE: vcmpneb. 2, 3, 4 # encoding: [0x10,0x43,0x24,0x07] 758# CHECK-LE: vcmpneb. 2, 3, 4 # encoding: [0x07,0x24,0x43,0x10] 759 vcmpneb. 2, 3, 4 760# CHECK-BE: vcmpnezb 2, 3, 4 # encoding: [0x10,0x43,0x21,0x07] 761# CHECK-LE: vcmpnezb 2, 3, 4 # encoding: [0x07,0x21,0x43,0x10] 762 vcmpnezb 2, 3, 4 763# CHECK-BE: vcmpnezb. 2, 3, 4 # encoding: [0x10,0x43,0x25,0x07] 764# CHECK-LE: vcmpnezb. 2, 3, 4 # encoding: [0x07,0x25,0x43,0x10] 765 vcmpnezb. 2, 3, 4 766# CHECK-BE: vcmpneh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x47] 767# CHECK-LE: vcmpneh 2, 3, 4 # encoding: [0x47,0x20,0x43,0x10] 768 vcmpneh 2, 3, 4 769# CHECK-BE: vcmpneh. 2, 3, 4 # encoding: [0x10,0x43,0x24,0x47] 770# CHECK-LE: vcmpneh. 2, 3, 4 # encoding: [0x47,0x24,0x43,0x10] 771 vcmpneh. 2, 3, 4 772# CHECK-BE: vcmpnezh 2, 3, 4 # encoding: [0x10,0x43,0x21,0x47] 773# CHECK-LE: vcmpnezh 2, 3, 4 # encoding: [0x47,0x21,0x43,0x10] 774 vcmpnezh 2, 3, 4 775# CHECK-BE: vcmpnezh. 2, 3, 4 # encoding: [0x10,0x43,0x25,0x47] 776# CHECK-LE: vcmpnezh. 2, 3, 4 # encoding: [0x47,0x25,0x43,0x10] 777 vcmpnezh. 2, 3, 4 778# CHECK-BE: vcmpnew 2, 3, 4 # encoding: [0x10,0x43,0x20,0x87] 779# CHECK-LE: vcmpnew 2, 3, 4 # encoding: [0x87,0x20,0x43,0x10] 780 vcmpnew 2, 3, 4 781# CHECK-BE: vcmpnew. 2, 3, 4 # encoding: [0x10,0x43,0x24,0x87] 782# CHECK-LE: vcmpnew. 2, 3, 4 # encoding: [0x87,0x24,0x43,0x10] 783 vcmpnew. 2, 3, 4 784# CHECK-BE: vcmpnezw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x87] 785# CHECK-LE: vcmpnezw 2, 3, 4 # encoding: [0x87,0x21,0x43,0x10] 786 vcmpnezw 2, 3, 4 787# CHECK-BE: vcmpnezw. 2, 3, 4 # encoding: [0x10,0x43,0x25,0x87] 788# CHECK-LE: vcmpnezw. 2, 3, 4 # encoding: [0x87,0x25,0x43,0x10] 789 vcmpnezw. 2, 3, 4 790 791# Vector Extract Unsigned 792# CHECK-BE: vextractub 2, 3, 15 # encoding: [0x10,0x4f,0x1a,0x0d] 793# CHECK-LE: vextractub 2, 3, 15 # encoding: [0x0d,0x1a,0x4f,0x10] 794 vextractub 2, 3, 15 795# CHECK-BE: vextractuh 2, 3, 14 # encoding: [0x10,0x4e,0x1a,0x4d] 796# CHECK-LE: vextractuh 2, 3, 14 # encoding: [0x4d,0x1a,0x4e,0x10] 797 vextractuh 2, 3, 14 798# CHECK-BE: vextractuw 2, 3, 12 # encoding: [0x10,0x4c,0x1a,0x8d] 799# CHECK-LE: vextractuw 2, 3, 12 # encoding: [0x8d,0x1a,0x4c,0x10] 800 vextractuw 2, 3, 12 801# CHECK-BE: vextractd 2, 3, 8 # encoding: [0x10,0x48,0x1a,0xcd] 802# CHECK-LE: vextractd 2, 3, 8 # encoding: [0xcd,0x1a,0x48,0x10] 803 vextractd 2, 3, 8 804 805# Vector Extract Unsigned Left/Right-Indexed 806# CHECK-BE: vextublx 2, 3, 4 # encoding: [0x10,0x43,0x26,0x0d] 807# CHECK-LE: vextublx 2, 3, 4 # encoding: [0x0d,0x26,0x43,0x10] 808 vextublx 2, 3, 4 809# CHECK-BE: vextubrx 2, 3, 4 # encoding: [0x10,0x43,0x27,0x0d] 810# CHECK-LE: vextubrx 2, 3, 4 # encoding: [0x0d,0x27,0x43,0x10] 811 vextubrx 2, 3, 4 812# CHECK-BE: vextuhlx 2, 3, 4 # encoding: [0x10,0x43,0x26,0x4d] 813# CHECK-LE: vextuhlx 2, 3, 4 # encoding: [0x4d,0x26,0x43,0x10] 814 vextuhlx 2, 3, 4 815# CHECK-BE: vextuhrx 2, 3, 4 # encoding: [0x10,0x43,0x27,0x4d] 816# CHECK-LE: vextuhrx 2, 3, 4 # encoding: [0x4d,0x27,0x43,0x10] 817 vextuhrx 2, 3, 4 818# CHECK-BE: vextuwlx 2, 3, 4 # encoding: [0x10,0x43,0x26,0x8d] 819# CHECK-LE: vextuwlx 2, 3, 4 # encoding: [0x8d,0x26,0x43,0x10] 820 vextuwlx 2, 3, 4 821# CHECK-BE: vextuwrx 2, 3, 4 # encoding: [0x10,0x43,0x27,0x8d] 822# CHECK-LE: vextuwrx 2, 3, 4 # encoding: [0x8d,0x27,0x43,0x10] 823 vextuwrx 2, 3, 4 824 825# Vector Insert Element 826# CHECK-BE: vinsertb 2, 3, 15 # encoding: [0x10,0x4f,0x1b,0x0d] 827# CHECK-LE: vinsertb 2, 3, 15 # encoding: [0x0d,0x1b,0x4f,0x10] 828 vinsertb 2, 3, 15 829# CHECK-BE: vinserth 2, 3, 14 # encoding: [0x10,0x4e,0x1b,0x4d] 830# CHECK-LE: vinserth 2, 3, 14 # encoding: [0x4d,0x1b,0x4e,0x10] 831 vinserth 2, 3, 14 832# CHECK-BE: vinsertw 2, 3, 12 # encoding: [0x10,0x4c,0x1b,0x8d] 833# CHECK-LE: vinsertw 2, 3, 12 # encoding: [0x8d,0x1b,0x4c,0x10] 834 vinsertw 2, 3, 12 835# CHECK-BE: vinsertd 2, 3, 8 # encoding: [0x10,0x48,0x1b,0xcd] 836# CHECK-LE: vinsertd 2, 3, 8 # encoding: [0xcd,0x1b,0x48,0x10] 837 vinsertd 2, 3, 8 838 839# Power9 instructions 840 841# Vector Count Trailing Zeros 842# CHECK-BE: vctzb 2, 3 # encoding: [0x10,0x5c,0x1e,0x02] 843# CHECK-LE: vctzb 2, 3 # encoding: [0x02,0x1e,0x5c,0x10] 844 vctzb 2, 3 845# CHECK-BE: vctzh 2, 3 # encoding: [0x10,0x5d,0x1e,0x02] 846# CHECK-LE: vctzh 2, 3 # encoding: [0x02,0x1e,0x5d,0x10] 847 vctzh 2, 3 848# CHECK-BE: vctzw 2, 3 # encoding: [0x10,0x5e,0x1e,0x02] 849# CHECK-LE: vctzw 2, 3 # encoding: [0x02,0x1e,0x5e,0x10] 850 vctzw 2, 3 851# CHECK-BE: vctzd 2, 3 # encoding: [0x10,0x5f,0x1e,0x02] 852# CHECK-LE: vctzd 2, 3 # encoding: [0x02,0x1e,0x5f,0x10] 853 vctzd 2, 3 854 855# CHECK-BE: vclzlsbb 2, 3 # encoding: [0x10,0x40,0x1e,0x02] 856# CHECK-LE: vclzlsbb 2, 3 # encoding: [0x02,0x1e,0x40,0x10] 857 vclzlsbb 2, 3 858# CHECK-BE: vctzlsbb 2, 3 # encoding: [0x10,0x41,0x1e,0x02] 859# CHECK-LE: vctzlsbb 2, 3 # encoding: [0x02,0x1e,0x41,0x10] 860 vctzlsbb 2, 3 861 862# Vector Extend Sign 863# CHECK-BE: vextsb2w 2, 3 # encoding: [0x10,0x50,0x1e,0x02] 864# CHECK-LE: vextsb2w 2, 3 # encoding: [0x02,0x1e,0x50,0x10] 865 vextsb2w 2, 3 866# CHECK-BE: vextsh2w 2, 3 # encoding: [0x10,0x51,0x1e,0x02] 867# CHECK-LE: vextsh2w 2, 3 # encoding: [0x02,0x1e,0x51,0x10] 868 vextsh2w 2, 3 869# CHECK-BE: vextsb2d 2, 3 # encoding: [0x10,0x58,0x1e,0x02] 870# CHECK-LE: vextsb2d 2, 3 # encoding: [0x02,0x1e,0x58,0x10] 871 vextsb2d 2, 3 872# CHECK-BE: vextsh2d 2, 3 # encoding: [0x10,0x59,0x1e,0x02] 873# CHECK-LE: vextsh2d 2, 3 # encoding: [0x02,0x1e,0x59,0x10] 874 vextsh2d 2, 3 875# CHECK-BE: vextsw2d 2, 3 # encoding: [0x10,0x5a,0x1e,0x02] 876# CHECK-LE: vextsw2d 2, 3 # encoding: [0x02,0x1e,0x5a,0x10] 877 vextsw2d 2, 3 878 879# Vector Integer Negate 880# CHECK-BE: vnegw 2, 3 # encoding: [0x10,0x46,0x1e,0x02] 881# CHECK-LE: vnegw 2, 3 # encoding: [0x02,0x1e,0x46,0x10] 882 vnegw 2, 3 883# CHECK-BE: vnegd 2, 3 # encoding: [0x10,0x47,0x1e,0x02] 884# CHECK-LE: vnegd 2, 3 # encoding: [0x02,0x1e,0x47,0x10] 885 vnegd 2, 3 886 887# Vector Parity Byte 888# CHECK-BE: vprtybw 2, 3 # encoding: [0x10,0x48,0x1e,0x02] 889# CHECK-LE: vprtybw 2, 3 # encoding: [0x02,0x1e,0x48,0x10] 890 vprtybw 2, 3 891# CHECK-BE: vprtybd 2, 3 # encoding: [0x10,0x49,0x1e,0x02] 892# CHECK-LE: vprtybd 2, 3 # encoding: [0x02,0x1e,0x49,0x10] 893 vprtybd 2, 3 894# CHECK-BE: vprtybq 2, 3 # encoding: [0x10,0x4a,0x1e,0x02] 895# CHECK-LE: vprtybq 2, 3 # encoding: [0x02,0x1e,0x4a,0x10] 896 vprtybq 2, 3 897 898# Vector (Bit) Permute (Right-indexed) 899# CHECK-BE: vbpermd 2, 5, 17 # encoding: [0x10,0x45,0x8d,0xcc] 900# CHECK-LE: vbpermd 2, 5, 17 # encoding: [0xcc,0x8d,0x45,0x10] 901 vbpermd 2, 5, 17 902# CHECK-BE: vpermr 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x7b] 903# CHECK-LE: vpermr 2, 3, 4, 5 # encoding: [0x7b,0x21,0x43,0x10] 904 vpermr 2, 3, 4, 5 905 906# Vector Rotate Left Mask/Mask-Insert 907# CHECK-BE: vrlwnm 2, 3, 4 # encoding: [0x10,0x43,0x21,0x85] 908# CHECK-LE: vrlwnm 2, 3, 4 # encoding: [0x85,0x21,0x43,0x10] 909 vrlwnm 2, 3, 4 910# CHECK-BE: vrlwmi 2, 3, 4 # encoding: [0x10,0x43,0x20,0x85] 911# CHECK-LE: vrlwmi 2, 3, 4 # encoding: [0x85,0x20,0x43,0x10] 912 vrlwmi 2, 3, 4 913# CHECK-BE: vrldnm 2, 3, 4 # encoding: [0x10,0x43,0x21,0xc5] 914# CHECK-LE: vrldnm 2, 3, 4 # encoding: [0xc5,0x21,0x43,0x10] 915 vrldnm 2, 3, 4 916# CHECK-BE: vrldmi 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc5] 917# CHECK-LE: vrldmi 2, 3, 4 # encoding: [0xc5,0x20,0x43,0x10] 918 vrldmi 2, 3, 4 919 920# Vector Shift Left/Right 921# CHECK-BE: vslv 2, 3, 4 # encoding: [0x10,0x43,0x27,0x44] 922# CHECK-LE: vslv 2, 3, 4 # encoding: [0x44,0x27,0x43,0x10] 923 vslv 2, 3, 4 924# CHECK-BE: vsrv 2, 3, 4 # encoding: [0x10,0x43,0x27,0x04] 925# CHECK-LE: vsrv 2, 3, 4 # encoding: [0x04,0x27,0x43,0x10] 926 vsrv 2, 3, 4 927 928# Vector Multiply-by-10 929# CHECK-BE: vmul10uq 2, 3 # encoding: [0x10,0x43,0x02,0x01] 930# CHECK-LE: vmul10uq 2, 3 # encoding: [0x01,0x02,0x43,0x10] 931 vmul10uq 2, 3 932# CHECK-BE: vmul10cuq 2, 3 # encoding: [0x10,0x43,0x00,0x01] 933# CHECK-LE: vmul10cuq 2, 3 # encoding: [0x01,0x00,0x43,0x10] 934 vmul10cuq 2, 3 935# CHECK-BE: vmul10euq 2, 3, 4 # encoding: [0x10,0x43,0x22,0x41] 936# CHECK-LE: vmul10euq 2, 3, 4 # encoding: [0x41,0x22,0x43,0x10] 937 vmul10euq 2, 3, 4 938# CHECK-BE: vmul10ecuq 2, 3, 4 # encoding: [0x10,0x43,0x20,0x41] 939# CHECK-LE: vmul10ecuq 2, 3, 4 # encoding: [0x41,0x20,0x43,0x10] 940 vmul10ecuq 2, 3, 4 941 942# Vector Absolute Difference 943# CHECK-BE: vabsdub 2, 3, 4 # encoding: [0x10,0x43,0x24,0x03] 944# CHECK-LE: vabsdub 2, 3, 4 # encoding: [0x03,0x24,0x43,0x10] 945 vabsdub 2, 3, 4 946 947# CHECK-BE: vabsduh 2, 3, 4 # encoding: [0x10,0x43,0x24,0x43] 948# CHECK-LE: vabsduh 2, 3, 4 # encoding: [0x43,0x24,0x43,0x10] 949 vabsduh 2, 3, 4 950 951# CHECK-BE: vabsduw 2, 3, 4 # encoding: [0x10,0x43,0x24,0x83] 952# CHECK-LE: vabsduw 2, 3, 4 # encoding: [0x83,0x24,0x43,0x10] 953 vabsduw 2, 3, 4 954 955# Decimal Convert From/to National/Zoned/Signed-QWord 956# CHECK-BE: bcdcfn. 27, 31, 1 # encoding: [0x13,0x67,0xff,0x81] 957# CHECK-LE: bcdcfn. 27, 31, 1 # encoding: [0x81,0xff,0x67,0x13] 958 bcdcfn. 27, 31, 1 959# CHECK-BE: bcdcfz. 27, 31, 1 # encoding: [0x13,0x66,0xff,0x81] 960# CHECK-LE: bcdcfz. 27, 31, 1 # encoding: [0x81,0xff,0x66,0x13] 961 bcdcfz. 27, 31, 1 962# CHECK-BE: bcdctn. 27, 31 # encoding: [0x13,0x65,0xfd,0x81] 963# CHECK-LE: bcdctn. 27, 31 # encoding: [0x81,0xfd,0x65,0x13] 964 bcdctn. 27, 31 965# CHECK-BE: bcdctz. 27, 31, 1 # encoding: [0x13,0x64,0xff,0x81] 966# CHECK-LE: bcdctz. 27, 31, 1 # encoding: [0x81,0xff,0x64,0x13] 967 bcdctz. 27, 31, 1 968# CHECK-BE: bcdcfsq. 27, 31, 1 # encoding: [0x13,0x62,0xff,0x81] 969# CHECK-LE: bcdcfsq. 27, 31, 1 # encoding: [0x81,0xff,0x62,0x13] 970 bcdcfsq. 27, 31, 1 971# CHECK-BE: bcdctsq. 27, 31 # encoding: [0x13,0x60,0xfd,0x81] 972# CHECK-LE: bcdctsq. 27, 31 # encoding: [0x81,0xfd,0x60,0x13] 973 bcdctsq. 27, 31 974 975# Decimal Copy-Sign/Set-Sign 976# CHECK-BE: bcdcpsgn. 27, 31, 7 # encoding: [0x13,0x7f,0x3b,0x41] 977# CHECK-LE: bcdcpsgn. 27, 31, 7 # encoding: [0x41,0x3b,0x7f,0x13] 978 bcdcpsgn. 27, 31, 7 979# CHECK-BE: bcdsetsgn. 27, 31, 1 # encoding: [0x13,0x7f,0xff,0x81] 980# CHECK-LE: bcdsetsgn. 27, 31, 1 # encoding: [0x81,0xff,0x7f,0x13] 981 bcdsetsgn. 27, 31, 1 982 983# Decimal Shift/Unsigned-Shift/Shift-and-Round 984# CHECK-BE: bcds. 27, 31, 7, 1 # encoding: [0x13,0x7f,0x3e,0xc1] 985# CHECK-LE: bcds. 27, 31, 7, 1 # encoding: [0xc1,0x3e,0x7f,0x13] 986 bcds. 27, 31, 7, 1 987# CHECK-BE: bcdus. 27, 31, 7 # encoding: [0x13,0x7f,0x3c,0x81] 988# CHECK-LE: bcdus. 27, 31, 7 # encoding: [0x81,0x3c,0x7f,0x13] 989 bcdus. 27, 31, 7 990# CHECK-BE: bcdsr. 27, 31, 7, 1 # encoding: [0x13,0x7f,0x3f,0xc1] 991# CHECK-LE: bcdsr. 27, 31, 7, 1 # encoding: [0xc1,0x3f,0x7f,0x13] 992 bcdsr. 27, 31, 7, 1 993 994# Decimal (Unsigned) Truncate 995# CHECK-BE: bcdtrunc. 27, 31, 7, 1 # encoding: [0x13,0x7f,0x3f,0x01] 996# CHECK-LE: bcdtrunc. 27, 31, 7, 1 # encoding: [0x01,0x3f,0x7f,0x13] 997 bcdtrunc. 27, 31, 7, 1 998# CHECK-BE: bcdutrunc. 27, 31, 7 # encoding: [0x13,0x7f,0x3d,0x41] 999# CHECK-LE: bcdutrunc. 27, 31, 7 # encoding: [0x41,0x3d,0x7f,0x13] 1000 bcdutrunc. 27, 31, 7 1001