1 /* A runtime check for AltiVec capability. */
2 /* Contributed by Ziemowit Laski <zlaski@apple.com> */
12 sig_ill_handler (int sig
)
17 void altivec_check(void) {
19 /* Exit on systems without AltiVec. */
20 signal (SIGILL
, sig_ill_handler
);
22 asm volatile ("vor v0,v0,v0");
24 asm volatile ("vor 0,0,0");
26 signal (SIGILL
, SIG_DFL
);