|
|
|
@ -1490,9 +1490,9 @@ if enabled altivec; then |
|
|
|
|
add_cflags "-maltivec -mabi=altivec" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
check_header altivec.h |
|
|
|
|
check_header altivec.h |
|
|
|
|
|
|
|
|
|
# check if our compiler supports Motorola AltiVec C API |
|
|
|
|
# check if our compiler supports Motorola AltiVec C API |
|
|
|
|
if enabled altivec_h; then |
|
|
|
|
inc_altivec_h="#include <altivec.h>" |
|
|
|
|
else |
|
|
|
@ -1510,9 +1510,9 @@ fi |
|
|
|
|
|
|
|
|
|
# check armv5te instructions support |
|
|
|
|
enabled armv5te && check_cc <<EOF || disable armv5te |
|
|
|
|
int main(void) { |
|
|
|
|
int main(void) { |
|
|
|
|
__asm__ __volatile__ ("qadd r0, r0, r0"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
enabled armv6 && check_cc <<EOF || disable armv6 |
|
|
|
@ -1523,9 +1523,9 @@ EOF |
|
|
|
|
|
|
|
|
|
# check iwmmxt support |
|
|
|
|
enabled iwmmxt && check_cc <<EOF || disable iwmmxt |
|
|
|
|
int main(void) { |
|
|
|
|
int main(void) { |
|
|
|
|
__asm__ __volatile__ ("wunpckelub wr6, wr4"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
# check if our compiler supports mmi |
|
|
|
|