Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr70317.c
blob585212d1fc0180d76814bf599fa3926004ac4b86
1 /* PR tree-optimization/70317 */
2 /* { dg-do compile } */
3 /* { dg-skip-if "No NaN support" { 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" } } */