summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr69247.c
blob: b7406e6822329af54e44f1038c8e8b66c1b7ffca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 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);
}