mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-28 11:30:19 +00:00
17 lines
302 B
C
17 lines
302 B
C
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
|
|
/* { dg-options "-fdump-tree-original" } */
|
|
|
|
void foo (int *p, int x)
|
|
{
|
|
if ((x & 0xff) <= 7)
|
|
*p = 0;
|
|
}
|
|
|
|
void bar (int *p, int x)
|
|
{
|
|
if ((x & 0xff) < 8)
|
|
*p = 0;
|
|
}
|
|
|
|
/* { dg-final { scan-tree-dump-times "(x & .*) == 0" 2 "original" } } */
|