blob: 57666ac60b68eff359baa76b259e76d5db00d0ee [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2" } */
#include <string.h>
static inline
__attribute__ ((cold)) void
my_cold_memset (void *a, int b,int c)
{
memset (a,b,c);
}
void
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" } } */