blob: 9c29234b7c7f727eb81992680878306490a765a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* PR tree-optimization/78726 */
unsigned char b = 36, c = 173;
unsigned int d;
__attribute__((noinline, noclone)) void
foo (void)
{
unsigned a = ~b;
d = a * c * c + 1023094746U * a;
}
int
main ()
{
if (__SIZEOF_INT__ != 4 || __CHAR_BIT__ != 8)
return 0;
asm volatile ("" : : "g" (&b), "g" (&c) : "memory");
foo ();
if (d != 799092689U)
__builtin_abort ();
return 0;
}
|