| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-Ofast -fdump-tree-phiopt1" } */ |
| 3 |
/* { dg-additional-options "-msse4" { target { x86_64-*-* i?86-*-* } } } */ |
| 4 |
/* { dg-final { scan-tree-dump-times " = ABS_EXPR <x_\[0-9]*\\\(D\\\)>;" 1 "phiopt1" { target { x86_64-*-* i?86-*-* } } } } */ |
| 5 |
|
| 6 |
typedef int v2si __attribute__ ((vector_size (2 * sizeof(int)))); |
| 7 |
typedef short v2hi __attribute__ ((vector_size (2 * sizeof(short)))); |
| 8 |
|
| 9 |
v2hi absvect1 (v2hi x, int i) { |
| 10 |
v2hi neg = -x; |
| 11 |
return (x > 0) ? x : neg; |
| 12 |
} |
| 13 |
|