summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/intrinsics_opt-1.c
blob: a75bf4e9ca46927aca310fbf5d4b8d4231fb71b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2 -mfma" } */

#include <emmintrin.h>

__m128d myfma(__m128d x, __m128d y, __m128d z){
  __m128d m = _mm_mul_pd (x, y);
  return _mm_add_pd (m, z);
}

/* { dg-final { scan-assembler "vfmadd" } } */