re PR tree-optimization/90106 (builtin sqrt() ignoring libm's sqrt call result)
authorJakub Jelinek <jakub@redhat.com>
Fri, 24 May 2019 10:15:16 +0000 (12:15 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 24 May 2019 10:15:16 +0000 (12:15 +0200)
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
gcc/testsuite/gcc.dg/cdce1.c
gcc/testsuite/gcc.dg/cdce2.c

index f91a45c879743dfdffad853862cc4ac2139776b3..13679af015a43ea249885fc329d1f5894bd211d8 100644 (file)
@@ -1,3 +1,11 @@
+2019-05-24  Jakub Jelinek  <jakub@redhat.com>
+
+       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  <iain@sandoe.co.uk>
 
        * gcc.target/i386/pconfig-1.c: Scan for the string in the generated
index 424d80fcdec34ff75439facd4bfa7a9f6f93d5bc..e7d2ca7403a493026d795d8d97b4a7081d008ba0 100644 (file)
@@ -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 <stdlib.h>
 #include <math.h>
index 2af2893549d17ac63bd5bfcf52a237974174eda6..7924973c09c3cae11195f18618a1299a4d982ed0 100644 (file)
@@ -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 <stdlib.h>
 #include <math.h>