blob: 503e6c238bacccb23f82d08931ff3fadbbac2ec0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* PR target/49504 */
/* { dg-do run { target { x32 } } } */
/* { dg-options "-O" } */
unsigned long long
foo (const void* p, unsigned long long q)
{
unsigned long long a = (((unsigned long long) ((unsigned long) p)) + q) >> 32;
return a;
}
int
main ()
{
if (foo (foo, 0x100000000ULL) != 0x1)
__builtin_abort ();
return 0;
}
|