OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr49504.c] - Rev 691

Compare with Previous | Blame | View Log

/* 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;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.