| 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]) = 0x0000000000000000; |
| 20 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 21 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 22 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 23 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 24 |
|
| 25 |
unsigned_int_out = __lsx_vpickve2gr_hu (__m128i_op0, 0x7); |
| 26 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 27 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 28 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 29 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 30 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 31 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 32 |
|
| 33 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 34 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 35 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 36 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 37 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 38 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 39 |
|
| 40 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffff00000000; |
| 41 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 42 |
*((unsigned long *)&__m128i_result[1]) = 0x0010001000000000; |
| 43 |
*((unsigned long *)&__m128i_result[0]) = 0x0010001000100010; |
| 44 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 45 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 46 |
|
| 47 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff; |
| 48 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 49 |
*((unsigned long *)&__m128i_result[1]) = 0x0010001000100010; |
| 50 |
*((unsigned long *)&__m128i_result[0]) = 0x0010001000100010; |
| 51 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 52 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 53 |
|
| 54 |
*((unsigned long *)&__m128i_op0[1]) = 0xfffffffffefefefe; |
| 55 |
*((unsigned long *)&__m128i_op0[0]) = 0x000000000000ffff; |
| 56 |
*((unsigned long *)&__m128i_result[1]) = 0x000000000000003c; |
| 57 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000010; |
| 58 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 59 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 60 |
|
| 61 |
*((unsigned long *)&__m128i_op0[1]) = 0x7f8000007f800000; |
| 62 |
*((unsigned long *)&__m128i_op0[0]) = 0x7f8000007f800000; |
| 63 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000800000008; |
| 64 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000800000008; |
| 65 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 66 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 67 |
|
| 68 |
*((unsigned long *)&__m128i_op0[1]) = 0x7f8000007f800000; |
| 69 |
*((unsigned long *)&__m128i_op0[0]) = 0x7f80000000000000; |
| 70 |
*((unsigned long *)&__m128i_result[1]) = 0x0701000007010000; |
| 71 |
*((unsigned long *)&__m128i_result[0]) = 0x0701000000000000; |
| 72 |
__m128i_out = __lsx_vpcnt_b (__m128i_op0); |
| 73 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 74 |
|
| 75 |
*((unsigned long *)&__m128i_op0[1]) = 0x807f7f8000ffff00; |
| 76 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000ffff00feff00; |
| 77 |
*((unsigned long *)&__m128i_result[1]) = 0x0107070100080800; |
| 78 |
*((unsigned long *)&__m128i_result[0]) = 0x0000080800070800; |
| 79 |
__m128i_out = __lsx_vpcnt_b (__m128i_op0); |
| 80 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 81 |
|
| 82 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 83 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 84 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 85 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 86 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 87 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 88 |
|
| 89 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 90 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 91 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 92 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 93 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 94 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 95 |
|
| 96 |
*((unsigned long *)&__m128i_op0[1]) = 0x5252525252525252; |
| 97 |
*((unsigned long *)&__m128i_op0[0]) = 0x5252525252525252; |
| 98 |
*((unsigned long *)&__m128i_result[1]) = 0x0303030303030303; |
| 99 |
*((unsigned long *)&__m128i_result[0]) = 0x0303030303030303; |
| 100 |
__m128i_out = __lsx_vpcnt_b (__m128i_op0); |
| 101 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 102 |
|
| 103 |
*((unsigned long *)&__m128i_op0[1]) = 0x00000000ffffffff; |
| 104 |
*((unsigned long *)&__m128i_op0[0]) = 0x00000000ffffffff; |
| 105 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000100010; |
| 106 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000100010; |
| 107 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 108 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 109 |
|
| 110 |
*((unsigned long *)&__m128i_op0[1]) = 0xe0404041e0404041; |
| 111 |
*((unsigned long *)&__m128i_op0[0]) = 0x803f800080000000; |
| 112 |
*((unsigned long *)&__m128i_result[1]) = 0x000000000000000e; |
| 113 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000009; |
| 114 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 115 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 116 |
|
| 117 |
*((unsigned long *)&__m128i_op0[1]) = 0x0007000000040000; |
| 118 |
*((unsigned long *)&__m128i_op0[0]) = 0x0003000000010000; |
| 119 |
*((unsigned long *)&__m128i_result[1]) = 0x0003000000010000; |
| 120 |
*((unsigned long *)&__m128i_result[0]) = 0x0002000000010000; |
| 121 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 122 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 123 |
|
| 124 |
*((unsigned long *)&__m128i_op0[1]) = 0x1111111111111111; |
| 125 |
*((unsigned long *)&__m128i_op0[0]) = 0x1111111111111111; |
| 126 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000010; |
| 127 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000010; |
| 128 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 129 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 130 |
|
| 131 |
*((unsigned long *)&__m128i_op0[1]) = 0x0ba00ba00ba00ba0; |
| 132 |
*((unsigned long *)&__m128i_op0[0]) = 0x0ba00ba00ba011eb; |
| 133 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000a0000000a; |
| 134 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000a0000000d; |
| 135 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 136 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 137 |
|
| 138 |
*((unsigned long *)&__m128i_op0[1]) = 0xfbfbfb17fbfb38ea; |
| 139 |
*((unsigned long *)&__m128i_op0[0]) = 0xfbfb47fbfbfb0404; |
| 140 |
*((unsigned long *)&__m128i_result[1]) = 0x000000000000002f; |
| 141 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000029; |
| 142 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 143 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 144 |
|
| 145 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 146 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffbfc0ffffbfc0; |
| 147 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 148 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000032; |
| 149 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 150 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 151 |
|
| 152 |
*((unsigned long *)&__m128i_op0[1]) = 0x21201f1e19181716; |
| 153 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 154 |
*((unsigned long *)&__m128i_result[1]) = 0x0003000900050007; |
| 155 |
*((unsigned long *)&__m128i_result[0]) = 0x0010001000100010; |
| 156 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 157 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 158 |
|
| 159 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000005; |
| 160 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000005; |
| 161 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000002; |
| 162 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000002; |
| 163 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 164 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 165 |
|
| 166 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 167 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 168 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 169 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 170 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 171 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 172 |
|
| 173 |
*((unsigned long *)&__m128i_op0[1]) = 0xfff0800080008000; |
| 174 |
*((unsigned long *)&__m128i_op0[0]) = 0xe160065422d476da; |
| 175 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000d00000002; |
| 176 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000b00000010; |
| 177 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 178 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 179 |
|
| 180 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 181 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 182 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 183 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 184 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 185 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 186 |
|
| 187 |
*((unsigned long *)&__m128i_op0[1]) = 0xffff0000ffff0000; |
| 188 |
*((unsigned long *)&__m128i_op0[0]) = 0xffff000000000000; |
| 189 |
*((unsigned long *)&__m128i_result[1]) = 0x0000001000000010; |
| 190 |
*((unsigned long *)&__m128i_result[0]) = 0x0000001000000000; |
| 191 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 192 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 193 |
|
| 194 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff; |
| 195 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 196 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000040; |
| 197 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000040; |
| 198 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 199 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 200 |
|
| 201 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000010100000101; |
| 202 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000010100000101; |
| 203 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000200000002; |
| 204 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000200000002; |
| 205 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 206 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 207 |
|
| 208 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 209 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 210 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 211 |
*((unsigned long *)&__m128i_result[0]) = 0x0808080808080808; |
| 212 |
__m128i_out = __lsx_vpcnt_b (__m128i_op0); |
| 213 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 214 |
|
| 215 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 216 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 217 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 218 |
*((unsigned long *)&__m128i_result[0]) = 0x0010001000100010; |
| 219 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 220 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 221 |
|
| 222 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 223 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 224 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 225 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 226 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 227 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 228 |
|
| 229 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000020000; |
| 230 |
*((unsigned long *)&__m128i_op0[0]) = 0x0103000201030002; |
| 231 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000001; |
| 232 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000008; |
| 233 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 234 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 235 |
|
| 236 |
*((unsigned long *)&__m128i_op0[1]) = 0xfffffffffffffffc; |
| 237 |
*((unsigned long *)&__m128i_op0[0]) = 0xfffffffffffffffc; |
| 238 |
*((unsigned long *)&__m128i_result[1]) = 0x000000200000001e; |
| 239 |
*((unsigned long *)&__m128i_result[0]) = 0x000000200000001e; |
| 240 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 241 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 242 |
|
| 243 |
*((unsigned long *)&__m128i_op0[1]) = 0xbbe5560400010001; |
| 244 |
*((unsigned long *)&__m128i_op0[0]) = 0xe7e5dabf00010001; |
| 245 |
*((unsigned long *)&__m128i_result[1]) = 0x000b000500010001; |
| 246 |
*((unsigned long *)&__m128i_result[0]) = 0x000b000c00010001; |
| 247 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 248 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 249 |
|
| 250 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 251 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 252 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 253 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 254 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 255 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 256 |
|
| 257 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff; |
| 258 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 259 |
*((unsigned long *)&__m128i_result[1]) = 0x0010001000100010; |
| 260 |
*((unsigned long *)&__m128i_result[0]) = 0x0010001000100010; |
| 261 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 262 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 263 |
|
| 264 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 265 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 266 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 267 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 268 |
__m128i_out = __lsx_vpcnt_b (__m128i_op0); |
| 269 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 270 |
|
| 271 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff; |
| 272 |
*((unsigned long *)&__m128i_op0[0]) = 0x7fffffff7fffffff; |
| 273 |
*((unsigned long *)&__m128i_result[1]) = 0x0000002000000020; |
| 274 |
*((unsigned long *)&__m128i_result[0]) = 0x0000001f0000001f; |
| 275 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 276 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 277 |
|
| 278 |
*((unsigned long *)&__m128i_op0[1]) = 0x9c9c9c9c9c9c9c9c; |
| 279 |
*((unsigned long *)&__m128i_op0[0]) = 0x9c9c9c9c9c9c9c9c; |
| 280 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000020; |
| 281 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000020; |
| 282 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 283 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 284 |
|
| 285 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 286 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 287 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 288 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 289 |
__m128i_out = __lsx_vpcnt_h (__m128i_op0); |
| 290 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 291 |
|
| 292 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000600007fff; |
| 293 |
*((unsigned long *)&__m128i_op0[0]) = 0x00000008ffffa209; |
| 294 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000011; |
| 295 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000016; |
| 296 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 297 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 298 |
|
| 299 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 300 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 301 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 302 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 303 |
__m128i_out = __lsx_vpcnt_b (__m128i_op0); |
| 304 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 305 |
|
| 306 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 307 |
*((unsigned long *)&__m128i_op0[0]) = 0x00000000467fef81; |
| 308 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 309 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000013; |
| 310 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 311 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 312 |
|
| 313 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 314 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 315 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 316 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 317 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 318 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 319 |
|
| 320 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 321 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 322 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 323 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 324 |
__m128i_out = __lsx_vpcnt_d (__m128i_op0); |
| 325 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 326 |
|
| 327 |
*((unsigned long *)&__m128i_op0[1]) = 0x00000000fe03fe01; |
| 328 |
*((unsigned long *)&__m128i_op0[0]) = 0x00000000fe01fe01; |
| 329 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000007020701; |
| 330 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000007010701; |
| 331 |
__m128i_out = __lsx_vpcnt_b (__m128i_op0); |
| 332 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 333 |
|
| 334 |
*((unsigned long *)&__m128i_op0[1]) = 0x7f80000000000000; |
| 335 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 336 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000800000000; |
| 337 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 338 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 339 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 340 |
|
| 341 |
*((unsigned long *)&__m128i_op0[1]) = 0xf654ad7447e59090; |
| 342 |
*((unsigned long *)&__m128i_op0[0]) = 0x27b1b106b8145f50; |
| 343 |
*((unsigned long *)&__m128i_result[1]) = 0x000000120000000d; |
| 344 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000e0000000e; |
| 345 |
__m128i_out = __lsx_vpcnt_w (__m128i_op0); |
| 346 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 347 |
|
| 348 |
return 0; |
| 349 |
} |