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

Subversion Repositories openrisc

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

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

/* { dg-do compile } */
/* { dg-options "-mcpu=ultrasparc -mvis" } */
 
long test_array8 (long a, long b)
{
  return __builtin_vis_array8 (a, b);
}
 
long test_array16 (long a, long b)
{
  return __builtin_vis_array16 (a, b);
}
 
long test_array32 (long a, long b)
{
  return __builtin_vis_array32 (a, b);
}
 
/* { dg-final { scan-assembler "array8\t%" } } */
/* { dg-final { scan-assembler "array16\t%" } } */
/* { dg-final { scan-assembler "array32\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.