blob: 615f919ba0adf2d6f81979551fb398ae7eecd746 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -march=haswell -mno-stackrealign" } */
unsigned short
UMVLine16Y_11 (short unsigned int * Pic, int y, int width)
{
if (y != width)
{
y = y < 0 ? 0 : y;
return Pic[y * width];
}
return Pic[y];
}
/* We do not want the RA to spill %esi for it's dual-use but using
pmaxsd is OK. */
/* { dg-final { scan-assembler-not "rsp" { target { ! { ia32 } } } } } */
/* { dg-final { scan-assembler "pmaxsd" } } */