view gcc/testsuite/gcc.dg/torture/pr66856-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-additional-options "-mavx2" { target x86_64-*-* i?86-*-* } } */

short c;
int d;
int fn1(int p1, int p2) {
    int a, b;
    a = p1 >> 3 & p2;
    b = p1 & 072;
    a |= a >> 5;
    a |= b >> 5;
    return a;
}
void fn2() {
    short *e = &c;
    int *f;
    int g;
    while (d -= 4) {
	fn1(1, 1);
	fn1(1, 1) * fn1(1, 1) * fn1(1, 1);
	*e++ = fn1(*f++, g);
	*e++ = fn1(*f++, g);
    }
}