1 /* Test that the base isa builtins compile. */
2 /* { dg-do link { target alpha*-*-* } } */
3 /* { dg-options "-mcpu=ev4" } */
5 void test_BASE (long x
, long y
)
10 sink
= __builtin_alpha_implver ();
11 sink
= __builtin_alpha_rpcc ();
13 sink
= __builtin_alpha_amask (-1);
14 sink
= __builtin_alpha_amask (x
);
16 sink
= __builtin_alpha_cmpbge (x
, y
);
17 sink
= __builtin_alpha_cmpbge (-1, x
);
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
);
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
);
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
);
43 sink
= __builtin_alpha_umulh (x
, y
);
46 void test_zap (long x
, long y
)
50 sink
= __builtin_alpha_zap (x
, y
);
51 sink
= __builtin_alpha_zap (x
, 0xaa);
53 sink
= __builtin_alpha_zap (x
, z
);
55 sink
= __builtin_alpha_zap (z
, x
);
56 sink
= __builtin_alpha_zap (x
, z
);
59 void test_zapnot (long x
, long y
)
64 sink
= __builtin_alpha_zapnot (x
, y
);
65 sink
= __builtin_alpha_zapnot (x
, 0xaa);
67 sink
= __builtin_alpha_zapnot (x
, z
);
69 sink
= __builtin_alpha_zapnot (z
, x
);
70 sink
= __builtin_alpha_zapnot (x
, z
);
73 int main() { return 0; }