URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [alpha/] [max-1.c] - Rev 691
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; }