blob: fe0adaeae29a98449eecde414dabad52accd828c [file] [log] [blame]
// PR target/85572
// { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-options "-O2 -msse4 -mno-avx" }
// { dg-final { scan-assembler-times {\mpxor\M} 2 } }
// { dg-final { scan-assembler-times {\mpcmpgtq\M} 1 } }
// { dg-final { scan-assembler-times {\mpsubq\M} 1 } }
typedef long long V __attribute__((vector_size (16)));
V
foo (V x)
{
return x < 0 ? -x : x;
}