From 64124cef627f50cb0b6660495dae1e54a20e2257 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 24 May 2019 12:15:16 +0200 Subject: [PATCH] re PR tree-optimization/90106 (builtin sqrt() ignoring libm's sqrt call result) PR tree-optimization/90106 PR testsuite/90517 * gcc.dg/cdce1.c: Don't scan-assembler, instead -fdump-tree-optimized and scan-tree-dump for tail call. * gcc.dg/cdce2.c: Likewise. From-SVN: r271598 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/gcc.dg/cdce1.c | 8 ++++---- gcc/testsuite/gcc.dg/cdce2.c | 8 ++++---- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f91a45c8797..13679af015a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2019-05-24 Jakub Jelinek + + PR tree-optimization/90106 + PR testsuite/90517 + * gcc.dg/cdce1.c: Don't scan-assembler, instead -fdump-tree-optimized + and scan-tree-dump for tail call. + * gcc.dg/cdce2.c: Likewise. + 2019-05-24 Iain Sandoe * gcc.target/i386/pconfig-1.c: Scan for the string in the generated diff --git a/gcc/testsuite/gcc.dg/cdce1.c b/gcc/testsuite/gcc.dg/cdce1.c index 424d80fcdec..e7d2ca7403a 100644 --- a/gcc/testsuite/gcc.dg/cdce1.c +++ b/gcc/testsuite/gcc.dg/cdce1.c @@ -1,9 +1,9 @@ -/* { dg-do run } */ -/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -lm" } */ +/* { dg-do run } */ +/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -fdump-tree-optimized -lm" } */ /* { dg-require-effective-target int32plus } */ -/* { dg-final { scan-tree-dump "cdce1.c:17: .* function call is shrink-wrapped into error conditions\." "cdce" } } */ -/* { dg-final { scan-assembler "jmp pow" } } */ /* { dg-require-effective-target large_double } */ +/* { dg-final { scan-tree-dump "cdce1.c:17: \[^\n\r]* function call is shrink-wrapped into error conditions\." "cdce" } } */ +/* { dg-final { scan-tree-dump "pow \\(\[^\n\r]*\\); \\\[tail call\\\]" "optimized" } } */ #include #include diff --git a/gcc/testsuite/gcc.dg/cdce2.c b/gcc/testsuite/gcc.dg/cdce2.c index 2af2893549d..7924973c09c 100644 --- a/gcc/testsuite/gcc.dg/cdce2.c +++ b/gcc/testsuite/gcc.dg/cdce2.c @@ -1,8 +1,8 @@ -/* { dg-do run } */ +/* { dg-do run } */ /* { dg-skip-if "doubles are floats" { "avr-*-*" } } */ -/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -lm" } */ -/* { dg-final { scan-tree-dump "cdce2.c:16: .* function call is shrink-wrapped into error conditions\." "cdce" } } */ -/* { dg-final { scan-assembler "jmp log" } } */ +/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -fdump-tree-optimized -lm" } */ +/* { dg-final { scan-tree-dump "cdce2.c:16: \[^\n\r]* function call is shrink-wrapped into error conditions\." "cdce" } } */ +/* { dg-final { scan-tree-dump "log \\(\[^\n\r]*\\); \\\[tail call\\\]" "optimized" } } */ #include #include -- 2.30.2