URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [octeon-exts-4.c] - Rev 321
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O -march=octeon -mgp64" } */ /* { dg-final { scan-assembler-not "\tsll\t\[^\n\]*,0" } } */ /* { dg-final { scan-assembler-times "\texts\t" 6 } } */ #define TEST(ID, TYPE, SHIFT) \ int NOMIPS16 \ f##ID (long long y) \ { \ return (TYPE) ((TYPE) (y >> SHIFT) + 1); \ } \ int NOMIPS16 \ g##ID (unsigned long long y) \ { \ return (TYPE) ((TYPE) (y >> SHIFT) + 1); \ } TEST (1, int, 10) TEST (2, short, 5) TEST (3, char, 31)