aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitint-95.c
blob: 9794652ed13d221379284f5956b542a6f1bd053d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* PR rtl-optimization/114044 */
/* { dg-do compile { target bitint575 } } */
/* { dg-options "-O -fno-tree-dce" } */

void
foo (void)
{
  unsigned _BitInt (575) a = 3;
  __builtin_clzg (a);
}

void
bar (void)
{
  unsigned _BitInt (575) a = 3;
  __builtin_ctzg (a);
}

void
baz (void)
{
  signed _BitInt (575) a = 3;
  __builtin_clrsbg (a);
}

void
qux (void)
{
  signed _BitInt (575) a = 3;
  __builtin_ffsg (a);
}

void
garply (void)
{
  unsigned _BitInt (575) a = 3;
  __builtin_parityg (a);
}

void
corge (void)
{
  unsigned _BitInt (575) a = 3;
  __builtin_popcountg (a);
}