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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [tic6x/] [builtins/] [smpy.c] - Rev 691

Compare with Previous | Blame | View Log

#include <c6x_intrinsics.h>
 
extern void abort (void);
 
int a1 = 0x5000;
int b1 = 0xc000;
int a2 = 0xd000;
int b2 = 0x2000;
int c = 0x8000;
int main ()
{
  if (_smpy (a1, b1) != 0xd8000000)
    abort ();
  if (_smpy (a2, b2) != 0xf4000000)
    abort ();
  if (_smpy (c, c) != 0x7fffffff)
    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.