OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [alpha/] [max-1.c] - Blame information for rev 312

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 312 jeremybenn
/* Test that the MAX isa builtins compile.  */
2
/* { dg-do link } */
3
/* { dg-options "-mcpu=pca56" } */
4
 
5
void test_MAX (long x, long y)
6
{
7
  volatile long sink;
8
 
9
  sink = __builtin_alpha_pklb (x);
10
  sink = __builtin_alpha_pkwb (x);
11
  sink = __builtin_alpha_unpkbl (x);
12
  sink = __builtin_alpha_unpkbw (x);
13
 
14
  sink = __builtin_alpha_minub8 (0, x);
15
  sink = __builtin_alpha_minub8 (1, x);
16
  sink = __builtin_alpha_minub8 (x, y);
17
  sink = __builtin_alpha_minsb8 (x, y);
18
  sink = __builtin_alpha_minuw4 (x, y);
19
  sink = __builtin_alpha_minsw4 (x, y);
20
  sink = __builtin_alpha_maxub8 (x, y);
21
  sink = __builtin_alpha_maxsb8 (x, y);
22
  sink = __builtin_alpha_maxuw4 (x, y);
23
  sink = __builtin_alpha_maxsw4 (x, y);
24
  sink = __builtin_alpha_perr (x, y);
25
}
26
 
27
int main() { return 0; }

powered by: WebSVN 2.1.0

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