/* { 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]) = 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_xvfcvt_h_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_xvfcvt_h_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]) = 0x00000003; *((int *)&__m256_op1[6]) = 0x0000000c; *((int *)&__m256_op1[5]) = 0x00000011; *((int *)&__m256_op1[4]) = 0x00000000; *((int *)&__m256_op1[3]) = 0x00000005; *((int *)&__m256_op1[2]) = 0x00000000; *((int *)&__m256_op1[1]) = 0x00000008; *((int *)&__m256_op1[0]) = 0x00000010; *((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_xvfcvt_h_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]) = 0x7c007c007c007c00; *((unsigned long *)&__m256i_result[2]) = 0x7c007c007c007c00; *((unsigned long *)&__m256i_result[1]) = 0x7c007c007c007c00; *((unsigned long *)&__m256i_result[0]) = 0x7c007c007c007c00; __m256i_out = __lasx_xvfcvt_h_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_xvfcvt_h_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]) = 0xffffffff; *((int *)&__m256_op0[4]) = 0xffffffff; *((int *)&__m256_op0[3]) = 0xffffffff; *((int *)&__m256_op0[2]) = 0xffffffff; *((int *)&__m256_op0[1]) = 0xffffffff; *((int *)&__m256_op0[0]) = 0xffffffff; *((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]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; __m256i_out = __lasx_xvfcvt_h_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]) = 0x00020000; *((int *)&__m256_op1[6]) = 0x00020000; *((int *)&__m256_op1[5]) = 0x00020000; *((int *)&__m256_op1[4]) = 0x00010000; *((int *)&__m256_op1[3]) = 0x00020000; *((int *)&__m256_op1[2]) = 0x00020000; *((int *)&__m256_op1[1]) = 0x00020000; *((int *)&__m256_op1[0]) = 0x00010000; *((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_xvfcvt_h_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_xvfcvt_h_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]) = 0xffffffff; *((int *)&__m256_op0[4]) = 0xffffffff; *((int *)&__m256_op0[3]) = 0x00000000; *((int *)&__m256_op0[2]) = 0x00000000; *((int *)&__m256_op0[1]) = 0xffffffff; *((int *)&__m256_op0[0]) = 0xffffffff; *((int *)&__m256_op1[7]) = 0x71717171; *((int *)&__m256_op1[6]) = 0x71010101; *((int *)&__m256_op1[5]) = 0x8e8e8e8e; *((int *)&__m256_op1[4]) = 0x8f00ffff; *((int *)&__m256_op1[3]) = 0x71717171; *((int *)&__m256_op1[2]) = 0x71010101; *((int *)&__m256_op1[1]) = 0x8e8e8e8e; *((int *)&__m256_op1[0]) = 0x8f00ffff; *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; *((unsigned long *)&__m256i_result[2]) = 0x7c007c0080008000; *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; *((unsigned long *)&__m256i_result[0]) = 0x7c007c0080008000; __m256i_out = __lasx_xvfcvt_h_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]) = 0xfff10000; *((int *)&__m256_op0[4]) = 0xfff10000; *((int *)&__m256_op0[3]) = 0x00000000; *((int *)&__m256_op0[2]) = 0x00000000; *((int *)&__m256_op0[1]) = 0xfff10000; *((int *)&__m256_op0[0]) = 0xfff10000; *((int *)&__m256_op1[7]) = 0x00000000; *((int *)&__m256_op1[6]) = 0x00000000; *((int *)&__m256_op1[5]) = 0xfff10000; *((int *)&__m256_op1[4]) = 0xfff10000; *((int *)&__m256_op1[3]) = 0x00000000; *((int *)&__m256_op1[2]) = 0x00000000; *((int *)&__m256_op1[1]) = 0xfff10000; *((int *)&__m256_op1[0]) = 0xfff10000; *((unsigned long *)&__m256i_result[3]) = 0x00000000ff88ff88; *((unsigned long *)&__m256i_result[2]) = 0x00000000ff88ff88; *((unsigned long *)&__m256i_result[1]) = 0x00000000ff88ff88; *((unsigned long *)&__m256i_result[0]) = 0x00000000ff88ff88; __m256i_out = __lasx_xvfcvt_h_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]) = 0x00040000; *((int *)&__m256_op0[3]) = 0x00000000; *((int *)&__m256_op0[2]) = 0x00000000; *((int *)&__m256_op0[1]) = 0x00000000; *((int *)&__m256_op0[0]) = 0x00040000; *((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_xvfcvt_h_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((int *)&__m256_op0[7]) = 0xff00ff00; *((int *)&__m256_op0[6]) = 0x3f003f00; *((int *)&__m256_op0[5]) = 0xff0101fd; *((int *)&__m256_op0[4]) = 0x00010100; *((int *)&__m256_op0[3]) = 0xff00ff00; *((int *)&__m256_op0[2]) = 0x3f003f00; *((int *)&__m256_op0[1]) = 0xff0101fd; *((int *)&__m256_op0[0]) = 0x00010100; *((int *)&__m256_op1[7]) = 0x01ffff43; *((int *)&__m256_op1[6]) = 0x00fffeff; *((int *)&__m256_op1[5]) = 0xfe0000bc; *((int *)&__m256_op1[4]) = 0xff000100; *((int *)&__m256_op1[3]) = 0x01ffff43; *((int *)&__m256_op1[2]) = 0x00fffeff; *((int *)&__m256_op1[1]) = 0xfe0000bc; *((int *)&__m256_op1[0]) = 0xff000100; *((unsigned long *)&__m256i_result[3]) = 0xfc003802fc000000; *((unsigned long *)&__m256i_result[2]) = 0x00000000fc00fc00; *((unsigned long *)&__m256i_result[1]) = 0xfc003802fc000000; *((unsigned long *)&__m256i_result[0]) = 0x00000000fc00fc00; __m256i_out = __lasx_xvfcvt_h_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_xvfcvt_h_s (__m256_op0, __m256_op1); ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[2]) = 0x0cc08723ff900001; *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; *((unsigned long *)&__m256d_op0[0]) = 0xcc9b89f2f6cef440; *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; *((unsigned long *)&__m256d_op1[2]) = 0xffffffff00000000; *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; *((unsigned long *)&__m256d_op1[0]) = 0xffffffff00000000; *((int *)&__m256_result[7]) = 0x00000000; *((int *)&__m256_result[6]) = 0x00000000; *((int *)&__m256_result[5]) = 0xffffffff; *((int *)&__m256_result[4]) = 0xfffffff8; *((int *)&__m256_result[3]) = 0xffffffff; *((int *)&__m256_result[2]) = 0xff800000; *((int *)&__m256_result[1]) = 0xffffffff; *((int *)&__m256_result[0]) = 0xfffffff8; __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff0000ffff; *((unsigned long *)&__m256d_op0[2]) = 0x0000ffff0000ffff; *((unsigned long *)&__m256d_op0[1]) = 0x0000ffff0000ffff; *((unsigned long *)&__m256d_op0[0]) = 0x0000ffff0000ffff; *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; *((int *)&__m256_result[7]) = 0x00000000; *((int *)&__m256_result[6]) = 0x00000000; *((int *)&__m256_result[5]) = 0x00000000; *((int *)&__m256_result[4]) = 0x00000000; *((int *)&__m256_result[3]) = 0x00000000; *((int *)&__m256_result[2]) = 0x00000000; *((int *)&__m256_result[1]) = 0x00000000; *((int *)&__m256_result[0]) = 0x00000000; __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); ASSERTEQ_32 (__LINE__, __m256_result, __m256_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]) = 0xffffffffffffffff; *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; *((int *)&__m256_result[7]) = 0x00000000; *((int *)&__m256_result[6]) = 0x00000000; *((int *)&__m256_result[5]) = 0xffffffff; *((int *)&__m256_result[4]) = 0xffffffff; *((int *)&__m256_result[3]) = 0x00000000; *((int *)&__m256_result[2]) = 0x00000000; *((int *)&__m256_result[1]) = 0xffffffff; *((int *)&__m256_result[0]) = 0xffffffff; __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); *((unsigned long *)&__m256d_op0[3]) = 0xdbc8000000003fff; *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[1]) = 0xdbc8000000003fff; *((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; *((int *)&__m256_result[7]) = 0xff800000; *((int *)&__m256_result[6]) = 0x00000000; *((int *)&__m256_result[5]) = 0x00000000; *((int *)&__m256_result[4]) = 0x00000000; *((int *)&__m256_result[3]) = 0xff800000; *((int *)&__m256_result[2]) = 0x00000000; *((int *)&__m256_result[1]) = 0x00000000; *((int *)&__m256_result[0]) = 0x00000000; __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); ASSERTEQ_32 (__LINE__, __m256_result, __m256_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]) = 0xff800000ff800000; *((unsigned long *)&__m256d_op1[2]) = 0xff800000ff800000; *((unsigned long *)&__m256d_op1[1]) = 0xff800000ff800000; *((unsigned long *)&__m256d_op1[0]) = 0xff800000ff800000; *((int *)&__m256_result[7]) = 0x00000000; *((int *)&__m256_result[6]) = 0x00000000; *((int *)&__m256_result[5]) = 0xff800000; *((int *)&__m256_result[4]) = 0xff800000; *((int *)&__m256_result[3]) = 0x00000000; *((int *)&__m256_result[2]) = 0x00000000; *((int *)&__m256_result[1]) = 0xff800000; *((int *)&__m256_result[0]) = 0xff800000; __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff0000ffff; *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; *((unsigned long *)&__m256d_op0[1]) = 0x0000ffff0000ffff; *((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; *((int *)&__m256_result[7]) = 0x00000000; *((int *)&__m256_result[6]) = 0x00000000; *((int *)&__m256_result[5]) = 0x00000000; *((int *)&__m256_result[4]) = 0x00000000; *((int *)&__m256_result[3]) = 0x00000000; *((int *)&__m256_result[2]) = 0x00000000; *((int *)&__m256_result[1]) = 0x00000000; *((int *)&__m256_result[0]) = 0x00000000; __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); ASSERTEQ_32 (__LINE__, __m256_result, __m256_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]) = 0xf7f8f7f8f800f800; *((unsigned long *)&__m256d_op1[2]) = 0x00003f784000ff80; *((unsigned long *)&__m256d_op1[1]) = 0xf7f8f7f84000fff9; *((unsigned long *)&__m256d_op1[0]) = 0x00003f784000ff80; *((int *)&__m256_result[7]) = 0x00000000; *((int *)&__m256_result[6]) = 0x00000000; *((int *)&__m256_result[5]) = 0xff800000; *((int *)&__m256_result[4]) = 0x00000000; *((int *)&__m256_result[3]) = 0x00000000; *((int *)&__m256_result[2]) = 0x00000000; *((int *)&__m256_result[1]) = 0xff800000; *((int *)&__m256_result[0]) = 0x00000000; __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); *((unsigned long *)&__m256d_op0[3]) = 0x0000555500005555; *((unsigned long *)&__m256d_op0[2]) = 0x0000555500005555; *((unsigned long *)&__m256d_op0[1]) = 0x0000555500005555; *((unsigned long *)&__m256d_op0[0]) = 0x0000555500005555; *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; *((int *)&__m256_result[7]) = 0x00000000; *((int *)&__m256_result[6]) = 0x00000000; *((int *)&__m256_result[5]) = 0x00000000; *((int *)&__m256_result[4]) = 0x00000000; *((int *)&__m256_result[3]) = 0x00000000; *((int *)&__m256_result[2]) = 0x00000000; *((int *)&__m256_result[1]) = 0x00000000; *((int *)&__m256_result[0]) = 0x00000000; __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); ASSERTEQ_32 (__LINE__, __m256_result, __m256_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]) = 0xffffffffb6804cb9; *((unsigned long *)&__m256d_op1[2]) = 0xffffffffb7bbdec0; *((unsigned long *)&__m256d_op1[1]) = 0xffffffffb680489b; *((unsigned long *)&__m256d_op1[0]) = 0xffffffffb7bc02a0; *((int *)&__m256_result[7]) = 0x00000000; *((int *)&__m256_result[6]) = 0x00000000; *((int *)&__m256_result[5]) = 0xfffffffd; *((int *)&__m256_result[4]) = 0xfffffffd; *((int *)&__m256_result[3]) = 0x00000000; *((int *)&__m256_result[2]) = 0x00000000; *((int *)&__m256_result[1]) = 0xfffffffd; *((int *)&__m256_result[0]) = 0xfffffffd; __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); ASSERTEQ_32 (__LINE__, __m256_result, __m256_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]) = 0x0101010202020203; *((unsigned long *)&__m256d_op1[2]) = 0x0101010201010102; *((unsigned long *)&__m256d_op1[1]) = 0x0101010202020203; *((unsigned long *)&__m256d_op1[0]) = 0x0101010201010102; *((int *)&__m256_result[7]) = 0x00000000; *((int *)&__m256_result[6]) = 0x00000000; *((int *)&__m256_result[5]) = 0x00000000; *((int *)&__m256_result[4]) = 0x00000000; *((int *)&__m256_result[3]) = 0x00000000; *((int *)&__m256_result[2]) = 0x00000000; *((int *)&__m256_result[1]) = 0x00000000; *((int *)&__m256_result[0]) = 0x00000000; __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); ASSERTEQ_32 (__LINE__, __m256_result, __m256_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]) = 0x3fff3fff3fff3fff; *((unsigned long *)&__m256d_op1[2]) = 0x3fff3fff3fff3fc4; *((unsigned long *)&__m256d_op1[1]) = 0x3fff3fff3fff3fff; *((unsigned long *)&__m256d_op1[0]) = 0x3fff3fff3fff3fc4; *((int *)&__m256_result[7]) = 0x00000000; *((int *)&__m256_result[6]) = 0x00000000; *((int *)&__m256_result[5]) = 0x3ff9fffa; *((int *)&__m256_result[4]) = 0x3ff9fffa; *((int *)&__m256_result[3]) = 0x00000000; *((int *)&__m256_result[2]) = 0x00000000; *((int *)&__m256_result[1]) = 0x3ff9fffa; *((int *)&__m256_result[0]) = 0x3ff9fffa; __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); return 0; }