Corrected date in changelog
[official-gcc.git] / gcc / testsuite / gcc.dg / pr70317.c
blob3a9c52e7ac46573ad89e9eaaa247159eea9bc411
1 /* PR tree-optimization/70317 */
2 /* { dg-do compile } */
3 /* { dg-skip-if "No NaN support" { spu*-*-* vax*-*-* pdp11*-*-* } } */
4 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
7 typedef double V __attribute__((vector_size (256)));
8 typedef __typeof ((V) {} < (V) {}) T;
9 T a, b;
11 __attribute__((noinline, noclone, optimize ("finite-math-only"))) void
12 foo (V *x)
14 V z = *x;
15 a = z <= z;
18 /* { dg-final { scan-tree-dump "a\[^\n\r]*= . -1, -1," "optimized" } } */
20 __attribute__((noinline, noclone, optimize ("no-finite-math-only"))) void
21 bar (V *x)
23 V z = *x;
24 b = z <= z;
27 /* { dg-final { scan-tree-dump-not "b\[^\n\r]*= . -1, -1," "optimized" } } */