/* { 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]) = 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]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_sor_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x00000000; *((int *)&__m128_op0[2]) = 0xffffffff; *((int *)&__m128_op0[1]) = 0x00000000; *((int *)&__m128_op0[0]) = 0xffffffff; *((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]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_sor_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x0000007f; *((int *)&__m128_op0[2]) = 0x0000007f; *((int *)&__m128_op0[1]) = 0x0000007f; *((int *)&__m128_op0[0]) = 0x0000007f; *((int *)&__m128_op1[3]) = 0x3ff00000; *((int *)&__m128_op1[2]) = 0x00000000; *((int *)&__m128_op1[1]) = 0xfffc0020; *((int *)&__m128_op1[0]) = 0x00000000; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0x00000000ffffffff; __m128i_out = __lsx_vfcmp_sor_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x2757de72; *((int *)&__m128_op0[2]) = 0x33d771a3; *((int *)&__m128_op0[1]) = 0x166891d5; *((int *)&__m128_op0[0]) = 0x1e8b7eff; *((int *)&__m128_op1[3]) = 0x2757de72; *((int *)&__m128_op1[2]) = 0x33d771a3; *((int *)&__m128_op1[1]) = 0x166891d5; *((int *)&__m128_op1[0]) = 0x1e8b7eff; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_sor_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]) = 0x00fe00ff; *((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]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_sor_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x00000000; *((int *)&__m128_op0[2]) = 0x00000001; *((int *)&__m128_op0[1]) = 0xffffffff; *((int *)&__m128_op0[0]) = 0xfffffffe; *((int *)&__m128_op1[3]) = 0x00000000; *((int *)&__m128_op1[2]) = 0x00000000; *((int *)&__m128_op1[1]) = 0x00000000; *((int *)&__m128_op1[0]) = 0xffffff02; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_sor_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]) = 0x0000000d; *((int *)&__m128_op1[3]) = 0xffffffff; *((int *)&__m128_op1[2]) = 0xfffffe03; *((int *)&__m128_op1[1]) = 0xffffffff; *((int *)&__m128_op1[0]) = 0xfffffe03; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_sor_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]) = 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]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_sor_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]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_sor_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]) = 0xffffffff; *((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_sor_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]) = 0xbafebb00; *((int *)&__m128_op1[2]) = 0xffd500fe; *((int *)&__m128_op1[1]) = 0x00000000; *((int *)&__m128_op1[0]) = 0x00000000; *((unsigned long *)&__m128i_result[1]) = 0xffffffff00000000; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_sor_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]) = 0xbffffffe; *((int *)&__m128_op1[1]) = 0x00000000; *((int *)&__m128_op1[0]) = 0x00000000; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_sor_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]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_sor_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x80000000; *((int *)&__m128_op0[2]) = 0x80000000; *((int *)&__m128_op0[1]) = 0x80000000; *((int *)&__m128_op0[0]) = 0x80000000; *((int *)&__m128_op1[3]) = 0x000000ff; *((int *)&__m128_op1[2]) = 0x0000857a; *((int *)&__m128_op1[1]) = 0x05fafe01; *((int *)&__m128_op1[0]) = 0x01fe000e; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_sor_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x7fff7fff; *((int *)&__m128_op0[2]) = 0x7fff7fff; *((int *)&__m128_op0[1]) = 0xbf6b8101; *((int *)&__m128_op0[0]) = 0x81018101; *((int *)&__m128_op1[3]) = 0xe3636363; *((int *)&__m128_op1[2]) = 0x63abdf16; *((int *)&__m128_op1[1]) = 0x41f8e080; *((int *)&__m128_op1[0]) = 0x16161198; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_sor_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op0[0]) = 0x0000ffff00000000; *((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_sor_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]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_sor_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op0[0]) = 0x0000000000005d5d; *((unsigned long *)&__m128d_op1[1]) = 0x08fdc221bfdb1927; *((unsigned long *)&__m128d_op1[0]) = 0x4303c67e9b7fb213; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_sor_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op0[0]) = 0x7fffffff7ffffffb; *((unsigned long *)&__m128d_op1[1]) = 0x0000000000000002; *((unsigned long *)&__m128d_op1[0]) = 0x0000000000040002; *((unsigned long *)&__m128i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_sor_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op0[0]) = 0x0000000000000158; *((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_sor_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0xfffffff000000000; *((unsigned long *)&__m128d_op0[0]) = 0x0000000d00000000; *((unsigned long *)&__m128d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[0]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0xffffffffffffffff; __m128i_out = __lsx_vfcmp_sor_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); return 0; }