[Bug tree-optimization/98544] [11 regression] Wrong code generated by tree vectorizer since r11-3917-g28290cb50c7dbf87
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 8 12:20:22 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98544
--- Comment #19 from Martin Liška <marxin at gcc dot gnu.org> ---
> err
>
> /* { dg-do run } */
>
> double a[2], b[2], c[2], d[2];
>
> void __attribute__((noipa))
> foo()
> {
> double a0 = a[0];
> double a1 = a[1];
> double b0 = b[0];
> double b1 = b[1];
> double c0 = c[0];
> double c1 = c[1];
> double tem1 = a1 - b1;
> double tem2 = a0 + b0;
> d[0] = tem1 * c1;
> d[1] = tem2 * c0;
> }
>
> int main()
> {
> a[0] = 1.;
> a[1] = 2.;
> b[0] = 3.;
> b[1] = 4.;
> c[0] = 2.;
> c[1] = 3.;
> foo ();
> if (d[0] != -6. || d[1] != 8.)
> __builtin_abort ();
> return 0;
> }
This started to fail with -O3 since r11-3823-g126ed72b9f48f853 if it helps.
More information about the Gcc-bugs
mailing list