view gcc/testsuite/gcc.dg/ipa/propalign-5.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-cp"  } */
/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */

int n;

static void
__attribute__ ((noinline))
test(void *a)
{
  __builtin_memset (a,0,n);
}

int
main()
{
  int aa;
  short bb;
  test (&aa);
  test (&bb);
  return 0;
}
/* { dg-final { scan-ipa-dump "align: 2"  "cp"  } } */