view gcc/testsuite/gcc.dg/pr69247.c @ 111:04ced10e8804

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

/* PR target/69247 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-additional-options "-march=zEC12" { target s390*-*-* } } */

void foo (short *);

void
bar (short x, int y)
{
  if (y)
    x = x << 8 | (unsigned short) x >> 8;
  foo (&x);
}