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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [alpha/] [base-1.c] - Blame information for rev 816

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

Line No. Rev Author Line
1 312 jeremybenn
/* Test that the base isa builtins compile.  */
2
/* { dg-do link } */
3
/* { dg-options "-mcpu=ev4" } */
4
 
5
void test_BASE (long x, long y)
6
{
7
  volatile long sink;
8
  long z;
9
 
10
  sink = __builtin_alpha_implver ();
11
  sink = __builtin_alpha_rpcc ();
12
 
13
  sink = __builtin_alpha_amask (-1);
14
  sink = __builtin_alpha_amask (x);
15
 
16
  sink = __builtin_alpha_cmpbge (x, y);
17
  sink = __builtin_alpha_cmpbge (-1, x);
18
 
19
  sink = __builtin_alpha_extbl (x, y);
20
  sink = __builtin_alpha_extwl (x, y);
21
  sink = __builtin_alpha_extll (x, y);
22
  sink = __builtin_alpha_extql (x, y);
23
  sink = __builtin_alpha_extwh (x, y);
24
  sink = __builtin_alpha_extlh (x, y);
25
  sink = __builtin_alpha_extqh (x, y);
26
 
27
  sink = __builtin_alpha_insbl (x, y);
28
  sink = __builtin_alpha_inswl (x, y);
29
  sink = __builtin_alpha_insll (x, y);
30
  sink = __builtin_alpha_insql (x, y);
31
  sink = __builtin_alpha_inswh (x, y);
32
  sink = __builtin_alpha_inslh (x, y);
33
  sink = __builtin_alpha_insqh (x, y);
34
 
35
  sink = __builtin_alpha_mskbl (x, y);
36
  sink = __builtin_alpha_mskwl (x, y);
37
  sink = __builtin_alpha_mskll (x, y);
38
  sink = __builtin_alpha_mskql (x, y);
39
  sink = __builtin_alpha_mskwh (x, y);
40
  sink = __builtin_alpha_msklh (x, y);
41
  sink = __builtin_alpha_mskqh (x, y);
42
 
43
  sink = __builtin_alpha_umulh (x, y);
44
}
45
 
46
void test_zap (long x, long y)
47
{
48
  volatile long sink;
49
  long z;
50
  sink = __builtin_alpha_zap (x, y);
51
  sink = __builtin_alpha_zap (x, 0xaa);
52
  z = 0xaa;
53
  sink = __builtin_alpha_zap (x, z);
54
  z = 0;
55
  sink = __builtin_alpha_zap (z, x);
56
  sink = __builtin_alpha_zap (x, z);
57
}
58
 
59
void test_zapnot (long x, long y)
60
{
61
  volatile long sink;
62
  long z;
63
 
64
  sink = __builtin_alpha_zapnot (x, y);
65
  sink = __builtin_alpha_zapnot (x, 0xaa);
66
  z = 0xaa;
67
  sink = __builtin_alpha_zapnot (x, z);
68
  z = 0;
69
  sink = __builtin_alpha_zapnot (z, x);
70
  sink = __builtin_alpha_zapnot (x, z);
71
}
72
 
73
int main() { return 0; }

powered by: WebSVN 2.1.0

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