RTEMS: Add Cortex-M33 multilib
[gcc.git] / gcc / testsuite / g++.dg / absvect.C
blob5cf2ca307f43b67d60b32959ec931b2a02f7d590
1 /* { dg-do compile } */
2 /* { dg-options "-Ofast -fdump-tree-phiopt1" } */
3 /* { dg-final { scan-tree-dump-times " = ABS_EXPR <x_\[0-9]*\\\(D\\\)>;" 1 "phiopt1" } } */
5 typedef int v2si __attribute__ ((vector_size (2 * sizeof(int))));
6 typedef short v2hi __attribute__ ((vector_size (2 * sizeof(short))));
8 v2hi  absvect1 (v2hi x, int i) {
9     v2hi neg = -x;
10     return (x > 0) ? x : neg;