view gcc/testsuite/gcc.dg/torture/pr77937-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +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-*-* } } */

int *a;
int b, c, d;
void fn1(char *p1, int p2) {
  int x;
  while (1) {
    x = 0;
    for (; x < 8; x++)
      p1[0] = -a[0] * d + p1[0] * c + 1 >> b >> 1;
    p1 += p2;
  }
}