| 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 |
*((int *)&__m128_op0[3]) = 0xfe07e5fe; |
| 19 |
*((int *)&__m128_op0[2]) = 0xfefdddfe; |
| 20 |
*((int *)&__m128_op0[1]) = 0x00020100; |
| 21 |
*((int *)&__m128_op0[0]) = 0xfedd0c00; |
| 22 |
*((int *)&__m128_result[3]) = 0x7fc00000; |
| 23 |
*((int *)&__m128_result[2]) = 0x7fc00000; |
| 24 |
*((int *)&__m128_result[1]) = 0x1e801ffc; |
| 25 |
*((int *)&__m128_result[0]) = 0x7fc00000; |
| 26 |
__m128_out = __lsx_vfsqrt_s (__m128_op0); |
| 27 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 28 |
|
| 29 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 30 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 31 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 32 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 33 |
*((int *)&__m128_result[3]) = 0x00000000; |
| 34 |
*((int *)&__m128_result[2]) = 0x00000000; |
| 35 |
*((int *)&__m128_result[1]) = 0x00000000; |
| 36 |
*((int *)&__m128_result[0]) = 0x00000000; |
| 37 |
__m128_out = __lsx_vfsqrt_s (__m128_op0); |
| 38 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 39 |
|
| 40 |
*((int *)&__m128_op0[3]) = 0xff00ff00; |
| 41 |
*((int *)&__m128_op0[2]) = 0xff00ff00; |
| 42 |
*((int *)&__m128_op0[1]) = 0xff00ff00; |
| 43 |
*((int *)&__m128_op0[0]) = 0xff00ff00; |
| 44 |
*((int *)&__m128_result[3]) = 0x7fc00000; |
| 45 |
*((int *)&__m128_result[2]) = 0x7fc00000; |
| 46 |
*((int *)&__m128_result[1]) = 0x7fc00000; |
| 47 |
*((int *)&__m128_result[0]) = 0x7fc00000; |
| 48 |
__m128_out = __lsx_vfsqrt_s (__m128_op0); |
| 49 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 50 |
|
| 51 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 52 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 53 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 54 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 55 |
*((int *)&__m128_result[3]) = 0x00000000; |
| 56 |
*((int *)&__m128_result[2]) = 0x00000000; |
| 57 |
*((int *)&__m128_result[1]) = 0x00000000; |
| 58 |
*((int *)&__m128_result[0]) = 0x00000000; |
| 59 |
__m128_out = __lsx_vfsqrt_s (__m128_op0); |
| 60 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 61 |
|
| 62 |
*((int *)&__m128_op0[3]) = 0x8c7fc73a; |
| 63 |
*((int *)&__m128_op0[2]) = 0x137e54af; |
| 64 |
*((int *)&__m128_op0[1]) = 0xbc84cf6f; |
| 65 |
*((int *)&__m128_op0[0]) = 0x76208329; |
| 66 |
*((int *)&__m128_result[3]) = 0x7fc00000; |
| 67 |
*((int *)&__m128_result[2]) = 0x297f29fe; |
| 68 |
*((int *)&__m128_result[1]) = 0x7fc00000; |
| 69 |
*((int *)&__m128_result[0]) = 0x5acab5a5; |
| 70 |
__m128_out = __lsx_vfsqrt_s (__m128_op0); |
| 71 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 72 |
|
| 73 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 74 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 75 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 76 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 77 |
*((int *)&__m128_result[3]) = 0x00000000; |
| 78 |
*((int *)&__m128_result[2]) = 0x00000000; |
| 79 |
*((int *)&__m128_result[1]) = 0x00000000; |
| 80 |
*((int *)&__m128_result[0]) = 0x00000000; |
| 81 |
__m128_out = __lsx_vfsqrt_s (__m128_op0); |
| 82 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 83 |
|
| 84 |
*((int *)&__m128_op0[3]) = 0xffff9727; |
| 85 |
*((int *)&__m128_op0[2]) = 0xffff9727; |
| 86 |
*((int *)&__m128_op0[1]) = 0xfffffe79; |
| 87 |
*((int *)&__m128_op0[0]) = 0xffffba5f; |
| 88 |
*((int *)&__m128_result[3]) = 0xffff9727; |
| 89 |
*((int *)&__m128_result[2]) = 0xffff9727; |
| 90 |
*((int *)&__m128_result[1]) = 0xfffffe79; |
| 91 |
*((int *)&__m128_result[0]) = 0xffffba5f; |
| 92 |
__m128_out = __lsx_vfsqrt_s (__m128_op0); |
| 93 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 94 |
|
| 95 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 96 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 97 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 98 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 99 |
*((int *)&__m128_result[3]) = 0x00000000; |
| 100 |
*((int *)&__m128_result[2]) = 0x00000000; |
| 101 |
*((int *)&__m128_result[1]) = 0x00000000; |
| 102 |
*((int *)&__m128_result[0]) = 0x00000000; |
| 103 |
__m128_out = __lsx_vfsqrt_s (__m128_op0); |
| 104 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 105 |
|
| 106 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 107 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 108 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 109 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 110 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 111 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 112 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 113 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 114 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 115 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 116 |
|
| 117 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 118 |
*((int *)&__m128_op0[2]) = 0xfff8fff8; |
| 119 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 120 |
*((int *)&__m128_op0[0]) = 0xfff80000; |
| 121 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 122 |
*((int *)&__m128_result[2]) = 0xfff8fff8; |
| 123 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 124 |
*((int *)&__m128_result[0]) = 0xfff80000; |
| 125 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 126 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 127 |
|
| 128 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 129 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 130 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 131 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 132 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 133 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 134 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 135 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 136 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 137 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 138 |
|
| 139 |
*((int *)&__m128_op0[3]) = 0xffffffff; |
| 140 |
*((int *)&__m128_op0[2]) = 0xffffffff; |
| 141 |
*((int *)&__m128_op0[1]) = 0xffffffff; |
| 142 |
*((int *)&__m128_op0[0]) = 0xffffffff; |
| 143 |
*((int *)&__m128_result[3]) = 0xffffffff; |
| 144 |
*((int *)&__m128_result[2]) = 0xffffffff; |
| 145 |
*((int *)&__m128_result[1]) = 0xffffffff; |
| 146 |
*((int *)&__m128_result[0]) = 0xffffffff; |
| 147 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 148 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 149 |
|
| 150 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 151 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 152 |
*((int *)&__m128_op0[1]) = 0x1f1b917c; |
| 153 |
*((int *)&__m128_op0[0]) = 0x9f3d5e05; |
| 154 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 155 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 156 |
*((int *)&__m128_result[1]) = 0x4fa432d6; |
| 157 |
*((int *)&__m128_result[0]) = 0x7fc00000; |
| 158 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 159 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 160 |
|
| 161 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 162 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 163 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 164 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 165 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 166 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 167 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 168 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 169 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 170 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 171 |
|
| 172 |
*((int *)&__m128_op0[3]) = 0xffffffff; |
| 173 |
*((int *)&__m128_op0[2]) = 0xffffffff; |
| 174 |
*((int *)&__m128_op0[1]) = 0x12835580; |
| 175 |
*((int *)&__m128_op0[0]) = 0xb880eb98; |
| 176 |
*((int *)&__m128_result[3]) = 0xffffffff; |
| 177 |
*((int *)&__m128_result[2]) = 0xffffffff; |
| 178 |
*((int *)&__m128_result[1]) = 0x55fcbad1; |
| 179 |
*((int *)&__m128_result[0]) = 0x7fc00000; |
| 180 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 181 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 182 |
|
| 183 |
*((int *)&__m128_op0[3]) = 0x06070607; |
| 184 |
*((int *)&__m128_op0[2]) = 0x00000807; |
| 185 |
*((int *)&__m128_op0[1]) = 0x0707f8f8; |
| 186 |
*((int *)&__m128_op0[0]) = 0x03e8157e; |
| 187 |
*((int *)&__m128_result[3]) = 0x5c303f97; |
| 188 |
*((int *)&__m128_result[2]) = 0x61ff9049; |
| 189 |
*((int *)&__m128_result[1]) = 0x5bafa1dd; |
| 190 |
*((int *)&__m128_result[0]) = 0x5d3e1e1d; |
| 191 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 192 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 193 |
|
| 194 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 195 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 196 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 197 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 198 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 199 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 200 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 201 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 202 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 203 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 204 |
|
| 205 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 206 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 207 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 208 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 209 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 210 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 211 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 212 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 213 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 214 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 215 |
|
| 216 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 217 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 218 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 219 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 220 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 221 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 222 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 223 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 224 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 225 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 226 |
|
| 227 |
*((int *)&__m128_op0[3]) = 0xfff7fffe; |
| 228 |
*((int *)&__m128_op0[2]) = 0xfffa01ff; |
| 229 |
*((int *)&__m128_op0[1]) = 0xfffbfffe; |
| 230 |
*((int *)&__m128_op0[0]) = 0xfffe01ff; |
| 231 |
*((int *)&__m128_result[3]) = 0xfff7fffe; |
| 232 |
*((int *)&__m128_result[2]) = 0xfffa01ff; |
| 233 |
*((int *)&__m128_result[1]) = 0xfffbfffe; |
| 234 |
*((int *)&__m128_result[0]) = 0xfffe01ff; |
| 235 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 236 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 237 |
|
| 238 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 239 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 240 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 241 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 242 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 243 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 244 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 245 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 246 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 247 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 248 |
|
| 249 |
*((int *)&__m128_op0[3]) = 0x45000000; |
| 250 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 251 |
*((int *)&__m128_op0[1]) = 0x44000000; |
| 252 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 253 |
*((int *)&__m128_result[3]) = 0x3cb504f3; |
| 254 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 255 |
*((int *)&__m128_result[1]) = 0x3d3504f3; |
| 256 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 257 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 258 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 259 |
|
| 260 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 261 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 262 |
*((int *)&__m128_op0[1]) = 0x00020001; |
| 263 |
*((int *)&__m128_op0[0]) = 0x00020002; |
| 264 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 265 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 266 |
*((int *)&__m128_result[1]) = 0x607fffc0; |
| 267 |
*((int *)&__m128_result[0]) = 0x607fff80; |
| 268 |
__m128_out = __lsx_vfrsqrt_s (__m128_op0); |
| 269 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 270 |
|
| 271 |
*((int *)&__m128_op0[3]) = 0x00000002; |
| 272 |
*((int *)&__m128_op0[2]) = 0x00000002; |
| 273 |
*((int *)&__m128_op0[1]) = 0x00000003; |
| 274 |
*((int *)&__m128_op0[0]) = 0x00000003; |
| 275 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 276 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 277 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 278 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 279 |
__m128_out = __lsx_vfrecip_s (__m128_op0); |
| 280 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 281 |
|
| 282 |
*((int *)&__m128_op0[3]) = 0xf6e91c00; |
| 283 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 284 |
*((int *)&__m128_op0[1]) = 0x51cfd7c0; |
| 285 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 286 |
*((int *)&__m128_result[3]) = 0x880c91b8; |
| 287 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 288 |
*((int *)&__m128_result[1]) = 0x2d1da85b; |
| 289 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 290 |
__m128_out = __lsx_vfrecip_s (__m128_op0); |
| 291 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 292 |
|
| 293 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 294 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 295 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 296 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 297 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 298 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 299 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 300 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 301 |
__m128_out = __lsx_vfrecip_s (__m128_op0); |
| 302 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 303 |
|
| 304 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 305 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 306 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 307 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 308 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 309 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 310 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 311 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 312 |
__m128_out = __lsx_vfrecip_s (__m128_op0); |
| 313 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 314 |
|
| 315 |
*((int *)&__m128_op0[3]) = 0xfffffffa; |
| 316 |
*((int *)&__m128_op0[2]) = 0xfffffffa; |
| 317 |
*((int *)&__m128_op0[1]) = 0xfffffffa; |
| 318 |
*((int *)&__m128_op0[0]) = 0xfffffffa; |
| 319 |
*((int *)&__m128_result[3]) = 0xfffffffa; |
| 320 |
*((int *)&__m128_result[2]) = 0xfffffffa; |
| 321 |
*((int *)&__m128_result[1]) = 0xfffffffa; |
| 322 |
*((int *)&__m128_result[0]) = 0xfffffffa; |
| 323 |
__m128_out = __lsx_vfrecip_s (__m128_op0); |
| 324 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 325 |
|
| 326 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 327 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 328 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 329 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 330 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 331 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 332 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 333 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 334 |
__m128_out = __lsx_vfrecip_s (__m128_op0); |
| 335 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 336 |
|
| 337 |
*((int *)&__m128_op0[3]) = 0xffff0001; |
| 338 |
*((int *)&__m128_op0[2]) = 0xffff0001; |
| 339 |
*((int *)&__m128_op0[1]) = 0xffff0001; |
| 340 |
*((int *)&__m128_op0[0]) = 0xffff0001; |
| 341 |
*((int *)&__m128_result[3]) = 0xffff0001; |
| 342 |
*((int *)&__m128_result[2]) = 0xffff0001; |
| 343 |
*((int *)&__m128_result[1]) = 0xffff0001; |
| 344 |
*((int *)&__m128_result[0]) = 0xffff0001; |
| 345 |
__m128_out = __lsx_vfrecip_s (__m128_op0); |
| 346 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 347 |
|
| 348 |
*((int *)&__m128_op0[3]) = 0x0a000000; |
| 349 |
*((int *)&__m128_op0[2]) = 0x0a000000; |
| 350 |
*((int *)&__m128_op0[1]) = 0x0a000000; |
| 351 |
*((int *)&__m128_op0[0]) = 0x0a000000; |
| 352 |
*((int *)&__m128_result[3]) = 0x75000000; |
| 353 |
*((int *)&__m128_result[2]) = 0x75000000; |
| 354 |
*((int *)&__m128_result[1]) = 0x75000000; |
| 355 |
*((int *)&__m128_result[0]) = 0x75000000; |
| 356 |
__m128_out = __lsx_vfrecip_s (__m128_op0); |
| 357 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 358 |
|
| 359 |
*((int *)&__m128_op0[3]) = 0x00000000; |
| 360 |
*((int *)&__m128_op0[2]) = 0x00000000; |
| 361 |
*((int *)&__m128_op0[1]) = 0x00000000; |
| 362 |
*((int *)&__m128_op0[0]) = 0x00000000; |
| 363 |
*((int *)&__m128_result[3]) = 0x7f800000; |
| 364 |
*((int *)&__m128_result[2]) = 0x7f800000; |
| 365 |
*((int *)&__m128_result[1]) = 0x7f800000; |
| 366 |
*((int *)&__m128_result[0]) = 0x7f800000; |
| 367 |
__m128_out = __lsx_vfrecip_s (__m128_op0); |
| 368 |
ASSERTEQ_32 (__LINE__, __m128_result, __m128_out); |
| 369 |
|
| 370 |
return 0; |
| 371 |
} |