/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ #include "../simd_correctness_check.h" #include int main () { __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_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 *)&__m256_op0[7]) = 0x1e180000; *((int *)&__m256_op0[6]) = 0x00000000; *((int *)&__m256_op0[5]) = 0x1e180000; *((int *)&__m256_op0[4]) = 0x00000000; *((int *)&__m256_op0[3]) = 0x1e180000; *((int *)&__m256_op0[2]) = 0x00000000; *((int *)&__m256_op0[1]) = 0x1e180000; *((int *)&__m256_op0[0]) = 0x00000000; *((int *)&__m256_op1[7]) = 0x00802000; *((int *)&__m256_op1[6]) = 0x00802000; *((int *)&__m256_op1[5]) = 0xffffffff; *((int *)&__m256_op1[4]) = 0xffffffff; *((int *)&__m256_op1[3]) = 0x00802000; *((int *)&__m256_op1[2]) = 0x00802000; *((int *)&__m256_op1[1]) = 0xffffffff; *((int *)&__m256_op1[0]) = 0xffffffff; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((int *)&__m256_op0[7]) = 0x00000055; *((int *)&__m256_op0[6]) = 0x36aaaaac; *((int *)&__m256_op0[5]) = 0x55555555; *((int *)&__m256_op0[4]) = 0xaaaaaaac; *((int *)&__m256_op0[3]) = 0x00000055; *((int *)&__m256_op0[2]) = 0x36aaaaac; *((int *)&__m256_op0[1]) = 0x55555555; *((int *)&__m256_op0[0]) = 0xaaaaaaac; *((int *)&__m256_op1[7]) = 0x00060000; *((int *)&__m256_op1[6]) = 0x00040000; *((int *)&__m256_op1[5]) = 0x00025555; *((int *)&__m256_op1[4]) = 0x00000000; *((int *)&__m256_op1[3]) = 0x00060000; *((int *)&__m256_op1[2]) = 0x00040000; *((int *)&__m256_op1[1]) = 0x00025555; *((int *)&__m256_op1[0]) = 0x00000000; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((int *)&__m256_op0[7]) = 0xff240000; *((int *)&__m256_op0[6]) = 0x0000ff00; *((int *)&__m256_op0[5]) = 0xfffeffe4; *((int *)&__m256_op0[4]) = 0xfffeff00; *((int *)&__m256_op0[3]) = 0xff640000; *((int *)&__m256_op0[2]) = 0x0000ff00; *((int *)&__m256_op0[1]) = 0xfffeff66; *((int *)&__m256_op0[0]) = 0xfffeff00; *((int *)&__m256_op1[7]) = 0xffffffff; *((int *)&__m256_op1[6]) = 0xffffffff; *((int *)&__m256_op1[5]) = 0xffffffff; *((int *)&__m256_op1[4]) = 0xffffffff; *((int *)&__m256_op1[3]) = 0xffffffff; *((int *)&__m256_op1[2]) = 0xffffffff; *((int *)&__m256_op1[1]) = 0xffffffff; *((int *)&__m256_op1[0]) = 0xffffffff; *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((int *)&__m256_op0[7]) = 0x80808082; *((int *)&__m256_op0[6]) = 0x80808082; *((int *)&__m256_op0[5]) = 0x80808082; *((int *)&__m256_op0[4]) = 0x80808082; *((int *)&__m256_op0[3]) = 0x80808082; *((int *)&__m256_op0[2]) = 0x80808080; *((int *)&__m256_op0[1]) = 0x80808082; *((int *)&__m256_op0[0]) = 0x80808082; *((int *)&__m256_op1[7]) = 0x55555555; *((int *)&__m256_op1[6]) = 0x55555555; *((int *)&__m256_op1[5]) = 0x00000000; *((int *)&__m256_op1[4]) = 0x00000000; *((int *)&__m256_op1[3]) = 0x55555555; *((int *)&__m256_op1[2]) = 0x55555555; *((int *)&__m256_op1[1]) = 0x00000000; *((int *)&__m256_op1[0]) = 0x00000000; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((int *)&__m256_op0[7]) = 0x00000000; *((int *)&__m256_op0[6]) = 0x00000000; *((int *)&__m256_op0[5]) = 0x00000000; *((int *)&__m256_op0[4]) = 0x00000000; *((int *)&__m256_op0[3]) = 0x00000000; *((int *)&__m256_op0[2]) = 0x00000000; *((int *)&__m256_op0[1]) = 0x00000000; *((int *)&__m256_op0[0]) = 0x00000000; *((int *)&__m256_op1[7]) = 0x00000000; *((int *)&__m256_op1[6]) = 0x00000000; *((int *)&__m256_op1[5]) = 0x00000000; *((int *)&__m256_op1[4]) = 0x00000000; *((int *)&__m256_op1[3]) = 0x00000000; *((int *)&__m256_op1[2]) = 0x00000000; *((int *)&__m256_op1[1]) = 0x00000000; *((int *)&__m256_op1[0]) = 0x00000000; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((int *)&__m256_op0[7]) = 0x00000000; *((int *)&__m256_op0[6]) = 0x00000000; *((int *)&__m256_op0[5]) = 0x00000000; *((int *)&__m256_op0[4]) = 0x00000000; *((int *)&__m256_op0[3]) = 0x00000000; *((int *)&__m256_op0[2]) = 0x00000000; *((int *)&__m256_op0[1]) = 0x00000000; *((int *)&__m256_op0[0]) = 0x00000000; *((int *)&__m256_op1[7]) = 0x00000000; *((int *)&__m256_op1[6]) = 0x00000000; *((int *)&__m256_op1[5]) = 0x00000000; *((int *)&__m256_op1[4]) = 0x00000000; *((int *)&__m256_op1[3]) = 0x00000000; *((int *)&__m256_op1[2]) = 0x00000000; *((int *)&__m256_op1[1]) = 0x00000000; *((int *)&__m256_op1[0]) = 0x00000000; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((int *)&__m256_op0[7]) = 0x6d6d6d6d; *((int *)&__m256_op0[6]) = 0x6d6d6d6d; *((int *)&__m256_op0[5]) = 0x6d6d6d6d; *((int *)&__m256_op0[4]) = 0x6d6d6d6d; *((int *)&__m256_op0[3]) = 0x6d6d6d6d; *((int *)&__m256_op0[2]) = 0x6d6d6d6d; *((int *)&__m256_op0[1]) = 0x6d6d6d6d; *((int *)&__m256_op0[0]) = 0x6d6d6d6d; *((int *)&__m256_op1[7]) = 0x6d6d6d6d; *((int *)&__m256_op1[6]) = 0x6d6d6d6d; *((int *)&__m256_op1[5]) = 0x6d6d6d6d; *((int *)&__m256_op1[4]) = 0x6d6d6d6d; *((int *)&__m256_op1[3]) = 0x6d6d6d6d; *((int *)&__m256_op1[2]) = 0x6d6d6d6d; *((int *)&__m256_op1[1]) = 0x6d6d6d6d; *((int *)&__m256_op1[0]) = 0x6d6d6d6d; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((int *)&__m256_op0[7]) = 0x00000000; *((int *)&__m256_op0[6]) = 0x00000000; *((int *)&__m256_op0[5]) = 0x00000000; *((int *)&__m256_op0[4]) = 0x00000000; *((int *)&__m256_op0[3]) = 0x00000000; *((int *)&__m256_op0[2]) = 0x00000000; *((int *)&__m256_op0[1]) = 0x00000000; *((int *)&__m256_op0[0]) = 0x00000000; *((int *)&__m256_op1[7]) = 0x00000000; *((int *)&__m256_op1[6]) = 0x00000000; *((int *)&__m256_op1[5]) = 0x00000000; *((int *)&__m256_op1[4]) = 0x00000000; *((int *)&__m256_op1[3]) = 0x00000000; *((int *)&__m256_op1[2]) = 0x00000000; *((int *)&__m256_op1[1]) = 0x00000000; *((int *)&__m256_op1[0]) = 0x00000000; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((int *)&__m256_op0[7]) = 0x00000000; *((int *)&__m256_op0[6]) = 0x00000000; *((int *)&__m256_op0[5]) = 0x00000000; *((int *)&__m256_op0[4]) = 0x00000000; *((int *)&__m256_op0[3]) = 0x00000000; *((int *)&__m256_op0[2]) = 0x00000000; *((int *)&__m256_op0[1]) = 0x00000000; *((int *)&__m256_op0[0]) = 0x00000000; *((int *)&__m256_op1[7]) = 0x00000000; *((int *)&__m256_op1[6]) = 0x00000000; *((int *)&__m256_op1[5]) = 0x00000000; *((int *)&__m256_op1[4]) = 0x00000000; *((int *)&__m256_op1[3]) = 0x00000000; *((int *)&__m256_op1[2]) = 0x00000000; *((int *)&__m256_op1[1]) = 0x00000000; *((int *)&__m256_op1[0]) = 0x00000000; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((int *)&__m256_op0[7]) = 0xffffffff; *((int *)&__m256_op0[6]) = 0xffffffff; *((int *)&__m256_op0[5]) = 0x00000000; *((int *)&__m256_op0[4]) = 0xffffffff; *((int *)&__m256_op0[3]) = 0xffffffff; *((int *)&__m256_op0[2]) = 0xffffffff; *((int *)&__m256_op0[1]) = 0x00000000; *((int *)&__m256_op0[0]) = 0xffffffff; *((int *)&__m256_op1[7]) = 0xffffffff; *((int *)&__m256_op1[6]) = 0x00000000; *((int *)&__m256_op1[5]) = 0x00000000; *((int *)&__m256_op1[4]) = 0x00000000; *((int *)&__m256_op1[3]) = 0xffffffff; *((int *)&__m256_op1[2]) = 0x00000000; *((int *)&__m256_op1[1]) = 0x00000000; *((int *)&__m256_op1[0]) = 0x00000000; *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((int *)&__m256_op0[7]) = 0x00000000; *((int *)&__m256_op0[6]) = 0x00000000; *((int *)&__m256_op0[5]) = 0x00000000; *((int *)&__m256_op0[4]) = 0x00000000; *((int *)&__m256_op0[3]) = 0x00000000; *((int *)&__m256_op0[2]) = 0x00000000; *((int *)&__m256_op0[1]) = 0x00000000; *((int *)&__m256_op0[0]) = 0x00000000; *((int *)&__m256_op1[7]) = 0x00000000; *((int *)&__m256_op1[6]) = 0x00000000; *((int *)&__m256_op1[5]) = 0x00000000; *((int *)&__m256_op1[4]) = 0x00000000; *((int *)&__m256_op1[3]) = 0x00000000; *((int *)&__m256_op1[2]) = 0x00000000; *((int *)&__m256_op1[1]) = 0x00000000; *((int *)&__m256_op1[0]) = 0x00000000; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[3]) = 0x7fffffff7fffffff; *((unsigned long *)&__m256d_op1[2]) = 0x7fffffff7fffffff; *((unsigned long *)&__m256d_op1[1]) = 0x7fffffff7fffffff; *((unsigned long *)&__m256d_op1[0]) = 0x7fffffff7fffffff; *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[2]) = 0x00000000ffff0008; *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[0]) = 0x00000000ffff0008; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000118; *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000118; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffffffff; *((unsigned long *)&__m256d_op1[3]) = 0x0fffffff10000006; *((unsigned long *)&__m256d_op1[2]) = 0x0fffffff10000006; *((unsigned long *)&__m256d_op1[1]) = 0x0fffffff10000006; *((unsigned long *)&__m256d_op1[0]) = 0x0fffffff10000006; *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000040; *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000027; *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000040; *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000027; *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); return 0; }