URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [octeon-exts-5.c] - Rev 847
Go to most recent revision | Compare with Previous | Blame | View Log
/* -mel version of octeon-exts-2.c. */ /* { dg-do compile } */ /* { dg-options "-O -march=octeon -mel" } */ /* { dg-final { scan-assembler-times "\texts\t" 4 } } */ struct bar { long long d:1; unsigned long long c:48; long long b:14; unsigned long long a:1; }; NOMIPS16 int f1 (struct bar *s, int a) { return (int) s->b + a; } NOMIPS16 char f2 (struct bar *s) { return s->d + 1; } NOMIPS16 int f3 () { struct bar s; asm ("" : "=r"(s)); return (int) s.b + 1; } NOMIPS16 long long f4 (struct bar *s) { return s->d; }
Go to most recent revision | Compare with Previous | Blame | View Log