diff mbox series

Fix PR tree-optimization/81184

Message ID 2276127.A0PPYHmpHS@polaris
State New
Headers show
Series Fix PR tree-optimization/81184 | expand

Commit Message

Eric Botcazou Jan. 17, 2018, 10:37 a.m. UTC
Hi,

as suggested by Jakub in the audit trail, this simply adjusts the dg-final 
line according to whether it's for a logical_op_short_circuit target or not.

Tested on visium-elf and x86_64-suse-linux, OK for the mainline?


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.

Comments

Richard Biener Jan. 17, 2018, 10:47 a.m. UTC | #1
On Wed, Jan 17, 2018 at 11:37 AM, Eric Botcazou <ebotcazou@adacore.com> wrote:
> Hi,
>
> as suggested by Jakub in the audit trail, this simply adjusts the dg-final
> line according to whether it's for a logical_op_short_circuit target or not.
>
> Tested on visium-elf and x86_64-suse-linux, OK for the mainline?

Ok.

Richard.

>
> 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.
>
> --
> Eric Botcazou
diff mbox series

Patch

Index: gcc.dg/pr21643.c
===================================================================
--- gcc.dg/pr21643.c	(revision 256776)
+++ gcc.dg/pr21643.c	(working copy)
@@ -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: gcc.dg/tree-ssa/phi-opt-11.c
===================================================================
--- gcc.dg/tree-ssa/phi-opt-11.c	(revision 256776)
+++ gcc.dg/tree-ssa/phi-opt-11.c	(working copy)
@@ -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 } } } */