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-baddu-1.c] - Rev 321
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O -march=octeon" } */ /* { dg-final { scan-assembler-times "\tbaddu\t" 4 } } */ /* { dg-final { scan-assembler-not "\tandi\t" } } */ NOMIPS16 unsigned char g (long long a, long long b) { return a + b; } NOMIPS16 unsigned long long h (unsigned long long a, unsigned long long b) { unsigned char c = a + b; return c; } NOMIPS16 long long ff (long long a, long long b) { unsigned char c = a + b; return c; } NOMIPS16 int gg (int a, int b) { return (a + b) & 0xff; }