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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [xmul.c] - Rev 749

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

/* { dg-do compile } */
/* { dg-options "-mvis3" } */
typedef long long int64_t;
 
int64_t test_umulxhi (int64_t x, int64_t y)
{
  return __builtin_vis_umulxhi (x, y);
}
 
int64_t test_xmulx (int64_t x, int64_t y)
{
  return __builtin_vis_xmulx (x, y);
}
 
int64_t test_xmulxhi (int64_t x, int64_t y)
{
  return __builtin_vis_xmulxhi (x, y);
}
 
/* { dg-final { scan-assembler "umulxhi\t%" } } */
/* { dg-final { scan-assembler "xmulx\t%" } } */
/* { dg-final { scan-assembler "xmulxhi\t%" } } */
 

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.