Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr64316.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
/* PR rtl-optimization/64316 */ /* { dg-do compile } */ /* { dg-options "-O3" } */ /* { dg-additional-options "-mavx2" { target { i?86-*-* x86_64-*-* } } } */ struct S { unsigned int s; unsigned long w[]; }; struct S **s; int foo (struct S *x, struct S *y, struct S *z) { unsigned int i; unsigned long *a, *b, *c; int r = 0; for (a = x->w, b = y->w, c = z->w, i = 0; i < x->s; i++, a++) { unsigned long d = *b++ & *c++; if (*a != d) { r = 1; *a = d; } } return r; } void bar (int x) { int p = x - 1; do { foo (s[x], s[x], s[p]); p--; } while (p > 0); }