blob: 3f632c9ba8281e72381e518973817f34549282cd [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2" } */
int foo(int x, int y, int z)
{
return (x - y) + z;
}
int bar(int x, int y, int z)
{
return x + (y - z);
}
unsigned int ufoo(unsigned int x, unsigned int y, unsigned int z)
{
return (x - y) + z;
}
unsigned int ubar(unsigned int x, unsigned int y, unsigned int z)
{
return x + (y - z);
}
/* { dg-final { scan-assembler-times "vsub.u32.u32.u32.add" 4 } } */