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/] [i386/] [cold-attribute-1.c] - Rev 318
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2" } */ #include <string.h> static inline __attribute__ ((cold)) my_cold_memset (void *a, int b,int c) { memset (a,b,c); } t(void *a,int b,int c) { if (a) my_cold_memset (a,b,40); } /* The IF conditional should be predicted as cold and my_cold_memset inlined for size expanding memset as rep; stosb. */ /* { dg-final { scan-assembler "stosb" } } */