]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr83424.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr83424.c
CommitLineData
aa8ec7fb
SB
1/* PR rtl-optimization/83424 */
2/* { dg-do run { target int128 } } */
3/* { dg-options "-O -fno-tree-ccp -fno-tree-coalesce-vars" } */
4
5typedef unsigned char u8;
6typedef unsigned int u32;
7typedef unsigned __int128 u128;
8
9u32 a, c;
10u8 b;
11
12static u128 __attribute__ ((noinline, noclone))
13foo (u128 p)
14{
15 u8 x = ~b;
16 p &= c;
17 x *= -p;
18 x &= a == 0;
19 x >>= 1;
20 return p + x;
21}
22
23int
24main (void)
25{
26 u128 x = foo (0);
27 if (x != 0)
28 __builtin_abort ();
29 return 0;
30}