| 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_vexth_h_b (__m128i_op0); |
| 23 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 24 |
|
| 25 |
*((unsigned long *)&__m128i_op0[1]) = 0x7fff000000000000; |
| 26 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 27 |
*((unsigned long *)&__m128i_result[1]) = 0x007fffff00000000; |
| 28 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 29 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 30 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 31 |
|
| 32 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff; |
| 33 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 34 |
*((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; |
| 35 |
*((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; |
| 36 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 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_vexth_h_b (__m128i_op0); |
| 44 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 45 |
|
| 46 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 47 |
*((unsigned long *)&__m128i_op0[0]) = 0x000000000000f909; |
| 48 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 49 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 50 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 51 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 52 |
|
| 53 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 54 |
*((unsigned long *)&__m128i_op0[0]) = 0x000000000000ffff; |
| 55 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 56 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 57 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 58 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 59 |
|
| 60 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff; |
| 61 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffff01ff01; |
| 62 |
*((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; |
| 63 |
*((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; |
| 64 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 65 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 66 |
|
| 67 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 68 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 69 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 70 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 71 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 72 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 73 |
|
| 74 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff; |
| 75 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 76 |
*((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; |
| 77 |
*((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; |
| 78 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 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_vexth_h_b (__m128i_op0); |
| 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_vexth_h_b (__m128i_op0); |
| 93 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 94 |
|
| 95 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 96 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 97 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 98 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 99 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 100 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 101 |
|
| 102 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 103 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 104 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 105 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 106 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 107 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 108 |
|
| 109 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 110 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 111 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 112 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 113 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 114 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 115 |
|
| 116 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 117 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 118 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 119 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 120 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 121 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 122 |
|
| 123 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 124 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 125 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 126 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 127 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 128 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 129 |
|
| 130 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 131 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 132 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 133 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 134 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 135 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 136 |
|
| 137 |
*((unsigned long *)&__m128i_op0[1]) = 0x1010111105050000; |
| 138 |
*((unsigned long *)&__m128i_op0[0]) = 0x4040000041410101; |
| 139 |
*((unsigned long *)&__m128i_result[1]) = 0x0010001000110011; |
| 140 |
*((unsigned long *)&__m128i_result[0]) = 0x0005000500000000; |
| 141 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 142 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 143 |
|
| 144 |
*((unsigned long *)&__m128i_op0[1]) = 0x00000000000003e2; |
| 145 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 146 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 147 |
*((unsigned long *)&__m128i_result[0]) = 0x000000000003ffe2; |
| 148 |
__m128i_out = __lsx_vexth_h_b (__m128i_op0); |
| 149 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 150 |
|
| 151 |
*((unsigned long *)&__m128i_op0[1]) = 0xfffffffffffffffe; |
| 152 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 153 |
*((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; |
| 154 |
*((unsigned long *)&__m128i_result[0]) = 0xfffffffffffffffe; |
| 155 |
__m128i_out = __lsx_vexth_w_h (__m128i_op0); |
| 156 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 157 |
|
| 158 |
*((unsigned long *)&__m128i_op0[1]) = 0x3ff0000000000000; |
| 159 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 160 |
*((unsigned long *)&__m128i_result[1]) = 0x00003ff000000000; |
| 161 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 162 |
__m128i_out = __lsx_vexth_w_h (__m128i_op0); |
| 163 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 164 |
|
| 165 |
*((unsigned long *)&__m128i_op0[1]) = 0x03c0000000000000; |
| 166 |
*((unsigned long *)&__m128i_op0[0]) = 0x03c0038000000380; |
| 167 |
*((unsigned long *)&__m128i_result[1]) = 0x000003c000000000; |
| 168 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 169 |
__m128i_out = __lsx_vexth_w_h (__m128i_op0); |
| 170 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 171 |
|
| 172 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 173 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 174 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 175 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 176 |
__m128i_out = __lsx_vexth_w_h (__m128i_op0); |
| 177 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 178 |
|
| 179 |
*((unsigned long *)&__m128i_op0[1]) = 0xb9fe3640e4eb1b18; |
| 180 |
*((unsigned long *)&__m128i_op0[0]) = 0x800000005b4b1b18; |
| 181 |
*((unsigned long *)&__m128i_result[1]) = 0xffffb9fe00003640; |
| 182 |
*((unsigned long *)&__m128i_result[0]) = 0xffffe4eb00001b18; |
| 183 |
__m128i_out = __lsx_vexth_w_h (__m128i_op0); |
| 184 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 185 |
|
| 186 |
*((unsigned long *)&__m128i_op0[1]) = 0x370bdfec00130014; |
| 187 |
*((unsigned long *)&__m128i_op0[0]) = 0x370bdfec00130014; |
| 188 |
*((unsigned long *)&__m128i_result[1]) = 0x0000370bffffdfec; |
| 189 |
*((unsigned long *)&__m128i_result[0]) = 0x0000001300000014; |
| 190 |
__m128i_out = __lsx_vexth_w_h (__m128i_op0); |
| 191 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 192 |
|
| 193 |
*((unsigned long *)&__m128i_op0[1]) = 0xe500c085c000c005; |
| 194 |
*((unsigned long *)&__m128i_op0[0]) = 0xe5c1a185c48004c5; |
| 195 |
*((unsigned long *)&__m128i_result[1]) = 0xffffe500ffffc085; |
| 196 |
*((unsigned long *)&__m128i_result[0]) = 0xffffc000ffffc005; |
| 197 |
__m128i_out = __lsx_vexth_w_h (__m128i_op0); |
| 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_vexth_w_h (__m128i_op0); |
| 205 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 206 |
|
| 207 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 208 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 209 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 210 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 211 |
__m128i_out = __lsx_vexth_w_h (__m128i_op0); |
| 212 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 213 |
|
| 214 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 215 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000010000000000; |
| 216 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 217 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 218 |
__m128i_out = __lsx_vexth_d_w (__m128i_op0); |
| 219 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 220 |
|
| 221 |
*((unsigned long *)&__m128i_op0[1]) = 0x5c9c9c9ce3636363; |
| 222 |
*((unsigned long *)&__m128i_op0[0]) = 0x63635c9e63692363; |
| 223 |
*((unsigned long *)&__m128i_result[1]) = 0x000000005c9c9c9c; |
| 224 |
*((unsigned long *)&__m128i_result[0]) = 0xffffffffe3636363; |
| 225 |
__m128i_out = __lsx_vexth_d_w (__m128i_op0); |
| 226 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 227 |
|
| 228 |
*((unsigned long *)&__m128i_op0[1]) = 0x63b2ac27aa076aeb; |
| 229 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 230 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000063b2ac27; |
| 231 |
*((unsigned long *)&__m128i_result[0]) = 0xffffffffaa076aeb; |
| 232 |
__m128i_out = __lsx_vexth_d_w (__m128i_op0); |
| 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]) = 0x00000000001a000b; |
| 239 |
__m128i_out = __lsx_vexth_d_w (__m128i_op0); |
| 240 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 241 |
|
| 242 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff; |
| 243 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 244 |
*((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; |
| 245 |
*((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; |
| 246 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 247 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 248 |
|
| 249 |
*((unsigned long *)&__m128i_op0[1]) = 0x0028280000000000; |
| 250 |
*((unsigned long *)&__m128i_op0[0]) = 0x012927ffff272800; |
| 251 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 252 |
*((unsigned long *)&__m128i_result[0]) = 0x0028280000000000; |
| 253 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 254 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 255 |
|
| 256 |
*((unsigned long *)&__m128i_op0[1]) = 0x000000ff000000ff; |
| 257 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000ff0000000000; |
| 258 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 259 |
*((unsigned long *)&__m128i_result[0]) = 0x000000ff000000ff; |
| 260 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 261 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 262 |
|
| 263 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000005; |
| 264 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000005; |
| 265 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 266 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000005; |
| 267 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 268 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 269 |
|
| 270 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 271 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 272 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 273 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 274 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 275 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 276 |
|
| 277 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000020000020; |
| 278 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000020000020; |
| 279 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 280 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000020000020; |
| 281 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 282 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 283 |
|
| 284 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 285 |
*((unsigned long *)&__m128i_op0[0]) = 0x000000000000fff0; |
| 286 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 287 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 288 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 289 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 290 |
|
| 291 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 292 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 293 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 294 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 295 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 296 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 297 |
|
| 298 |
*((unsigned long *)&__m128i_op0[1]) = 0xfffffffffffffffc; |
| 299 |
*((unsigned long *)&__m128i_op0[0]) = 0xfffffffffffffffc; |
| 300 |
*((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; |
| 301 |
*((unsigned long *)&__m128i_result[0]) = 0xfffffffffffffffc; |
| 302 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 303 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 304 |
|
| 305 |
*((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff; |
| 306 |
*((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff; |
| 307 |
*((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; |
| 308 |
*((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; |
| 309 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 310 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 311 |
|
| 312 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000; |
| 313 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 314 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 315 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 316 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 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_result[1]) = 0x0000000000000000; |
| 322 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; |
| 323 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 324 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 325 |
|
| 326 |
*((unsigned long *)&__m128i_op0[1]) = 0x0000000000000080; |
| 327 |
*((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000; |
| 328 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 329 |
*((unsigned long *)&__m128i_result[0]) = 0x0000000000000080; |
| 330 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 331 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 332 |
|
| 333 |
*((unsigned long *)&__m128i_op0[1]) = 0x3a8000003a800000; |
| 334 |
*((unsigned long *)&__m128i_op0[0]) = 0x000ef0000000003b; |
| 335 |
*((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; |
| 336 |
*((unsigned long *)&__m128i_result[0]) = 0x3a8000003a800000; |
| 337 |
__m128i_out = __lsx_vexth_q_d (__m128i_op0); |
| 338 |
ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); |
| 339 |
|
| 340 |
return 0; |
| 341 |
} |