/* { dg-do compile } */ /* { dg-options "-Ofast -fdump-tree-phiopt1" } */ /* { dg-additional-options "-msse4" { target { x86_64-*-* i?86-*-* } } } */ /* { dg-final { scan-tree-dump-times " = ABS_EXPR ;" 1 "phiopt1" { target { x86_64-*-* i?86-*-* } } } } */ typedef int v2si __attribute__ ((vector_size (2 * sizeof(int)))); typedef short v2hi __attribute__ ((vector_size (2 * sizeof(short)))); v2hi absvect1 (v2hi x, int i) { v2hi neg = -x; return (x > 0) ? x : neg; }