1/* { dg-do compile } */
2/* { dg-options "-O2" } */
3#include <string.h>
4static inline
5__attribute__ ((cold))
6my_cold_memset (void *a, int b,int c)
7{
8  memset (a,b,c);
9}
10t(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" } } */
19