view gcc/testsuite/gcc.dg/torture/pr77937-2.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O3" } */
/* { dg-additional-options "-march=amdfam10" { target i?86-*-* x86_64-*-* } } */

extern int fn2(int);
extern int fn3(int);
int a, b, c;
void fn1(long p1) {
  char *d;
  for (;; d += p1) {
    d[0] = fn2(1 >> a);
    fn3(0);
    fn3(c >> a);
    d[1] = fn3(d[1] * b + c >> a);
    d[4] = fn3(d[4] * b + c >> a);
    d[5] = fn3(d[5] * b + c >> a);
  }
}