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] - Blame information for rev 764

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-mvis3" } */
3
typedef long long int64_t;
4
 
5
int64_t test_umulxhi (int64_t x, int64_t y)
6
{
7
  return __builtin_vis_umulxhi (x, y);
8
}
9
 
10
int64_t test_xmulx (int64_t x, int64_t y)
11
{
12
  return __builtin_vis_xmulx (x, y);
13
}
14
 
15
int64_t test_xmulxhi (int64_t x, int64_t y)
16
{
17
  return __builtin_vis_xmulxhi (x, y);
18
}
19
 
20
/* { dg-final { scan-assembler "umulxhi\t%" } } */
21
/* { dg-final { scan-assembler "xmulx\t%" } } */
22
/* { dg-final { scan-assembler "xmulxhi\t%" } } */

powered by: WebSVN 2.1.0

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