gcc/testsuite/gcc.target/i386/avx-loadu2-m128-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mavx" } */ |
| 3 | /* { dg-require-effective-target avx } */ |
| 4 | |
| 5 | #include "avx-check.h" |
| 6 | |
| 7 | static void |
| 8 | avx_test (void) |
| 9 | { |
| 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 }; |
| 13 | |
| 14 | u.x = _mm256_loadu2_m128 (e + 1, e + 3); |
| 15 | if (check_union256 (u, f)) |
| 16 | abort (); |
| 17 | } |