aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr55448.c
blob: 874a5077f3b31f50716effe409273ec806d10654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { dg-do compile } */
/* { dg-options "-O2 -mavx" } */

#include <immintrin.h>

static inline __m256 add1(const __m256 *a, const __m256 *b)
{
  return _mm256_add_ps(*a, *b);
}

void foo1(__m256 *a, const __m256 b)
{
  *a = add1(a, &b);
}

static inline __m128 add2(const __m128 *a, const __m128 *b)
{
  return _mm_add_ps(*a, *b);
}

void foo2(__m128 *a, const __m128 b)
{
  *a = add2(a, &b);
}

/* { dg-final { scan-assembler-not "vmovups" } } */