Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / gcc.dg / alpha-max-1.c
blobb73bbb9a2b2bb8a505fab9f9da6f7496c6cc5ce0
1 /* Test that the MAX isa builtins compile. */
2 /* { dg-do link { target alpha*-*-* } } */
3 /* { dg-options "-mcpu=pca56" } */
5 void test_MAX (long x, long y)
7 volatile long sink;
9 sink = __builtin_alpha_pklb (x);
10 sink = __builtin_alpha_pkwb (x);
11 sink = __builtin_alpha_unpkbl (x);
12 sink = __builtin_alpha_unpkbw (x);
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);
27 int main() { return 0; }