blob: 749bae56d0a945bb03631fefa778e05aec09e34a [file] [log] [blame]
/* APPLE LOCAL file radar 4645709 */
/* { dg-do compile { target "i?86-*-*" } } */
/* { dg-options "-O2" } */
/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
/* { dg-final { scan-assembler "and.*(0xffffff00|4294967040)" } } */
unsigned char lut[256];
void foo( int count, unsigned int *srcptr, unsigned *dstptr )
{
int j;
for (j = 0; j < count; j++) {
unsigned int tmp = *srcptr;
unsigned int alpha = (tmp&255);
tmp &= 0xffffff00;
alpha =lut[alpha];
tmp |= alpha<<0;
*dstptr = tmp;
}
}
/* APPLE LOCAL file radar 4645709 */