1 /* PR tree-optimization/21643 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-reassoc1-details" } */
4 /* { dg-additional-options "-mbranch-cost=2" { target branch_cost } } */
9 if (c
== 0x22 || c
== 0x20 || c
< 0x20)
17 if (c
== 0x22 || c
<= 0x20)
37 if (c
== 0x22 || c
== 0x20 || c
< 0x20)
45 if (c
== 0x22 || c
<= 0x20)
65 if (c
!= 0x22 && c
!= 0x20 && c
>= 0x20)
73 if (c
== 0x22 && c
<= 0x20)
90 /* { 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 } } } } */
91 /* { 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 } } } */