gcc/testsuite/gcc.dg/vect/bb-slp-pr101207.c
raw| 1 | /* { dg-additional-options "-ffast-math" } */ |
| 2 | |
| 3 | #include "tree-vect.h" |
| 4 | |
| 5 | double a[2]; |
| 6 | double x, y; |
| 7 | |
| 8 | void __attribute__((noipa)) foo () |
| 9 | { |
| 10 | x = a[1] - a[0]; |
| 11 | y = a[0] + a[1]; |
| 12 | } |
| 13 | |
| 14 | int main() |
| 15 | { |
| 16 | check_vect (); |
| 17 | |
| 18 | a[0] = 0.; |
| 19 | a[1] = 1.; |
| 20 | foo (); |
| 21 | if (x != 1. || y != 1.) |
| 22 | __builtin_abort (); |
| 23 | return 0; |
| 24 | } |