summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-12-05 02:11:22 +0000
committerMans Rullgard <mans@mansr.com>2012-12-07 16:54:04 +0000
commitb57c1da81e4f9d46af6ad9f69e6e2255d5b8aaff (patch)
treef5f6804392c42566ca2210de5b8d08355177f0dc /configure
parentb326755989b346d0d935e0628e8865f9b2951c30 (diff)
arm: detect cpu features at runtime on Linux
This allows compiling optimised functions for features not enabled in the core build and selecting these at runtime if the system has the necessary support. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index 62f3f0ba67..bf809c6f93 100755
--- a/configure
+++ b/configure
@@ -3161,7 +3161,9 @@ EOF
enabled vfp && check_insn vfp 'fadds s0, s0, s0'
enabled vfpv3 && check_insn vfpv3 'vmov.f32 s0, #1.0'
- map 'enabled_any ${v}_external ${v}_inline || disable $v' $ARCH_EXT_LIST_ARM
+ [ $target_os = linux ] ||
+ map 'enabled_any ${v}_external ${v}_inline || disable $v' \
+ $ARCH_EXT_LIST_ARM
check_inline_asm asm_mod_q '"add r0, %Q0, %R0" :: "r"((long long)0)'
check_inline_asm asm_mod_y '"vmul.i32 d0, d0, %y0" :: "x"(0)'