/* { dg-options "-mlsx -w -fno-strict-aliasing" } */ #include "../simd_correctness_check.h" #include int main () { __m128i __m128i_op0, __m128i_op1, __m128i_op2, __m128i_out, __m128i_result; __m128 __m128_op0, __m128_op1, __m128_op2, __m128_out, __m128_result; __m128d __m128d_op0, __m128d_op1, __m128d_op2, __m128d_out, __m128d_result; int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; long int long_op0, long_op1, long_op2, lont_out, lont_result; long int long_int_out, long_int_result; unsigned int unsigned_int_out, unsigned_int_result; unsigned long int unsigned_long_int_out, unsigned_long_int_result; *((int *)&__m128_op0[3]) = 0x0000ffff; *((int *)&__m128_op0[2]) = 0x0000ffff; *((int *)&__m128_op0[1]) = 0x0000ffff; *((int *)&__m128_op0[0]) = 0x0000fffe; *((int *)&__m128_op1[3]) = 0x0000ffff; *((int *)&__m128_op1[2]) = 0x0000ffff; *((int *)&__m128_op1[1]) = 0x0000ffff; *((int *)&__m128_op1[0]) = 0x0000fffe; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x00000000; *((int *)&__m128_op0[2]) = 0x00000000; *((int *)&__m128_op0[1]) = 0x00000000; *((int *)&__m128_op0[0]) = 0x00000000; *((int *)&__m128_op1[3]) = 0x00000000; *((int *)&__m128_op1[2]) = 0x00000000; *((int *)&__m128_op1[1]) = 0x00000000; *((int *)&__m128_op1[0]) = 0x00200010; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x7f800000; *((int *)&__m128_op0[2]) = 0x7f800000; *((int *)&__m128_op0[1]) = 0x7f800000; *((int *)&__m128_op0[0]) = 0x7f800000; *((int *)&__m128_op1[3]) = 0x00000000; *((int *)&__m128_op1[2]) = 0x00000000; *((int *)&__m128_op1[1]) = 0x00000000; *((int *)&__m128_op1[0]) = 0x00000000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x00000000; *((int *)&__m128_op0[2]) = 0x00000000; *((int *)&__m128_op0[1]) = 0x0000fffe; *((int *)&__m128_op0[0]) = 0x0000ffff; *((int *)&__m128_op1[3]) = 0x00000000; *((int *)&__m128_op1[2]) = 0x00000000; *((int *)&__m128_op1[1]) = 0x00000000; *((int *)&__m128_op1[0]) = 0x00000000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0xffffffff; *((int *)&__m128_op0[2]) = 0xffffffff; *((int *)&__m128_op0[1]) = 0xffffffff; *((int *)&__m128_op0[0]) = 0xffff0008; *((int *)&__m128_op1[3]) = 0xffc2ffe0; *((int *)&__m128_op1[2]) = 0x00000000; *((int *)&__m128_op1[1]) = 0x0000ffc1; *((int *)&__m128_op1[0]) = 0x00010001; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_cun_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x00000000; *((int *)&__m128_op0[2]) = 0x00000008; *((int *)&__m128_op0[1]) = 0x00200020; *((int *)&__m128_op0[0]) = 0x00200020; *((int *)&__m128_op1[3]) = 0x00000000; *((int *)&__m128_op1[2]) = 0x00000000; *((int *)&__m128_op1[1]) = 0x00000000; *((int *)&__m128_op1[0]) = 0x00000000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0xfffefffe; *((int *)&__m128_op0[2]) = 0xfffefffe; *((int *)&__m128_op0[1]) = 0xfffefffe; *((int *)&__m128_op0[0]) = 0xfffefffe; *((int *)&__m128_op1[3]) = 0x00000000; *((int *)&__m128_op1[2]) = 0x00000000; *((int *)&__m128_op1[1]) = 0xf001f001; *((int *)&__m128_op1[0]) = 0x0101f002; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_cun_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x00000000; *((int *)&__m128_op0[2]) = 0x00000000; *((int *)&__m128_op0[1]) = 0x00000000; *((int *)&__m128_op0[0]) = 0x00000000; *((int *)&__m128_op1[3]) = 0xffffffff; *((int *)&__m128_op1[2]) = 0xffffffff; *((int *)&__m128_op1[1]) = 0xffffffff; *((int *)&__m128_op1[0]) = 0xffffffff; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_cun_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0xfeffffff; *((int *)&__m128_op0[2]) = 0xffffffff; *((int *)&__m128_op0[1]) = 0xfeffffff; *((int *)&__m128_op0[0]) = 0xffffffff; *((int *)&__m128_op1[3]) = 0x00000fff; *((int *)&__m128_op1[2]) = 0xffffe000; *((int *)&__m128_op1[1]) = 0x00001020; *((int *)&__m128_op1[0]) = 0x20204000; *((unsigned long *)&__m128i_result[1]) = 0x00000000ffffffff; *((unsigned long *)&__m128i_result[0]) = 0x00000000ffffffff; __m128i_out = __lsx_vfcmp_cun_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x00000000; *((int *)&__m128_op0[2]) = 0x00000000; *((int *)&__m128_op0[1]) = 0x00000000; *((int *)&__m128_op0[0]) = 0x00000000; *((int *)&__m128_op1[3]) = 0xffffffff; *((int *)&__m128_op1[2]) = 0xffffffff; *((int *)&__m128_op1[1]) = 0x00000000; *((int *)&__m128_op1[0]) = 0x00000000; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x00000000; *((int *)&__m128_op0[2]) = 0x00000000; *((int *)&__m128_op0[1]) = 0x00000000; *((int *)&__m128_op0[0]) = 0x00000000; *((int *)&__m128_op1[3]) = 0x00000000; *((int *)&__m128_op1[2]) = 0x00000000; *((int *)&__m128_op1[1]) = 0x00000000; *((int *)&__m128_op1[0]) = 0x00000000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0xfefd7f7f7f7f7f7e; *((unsigned long *)&__m128d_op0[0]) = 0xdffdbffeba6f5543; *((unsigned long *)&__m128d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[0]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0xffff3d06ffff4506; *((unsigned long *)&__m128d_op0[0]) = 0x7ffffffe7ffff800; *((unsigned long *)&__m128d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[0]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_cun_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op0[0]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[0]) = 0x000000003bfb4000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op0[0]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[0]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op0[0]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128d_op1[0]) = 0xffff0000ffff0000; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_cun_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op0[0]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[1]) = 0x0000000100010100; *((unsigned long *)&__m128d_op1[0]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0xffff00011cf0c569; *((unsigned long *)&__m128d_op0[0]) = 0xc0000002b0995850; *((unsigned long *)&__m128d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[0]) = 0x80808080806b000b; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op0[0]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[0]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op0[0]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[1]) = 0x8080808080808080; *((unsigned long *)&__m128d_op1[0]) = 0x8080808080808080; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x00000000084d12ce; *((unsigned long *)&__m128d_op0[0]) = 0x0000000024170000; *((unsigned long *)&__m128d_op1[1]) = 0x00000000084d12ce; *((unsigned long *)&__m128d_op1[0]) = 0x0000000044470000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_cun_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); return 0; }