libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / run-id-pr114041-1.c
blob1ffdd746e52eddef22eb93adb2fdc3b96ef045ed
1 /* PR tree-optimization/114041 */
2 /* { dg-require-effective-target bitint } */
3 /* { dg-options "-O -fgraphite-identity" } */
5 unsigned a[24], b[24];
7 __attribute__((noipa)) unsigned
8 foo (unsigned _BitInt(8) x)
10 for (int i = 0; i < 24; ++i)
11 a[i] = i;
12 unsigned e = __builtin_stdc_bit_ceil (x);
13 for (int i = 0; i < 24; ++i)
14 b[i] = i;
15 return e;
18 int
19 main ()
21 if (foo (0) != 1)
22 __builtin_abort ();