| 1 |
/* { dg-options "-mlsx -w -fno-strict-aliasing" } */ |
| 2 |
#include "../simd_correctness_check.h" |
| 3 |
#include <lsxintrin.h> |
| 4 |
|
| 5 |
int |
| 6 |
main () |
| 7 |
{ |
| 8 |
__m128i __m128i_op0, __m128i_op1, __m128i_op2, __m128i_out, __m128i_result; |
| 9 |
__m128 __m128_op0, __m128_op1, __m128_op2, __m128_out, __m128_result; |
| 10 |
__m128d __m128d_op0, __m128d_op1, __m128d_op2, __m128d_out, __m128d_result; |
| 11 |
|
| 12 |
int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; |
| 13 |
long int long_op0, long_op1, long_op2, lont_out, lont_result; |
| 14 |
long int long_int_out, long_int_result; |
| 15 |
unsigned int unsigned_int_out, unsigned_int_result; |
| 16 |
unsigned long int unsigned_long_int_out, unsigned_long_int_result; |
| 17 |
|
| 18 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 19 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000003; |
| 20 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 21 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000030000; |
| 22 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0xc9); |
| 23 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 24 |
|
| 25 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 26 |
*((unsigned long *)&__m128i_op0[0]) = 0x0004007c00fc0000; |
| 27 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 28 |
*((unsigned long *)&__m128i_result[0]) = 0x047c0404fc00fcfc; |
| 29 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x8a); |
| 30 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 31 |
|
| 32 |
*((unsigned long *)&__m128i_op0[1]) = 0x007fffff00000000; |
| 33 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 34 |
*((unsigned long *)&__m128i_result[1]) = 0xff00ff7f00000000; |
| 35 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 36 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x32); |
| 37 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 38 |
|
| 39 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 40 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 41 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 42 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 43 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x85); |
| 44 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 45 |
|
| 46 |
*((unsigned long *)&__m128i_op0[1]) = 0xfffffffff51cf8da; |
| 47 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffd6040188; |
| 48 |
*((unsigned long *)&__m128i_result[1]) = 0xfffffffff8f8dada; |
| 49 |
*((unsigned long *)&__m128i_result[0]) = 0xffffffff01018888; |
| 50 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x50); |
| 51 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 52 |
|
| 53 |
*((unsigned long *)&__m128i_op0[1]) = 0x007d00c50177ac5b; |
| 54 |
*((unsigned long *)&__m128i_op0[0]) = 0xac82aa88a972a36a; |
| 55 |
*((unsigned long *)&__m128i_result[1]) = 0x000000c5ac01015b; |
| 56 |
*((unsigned long *)&__m128i_result[0]) = 0xaaacac88a3a9a96a; |
| 57 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x7c); |
| 58 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 59 |
|
| 60 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000a0000000a; |
| 61 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000a00000009; |
| 62 |
*((unsigned long *)&__m128i_result[1]) = 0x0a0a0a000a0a0a00; |
| 63 |
*((unsigned long *)&__m128i_result[0]) = 0x0a0a0a0009090900; |
| 64 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x2); |
| 65 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 66 |
|
| 67 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000001; |
| 68 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000001; |
| 69 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000001000100; |
| 70 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000001000100; |
| 71 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x12); |
| 72 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 73 |
|
| 74 |
*((unsigned long *)&__m128i_op0[1]) = 0x00003f8000000000; |
| 75 |
*((unsigned long *)&__m128i_op0[0]) = 0x00003f8000000000; |
| 76 |
*((unsigned long *)&__m128i_result[1]) = 0x003f800000000000; |
| 77 |
*((unsigned long *)&__m128i_result[0]) = 0x003f800000000000; |
| 78 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0xd2); |
| 79 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 80 |
|
| 81 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 82 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 83 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 84 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 85 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x6c); |
| 86 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 87 |
|
| 88 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 89 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 90 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 91 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 92 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x81); |
| 93 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 94 |
|
| 95 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 96 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000dffff000d; |
| 97 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 98 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000ffffff; |
| 99 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x6b); |
| 100 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 101 |
|
| 102 |
*((unsigned long *)&__m128i_op0[1]) = 0x5f675e96e29a5a60; |
| 103 |
*((unsigned long *)&__m128i_op0[0]) = 0x7fff7fff7fff7fff; |
| 104 |
*((unsigned long *)&__m128i_result[1]) = 0x965f5e9660e25a60; |
| 105 |
*((unsigned long *)&__m128i_result[0]) = 0xff7f7fffff7f7fff; |
| 106 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x34); |
| 107 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 108 |
|
| 109 |
*((unsigned long *)&__m128i_op0[1]) = 0x131211101211100f; |
| 110 |
*((unsigned long *)&__m128i_op0[0]) = 0x11100f0e100f0e0d; |
| 111 |
*((unsigned long *)&__m128i_result[1]) = 0x13101213120f1112; |
| 112 |
*((unsigned long *)&__m128i_result[0]) = 0x110e1011100d0f10; |
| 113 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0xcb); |
| 114 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 115 |
|
| 116 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000001000110; |
| 117 |
*((unsigned long *)&__m128i_op0[0]) = 0x00000000431f851f; |
| 118 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000001011010; |
| 119 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000043431f1f; |
| 120 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0xf0); |
| 121 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 122 |
|
| 123 |
*((unsigned long *)&__m128i_op0[1]) = 0xc0b4d1a5f8babad3; |
| 124 |
*((unsigned long *)&__m128i_op0[0]) = 0xbbc8ecc5f3ced5f3; |
| 125 |
*((unsigned long *)&__m128i_result[1]) = 0xd1c0c0a5baf8f8d3; |
| 126 |
*((unsigned long *)&__m128i_result[0]) = 0xecbbbbc5d5f3f3f3; |
| 127 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0x7c); |
| 128 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 129 |
|
| 130 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000004; |
| 131 |
*((unsigned long *)&__m128i_op0[0]) = 0x00000454ffff9573; |
| 132 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000004; |
| 133 |
*((unsigned long *)&__m128i_result[0]) = 0x00000454ffff9573; |
| 134 |
__m128i_out = __lsx_vshuf4i_b (__m128i_op0, 0xa4); |
| 135 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 136 |
|
| 137 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 138 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 139 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 140 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 141 |
__m128i_out = __lsx_vshuf4i_h (__m128i_op0, 0xf3); |
| 142 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 143 |
|
| 144 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff; |
| 145 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 146 |
*((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; |
| 147 |
*((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; |
| 148 |
__m128i_out = __lsx_vshuf4i_h (__m128i_op0, 0x2c); |
| 149 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 150 |
|
| 151 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 152 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 153 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 154 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 155 |
__m128i_out = __lsx_vshuf4i_h (__m128i_op0, 0xd2); |
| 156 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 157 |
|
| 158 |
*((unsigned long *)&__m128i_op0[1]) = 0x003f000000000000; |
| 159 |
*((unsigned long *)&__m128i_op0[0]) = 0x007c000d00400000; |
| 160 |
*((unsigned long *)&__m128i_result[1]) = 0x0000003f00000000; |
| 161 |
*((unsigned long *)&__m128i_result[0]) = 0x0000007c00000040; |
| 162 |
__m128i_out = __lsx_vshuf4i_h (__m128i_op0, 0x31); |
| 163 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 164 |
|
| 165 |
*((unsigned long *)&__m128i_op0[1]) = 0xffff00000000ffff; |
| 166 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 167 |
*((unsigned long *)&__m128i_result[1]) = 0x0000ffff00000000; |
| 168 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 169 |
__m128i_out = __lsx_vshuf4i_h (__m128i_op0, 0xb9); |
| 170 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 171 |
|
| 172 |
*((unsigned long *)&__m128i_op0[1]) = 0x7ffffffe00000000; |
| 173 |
*((unsigned long *)&__m128i_op0[0]) = 0x7ffffffe00000000; |
| 174 |
*((unsigned long *)&__m128i_result[1]) = 0x7fff00007fff0000; |
| 175 |
*((unsigned long *)&__m128i_result[0]) = 0x7fff00007fff0000; |
| 176 |
__m128i_out = __lsx_vshuf4i_h (__m128i_op0, 0xcd); |
| 177 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 178 |
|
| 179 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 180 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffff00000000; |
| 181 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 182 |
*((unsigned long *)&__m128i_result[0]) = 0xffff00000000ffff; |
| 183 |
__m128i_out = __lsx_vshuf4i_h (__m128i_op0, 0x93); |
| 184 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 185 |
|
| 186 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 187 |
*((unsigned long *)&__m128i_op0[0]) = 0x00000000007f7f7f; |
| 188 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 189 |
*((unsigned long *)&__m128i_result[0]) = 0x007f007f00007f7f; |
| 190 |
__m128i_out = __lsx_vshuf4i_h (__m128i_op0, 0x58); |
| 191 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 192 |
|
| 193 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff; |
| 194 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 195 |
*((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; |
| 196 |
*((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; |
| 197 |
__m128i_out = __lsx_vshuf4i_w (__m128i_op0, 0x1); |
| 198 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 199 |
|
| 200 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 201 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 202 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 203 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 204 |
__m128i_out = __lsx_vshuf4i_w (__m128i_op0, 0x13); |
| 205 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 206 |
|
| 207 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000010; |
| 208 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000010; |
| 209 |
*((unsigned long *)&__m128i_result[1]) = 0x0000001000000010; |
| 210 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 211 |
__m128i_out = __lsx_vshuf4i_w (__m128i_op0, 0x5); |
| 212 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 213 |
|
| 214 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 215 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000080808000; |
| 216 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000080808000; |
| 217 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 218 |
__m128i_out = __lsx_vshuf4i_w (__m128i_op0, 0x8b); |
| 219 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 220 |
|
| 221 |
*((unsigned long *)&__m128i_op0[1]) = 0xfffdfffdfffdfffd; |
| 222 |
*((unsigned long *)&__m128i_op0[0]) = 0xfffdfffdfffdfffd; |
| 223 |
*((unsigned long *)&__m128i_result[1]) = 0xfffdfffdfffdfffd; |
| 224 |
*((unsigned long *)&__m128i_result[0]) = 0xfffdfffdfffdfffd; |
| 225 |
__m128i_out = __lsx_vshuf4i_w (__m128i_op0, 0x7e); |
| 226 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 227 |
|
| 228 |
*((unsigned long *)&__m128i_op0[1]) = 0xfefefefdbffefdfe; |
| 229 |
*((unsigned long *)&__m128i_op0[0]) = 0xfefefeeffef7fefe; |
| 230 |
*((unsigned long *)&__m128i_result[1]) = 0xfef7fefebffefdfe; |
| 231 |
*((unsigned long *)&__m128i_result[0]) = 0xfefefefdfefefeef; |
| 232 |
__m128i_out = __lsx_vshuf4i_w (__m128i_op0, 0x2d); |
| 233 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 234 |
|
| 235 |
*((unsigned long *)&__m128i_op0[1]) = 0x002a001a001a000b; |
| 236 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 237 |
*((unsigned long *)&__m128i_result[1]) = 0x00000000002a001a; |
| 238 |
*((unsigned long *)&__m128i_result[0]) = 0x001a000b00000000; |
| 239 |
__m128i_out = __lsx_vshuf4i_w (__m128i_op0, 0x78); |
| 240 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 241 |
|
| 242 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 243 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 244 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 245 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 246 |
__m128i_out = __lsx_vshuf4i_w (__m128i_op0, 0x98); |
| 247 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 248 |
|
| 249 |
*((unsigned long *)&__m128i_op0[1]) = 0x000010f8000081a2; |
| 250 |
*((unsigned long *)&__m128i_op0[0]) = 0x000069bb00000001; |
| 251 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000100000001; |
| 252 |
*((unsigned long *)&__m128i_result[0]) = 0x00000001000010f8; |
| 253 |
__m128i_out = __lsx_vshuf4i_w (__m128i_op0, 0x3); |
| 254 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 255 |
|
| 256 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 257 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 258 |
*((unsigned long *)&__m128i_op1[1]) = 0xffffffffffffffff; |
| 259 |
*((unsigned long *)&__m128i_op1[0]) = 0xffffffffffffffff; |
| 260 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 261 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 262 |
__m128i_out = __lsx_vshuf4i_d (__m128i_op0, __m128i_op1, 0x44); |
| 263 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 264 |
|
| 265 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 266 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 267 |
*((unsigned long *)&__m128i_op1[1]) = 0x00000000ffffffff; |
| 268 |
*((unsigned long *)&__m128i_op1[0]) = 0x00000000fffff800; |
| 269 |
*((unsigned long *)&__m128i_result[1]) = 0x00000000fffff800; |
| 270 |
*((unsigned long *)&__m128i_result[0]) = 0x00000000fffff800; |
| 271 |
__m128i_out = __lsx_vshuf4i_d (__m128i_op0, __m128i_op1, 0x8a); |
| 272 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 273 |
|
| 274 |
*((unsigned long *)&__m128i_op0[1]) = 0x000000000000006f; |
| 275 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000001f0a; |
| 276 |
*((unsigned long *)&__m128i_op1[1]) = 0x0000000000000000; |
| 277 |
*((unsigned long *)&__m128i_op1[0]) = 0x0000000000000000; |
| 278 |
*((unsigned long *)&__m128i_result[1]) = 0x000000000000006f; |
| 279 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 280 |
__m128i_out = __lsx_vshuf4i_d (__m128i_op0, __m128i_op1, 0x36); |
| 281 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 282 |
|
| 283 |
*((unsigned long *)&__m128i_op0[1]) = 0x00000000ffffda6e; |
| 284 |
*((unsigned long *)&__m128i_op0[0]) = 0x00000000ffffe3d6; |
| 285 |
*((unsigned long *)&__m128i_op1[1]) = 0xeeb1e4f4bc3763f3; |
| 286 |
*((unsigned long *)&__m128i_op1[0]) = 0x6f5edf5ada6fe3d7; |
| 287 |
*((unsigned long *)&__m128i_result[1]) = 0x00000000ffffe3d6; |
| 288 |
*((unsigned long *)&__m128i_result[0]) = 0xeeb1e4f4bc3763f3; |
| 289 |
__m128i_out = __lsx_vshuf4i_d (__m128i_op0, __m128i_op1, 0x23); |
| 290 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 291 |
|
| 292 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000100200001; |
| 293 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000100200001; |
| 294 |
*((unsigned long *)&__m128i_op1[1]) = 0x00001fff00001fff; |
| 295 |
*((unsigned long *)&__m128i_op1[0]) = 0x0000000000000000; |
| 296 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 297 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 298 |
__m128i_out = __lsx_vshuf4i_d (__m128i_op0, __m128i_op1, 0x3a); |
| 299 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 300 |
|
| 301 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 302 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 303 |
*((unsigned long *)&__m128i_op1[1]) = 0xce23d33e43d9736c; |
| 304 |
*((unsigned long *)&__m128i_op1[0]) = 0x63b2ac27aa076aeb; |
| 305 |
*((unsigned long *)&__m128i_result[1]) = 0x63b2ac27aa076aeb; |
| 306 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 307 |
__m128i_out = __lsx_vshuf4i_d (__m128i_op0, __m128i_op1, 0xc8); |
| 308 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 309 |
|
| 310 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 311 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 312 |
*((unsigned long *)&__m128i_op1[1]) = 0x0000000000000000; |
| 313 |
*((unsigned long *)&__m128i_op1[0]) = 0x0000000000000158; |
| 314 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000158; |
| 315 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 316 |
__m128i_out = __lsx_vshuf4i_d (__m128i_op0, __m128i_op1, 0xc9); |
| 317 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 318 |
|
| 319 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 320 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 321 |
*((unsigned long *)&__m128i_op1[1]) = 0x0000000000000000; |
| 322 |
*((unsigned long *)&__m128i_op1[0]) = 0x0000000000000000; |
| 323 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 324 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 325 |
__m128i_out = __lsx_vshuf4i_d (__m128i_op0, __m128i_op1, 0xbf); |
| 326 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 327 |
|
| 328 |
*((unsigned long *)&__m128i_op0[1]) = 0x801d5de0000559e0; |
| 329 |
*((unsigned long *)&__m128i_op0[0]) = 0x77eb86788eebaf00; |
| 330 |
*((unsigned long *)&__m128i_op1[1]) = 0x0000000000000000; |
| 331 |
*((unsigned long *)&__m128i_op1[0]) = 0x0000000000000000; |
| 332 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 333 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 334 |
__m128i_out = __lsx_vshuf4i_d (__m128i_op0, __m128i_op1, 0x2e); |
| 335 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 336 |
|
| 337 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 338 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 339 |
*((unsigned long *)&__m128i_op1[1]) = 0x89582bf870006860; |
| 340 |
*((unsigned long *)&__m128i_op1[0]) = 0x89582bf870006860; |
| 341 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 342 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 343 |
__m128i_out = __lsx_vshuf4i_d (__m128i_op0, __m128i_op1, 0x94); |
| 344 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 345 |
|
| 346 |
return 0; |
| 347 |
} |