| 1 |
/* PR target/116979 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-O2 -mfma -fvect-cost-model=unlimited" } */ |
| 4 |
/* { dg-final { scan-assembler "vfmaddsub(?:132|213|231)pd" } } */ |
| 5 |
/* { dg-final { scan-assembler "vfmaddsub(?:132|213|231)ps" { target { ! ia32 } } } } */ |
| 6 |
|
| 7 |
struct S { __complex__ float f; }; |
| 8 |
struct T { __complex__ double f; }; |
| 9 |
|
| 10 |
struct S |
| 11 |
foo (const struct S *a, const struct S *b) |
| 12 |
{ |
| 13 |
struct S r; |
| 14 |
r.f = a->f * b->f; |
| 15 |
return r; |
| 16 |
} |
| 17 |
|
| 18 |
struct T |
| 19 |
bar (const struct T *a, const struct T *b) |
| 20 |
{ |
| 21 |
struct T r; |
| 22 |
r.f = a->f * b->f; |
| 23 |
return r; |
| 24 |
} |