| 1 |
/* { dg-do compile { target { aarch64-*-* } } } */ |
| 2 |
/* { dg-additional-options "-w -O3 -march=armv8.3-a -fdump-tree-slp-all" } */ |
| 3 |
|
| 4 |
class a { |
| 5 |
float b; |
| 6 |
float c; |
| 7 |
|
| 8 |
public: |
| 9 |
a(float d, float e) : b(d), c(e) {} |
| 10 |
a operator+(a d) { return a(b + d.b, c + d.c); } |
| 11 |
a operator*(a d) { return a(b * b - c * c, b * c + c * d.b); } |
| 12 |
}; |
| 13 |
int f, g; |
| 14 |
class mp { |
| 15 |
a *h; |
| 16 |
a *i; |
| 17 |
|
| 18 |
public: |
| 19 |
void j() { |
| 20 |
a k = h[0], l = i[g], m = k * i[f]; |
| 21 |
i[g] = l + m; |
| 22 |
i[f] = m; |
| 23 |
} |
| 24 |
} n; |
| 25 |
main() { n.j(); } |
| 26 |
|
| 27 |
/* { dg-final { scan-tree-dump-times "stmt.*COMPLEX_MUL" 1 "slp2" { xfail { vect_float } } } } */ |