1 /* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
2 /* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
3 /* { dg-options "-maltivec -mabi=altivec -fno-inline" } */
4 /* { dg-require-effective-target powerpc_altivec } */
8 extern void exit (int);
9 extern void abort (void);
38 if (vec_all_numeric (a
.v
))
41 if (vec_all_nan (a
.v
))
44 if (!vec_all_numeric (b
.v
))
47 if (vec_all_nan (b
.v
))
50 if (vec_all_numeric (c
.v
))
53 if (!vec_all_nan (c
.v
))
61 vector
float a
= {1.0, 2.0, 3.0, 4.0};
62 vector
float b
= {1.0, 3.0, 2.0, 5.0};
64 vector
signed int le
= {-1, -1, 0, -1};
66 aux
= vec_cmple (a
, b
);
68 if (!vec_all_eq (aux
, le
))