PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr55448.c
blob874a5077f3b31f50716effe409273ec806d10654
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx" } */
4 #include <immintrin.h>
6 static inline __m256 add1(const __m256 *a, const __m256 *b)
8 return _mm256_add_ps(*a, *b);
11 void foo1(__m256 *a, const __m256 b)
13 *a = add1(a, &b);
16 static inline __m128 add2(const __m128 *a, const __m128 *b)
18 return _mm_add_ps(*a, *b);
21 void foo2(__m128 *a, const __m128 b)
23 *a = add2(a, &b);
26 /* { dg-final { scan-assembler-not "vmovups" } } */