re PR target/91341 (Missing AVX Intrinsics: load/store u2)
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx-loadu2-m128-2.c
blobb962c2c45eddb484660602a573ec304e6288c02d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx" } */
3 /* { dg-require-effective-target avx } */
5 #include "avx-check.h"
7 static void
8 avx_test (void)
10 union256 u;
11 float e[8] = { 1.5f, -9.5f, 13.25f, -24.75f, -18.75f, 12.0f, 0.0f, 9.0f };
12 float f[8] = { -24.75f, -18.75f, 12.0f, 0.0f, -9.5f, 13.25f, -24.75f, -18.75f };
14 u.x = _mm256_loadu2_m128 (e + 1, e + 3);
15 if (check_union256 (u, f))
16 abort ();