/* { 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]) = 0x01010101; *((int *)&__m128_op0[0]) = 0x01010101; *((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_caf_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x7ef400ad; *((int *)&__m128_op0[2]) = 0x21fc7081; *((int *)&__m128_op0[1]) = 0x28bf0351; *((int *)&__m128_op0[0]) = 0xec69b5f2; *((int *)&__m128_op1[3]) = 0xff800000; *((int *)&__m128_op1[2]) = 0xff800000; *((int *)&__m128_op1[1]) = 0xff800000; *((int *)&__m128_op1[0]) = 0x7fc00000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_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_caf_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]) = 0x01000100; *((int *)&__m128_op0[0]) = 0x01000100; *((int *)&__m128_op1[3]) = 0xffffffff; *((int *)&__m128_op1[2]) = 0xffffffff; *((int *)&__m128_op1[1]) = 0x64e464e4; *((int *)&__m128_op1[0]) = 0x64e464e4; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_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]) = 0xffc0ff80; *((int *)&__m128_op1[2]) = 0xff800000; *((int *)&__m128_op1[1]) = 0x00000000; *((int *)&__m128_op1[0]) = 0x00000005; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_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_caf_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]) = 0xffffffff; *((int *)&__m128_op0[0]) = 0xc0800000; *((int *)&__m128_op1[3]) = 0x0000001b; *((int *)&__m128_op1[2]) = 0x0000001b; *((int *)&__m128_op1[1]) = 0x0000001b; *((int *)&__m128_op1[0]) = 0x0000001b; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0x00000002; *((int *)&__m128_op0[2]) = 0x00000000; *((int *)&__m128_op0[1]) = 0x00000002; *((int *)&__m128_op0[0]) = 0x00000000; *((int *)&__m128_op1[3]) = 0x00000000; *((int *)&__m128_op1[2]) = 0x00000000; *((int *)&__m128_op1[1]) = 0x34500292; *((int *)&__m128_op1[0]) = 0x0f3017d6; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_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]) = 0x00830029; *((int *)&__m128_op0[0]) = 0x0038ff50; *((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_caf_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((int *)&__m128_op0[3]) = 0xff7fff80; *((int *)&__m128_op0[2]) = 0xff800001; *((int *)&__m128_op0[1]) = 0xe593d844; *((int *)&__m128_op0[0]) = 0xe593c8c4; *((int *)&__m128_op1[3]) = 0xff800000; *((int *)&__m128_op1[2]) = 0xff800000; *((int *)&__m128_op1[1]) = 0xe593c8c4; *((int *)&__m128_op1[0]) = 0xe593c8c4; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_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]) = 0x8a8a8a8a; *((int *)&__m128_op1[2]) = 0x8a8a8a8a; *((int *)&__m128_op1[1]) = 0x8a8a8a8a; *((int *)&__m128_op1[0]) = 0x8a8a8a8a; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_s (__m128_op0, __m128_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128d_op0[0]) = 0xffffffffffffffff; *((unsigned long *)&__m128d_op1[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128d_op1[0]) = 0xffffffffff01ff01; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x66b34f643c9c626a; *((unsigned long *)&__m128d_op0[0]) = 0x38d60e366e547876; *((unsigned long *)&__m128d_op1[1]) = 0x66b34f643c9c626a; *((unsigned long *)&__m128d_op1[0]) = 0x38d60e366e547876; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_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_caf_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_caf_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128d_op0[0]) = 0x0000000000000000; *((unsigned long *)&__m128d_op1[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128d_op1[0]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0xfcfcfcdcfcfcfcdc; *((unsigned long *)&__m128d_op0[0]) = 0xfcfcfcdcfcfcfcdc; *((unsigned long *)&__m128d_op1[1]) = 0xffffffffffffffff; *((unsigned long *)&__m128d_op1[0]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0x0000000000000005; *((unsigned long *)&__m128d_op0[0]) = 0x0000000000000005; *((unsigned long *)&__m128d_op1[1]) = 0x000700000004fdff; *((unsigned long *)&__m128d_op1[0]) = 0x000300000000fdff; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0xf2f444429d96dbe1; *((unsigned long *)&__m128d_op0[0]) = 0xddd76c75f2f44442; *((unsigned long *)&__m128d_op1[1]) = 0x0001000100010001; *((unsigned long *)&__m128d_op1[0]) = 0xc1f03e1042208410; *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000; __m128i_out = __lsx_vfcmp_caf_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); *((unsigned long *)&__m128d_op0[1]) = 0xffffbfff7fffc000; *((unsigned long *)&__m128d_op0[0]) = 0xffff43dfffff81fb; *((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_caf_d (__m128d_op0, __m128d_op1); ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out); return 0; }