OpenCores
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] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
#include <string.h>
4
static inline
5
__attribute__ ((cold))
6
my_cold_memset (void *a, int b,int c)
7
{
8
  memset (a,b,c);
9
}
10
t(void *a,int b,int c)
11
{
12
  if (a)
13
    my_cold_memset (a,b,40);
14
}
15
 
16
/* The IF conditional should be predicted as cold and my_cold_memset inlined
17
   for size expanding memset as rep; stosb.  */
18
/* { dg-final { scan-assembler "stosb" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.