blob: 5e35f19882dc93ca474103ed1b287ce6867e5c86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* { dg-do run } */
int x = 1;
__attribute__((noinline, noclone)) void
foo (unsigned long long t)
{
asm volatile ("" : : "r" (&t));
if (t == 1)
__builtin_abort ();
}
int
main ()
{
#if __SIZEOF_LONG_LONG__ >= 8
unsigned long long t = 0xffffffffffffffffULL * (0xffffffffUL * x);
if (t != 0xffffffff00000001ULL)
foo (t);;
#endif
return 0;
}
|