URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gcc.target/] [mips/] [octeon-baddu-1.c] - Rev 839
Go to most recent revision | 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; }
Go to most recent revision | Compare with Previous | Blame | View Log