1 /* Test that the compiler properly optimizes floating point multiply and add
2 instructions vector into pmacsdd/etc. on SSE5 systems. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target lp64 } */
6 /* { dg-options "-O2 -msse5 -ftree-vectorize" } */
8 extern void exit (int);
10 typedef long __m128i __attribute__ ((__vector_size__ (16), __may_alias__));
24 for (i = 0; i < SIZE; i++)
25 a.i64[i] = b.i64[i] * c.i64[i];
34 /* { dg-final { scan-assembler "pmacsdd" } } */
35 /* { dg-final { scan-assembler "phadddq" } } */
36 /* { dg-final { scan-assembler "pmacsdql" } } */