1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-maltivec -mabi=altivec -fno-inline" } */
8 sig_ill_handler (int sig
)
40 if (vec_all_numeric (a
.v
))
43 if (vec_all_nan (a
.v
))
46 if (!vec_all_numeric (b
.v
))
49 if (vec_all_nan (b
.v
))
52 if (vec_all_numeric (c
.v
))
55 if (!vec_all_nan (c
.v
))
63 vector
float a
= {1.0, 2.0, 3.0, 4.0};
64 vector
float b
= {1.0, 3.0, 2.0, 5.0};
65 vector
signed int aux
;
66 vector
signed int le
= {-1, -1, 0, -1};
68 aux
= vec_cmple (a
, b
);
70 if (!vec_all_eq (aux
, le
))
78 /* Exit on systems without altivec. */
79 signal (SIGILL
, sig_ill_handler
);
80 asm volatile ("vor 0,0,0");
81 signal (SIGILL
, SIG_DFL
);