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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [alpha/] [max-1.c] - Rev 414

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

/* Test that the MAX isa builtins compile.  */
/* { dg-do link } */
/* { dg-options "-mcpu=pca56" } */
 
void test_MAX (long x, long y)
{
  volatile long sink;
 
  sink = __builtin_alpha_pklb (x);
  sink = __builtin_alpha_pkwb (x);
  sink = __builtin_alpha_unpkbl (x);
  sink = __builtin_alpha_unpkbw (x);
 
  sink = __builtin_alpha_minub8 (0, x);
  sink = __builtin_alpha_minub8 (1, x);
  sink = __builtin_alpha_minub8 (x, y);
  sink = __builtin_alpha_minsb8 (x, y);
  sink = __builtin_alpha_minuw4 (x, y);
  sink = __builtin_alpha_minsw4 (x, y);
  sink = __builtin_alpha_maxub8 (x, y);
  sink = __builtin_alpha_maxsb8 (x, y);
  sink = __builtin_alpha_maxuw4 (x, y);
  sink = __builtin_alpha_maxsw4 (x, y);
  sink = __builtin_alpha_perr (x, y);
}
 
int main() { 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.