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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [multdi-1.c] - Rev 849

Go to most recent revision | Compare with Previous | Blame | View Log

/* PR target/9348 */
 
#define u_l_l unsigned long long
#define l_l long long
 
l_l mpy_res;
 
u_l_l mpy (long a, long b)
{
  return (u_l_l) a * (u_l_l) b;
}
 
int main(void)
{
  mpy_res = mpy(1,-1);
  if (mpy_res != -1LL)
    abort ();
  return 0;
}
 
 

Go to most recent revision | 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.