re PR tree-optimization/81184 (gcc.dg/pr21643.c and gcc.dg/tree-ssa/phi-opt-11.c...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 17 Jan 2018 11:03:00 +0000 (11:03 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 17 Jan 2018 11:03:00 +0000 (11:03 +0000)
PR tree-optimization/81184
* gcc.dg/pr21643.c: Adjust dg-final line for logical_op_short_circuit
targets.
* gcc.dg/tree-ssa/phi-opt-11.c: Likewise.

From-SVN: r256780

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr21643.c
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-11.c

index 5401be1cbde704f901b898b4b4816f151f95165c..448b44a9caa9ad591070037b7818b511ce5c2714 100644 (file)
@@ -1,4 +1,11 @@
-2018-01-16  Eric Botcazou  <ebotcazou@adacore.com>
+2018-01-17  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR tree-optimization/81184
+       * gcc.dg/pr21643.c: Adjust dg-final line for logical_op_short_circuit
+       targets.
+       * gcc.dg/tree-ssa/phi-opt-11.c: Likewise.
+
+2018-01-17  Eric Botcazou  <ebotcazou@adacore.com>
 
        * c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
 
index d981fbc8b3bccc7a79a6e4df103f5bf6d3d8db25..8a721650aa3c565d3a997f78812dd0cdae725dd5 100644 (file)
@@ -87,4 +87,5 @@ f9 (unsigned char c)
   return 1;
 }
 
-/* { dg-final { scan-tree-dump-times "Optimizing range tests c_\[0-9\]*.D. -.0, 31. and -.32, 32.\[\n\r\]* into" 6 "reassoc1" } } */
+/* { dg-final { scan-tree-dump-times "Optimizing range tests c_\[0-9\]*.D. -.0, 31. and -.32, 32.\[\n\r\]* into" 6 "reassoc1" { target { ! logical_op_short_circuit } } } }  */
+/* { dg-final { scan-tree-dump-times "Optimizing range tests c_\[0-9\]*.D. -.0, 31. and -.32, 32.\[\n\r\]* into" 5 "reassoc1" { target logical_op_short_circuit } } } */
index 20728fcacc5f303865a21798d833781ba4701242..1d06be0e19efb302d1377ac11ed4edd871f50d8a 100644 (file)
@@ -22,4 +22,6 @@ int h(int a, int b, int c, int d)
    return d;
  return a;
 }
-/* { dg-final { scan-tree-dump-times "if" 0 "optimized"} } */
+
+/* { dg-final { scan-tree-dump-times "if" 0 "optimized" { target { ! logical_op_short_circuit } } } } */
+/* { dg-final { scan-tree-dump-times "if" 2 "optimized" { target logical_op_short_circuit } } } */