Commit ee9e7a2e authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '7f2b3dca'

* commit '7f2b3dca':
  configure: arm: check inline and external asm support for extensions
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 4f0cf62d 7f2b3dca
...@@ -3488,12 +3488,14 @@ EOF ...@@ -3488,12 +3488,14 @@ EOF
warn "Compiler does not indicate floating-point ABI, guessing $fpabi." warn "Compiler does not indicate floating-point ABI, guessing $fpabi."
fi fi
enabled armv5te && check_inline_asm armv5te '"qadd r0, r0, r0"' enabled armv5te && check_insn armv5te 'qadd r0, r0, r0'
enabled armv6 && check_inline_asm armv6 '"sadd16 r0, r0, r0"' enabled armv6 && check_insn armv6 'sadd16 r0, r0, r0'
enabled armv6t2 && check_inline_asm armv6t2 '"movt r0, #0"' enabled armv6t2 && check_insn armv6t2 'movt r0, #0'
enabled armvfp && check_inline_asm armvfp '"fadds s0, s0, s0"' enabled armvfp && check_insn armvfp 'fadds s0, s0, s0'
enabled neon && check_inline_asm neon '"vadd.i16 q0, q0, q0"' enabled neon && check_insn neon 'vadd.i16 q0, q0, q0'
enabled vfpv3 && check_inline_asm vfpv3 '"vmov.f32 s0, #1.0"' enabled vfpv3 && check_insn vfpv3 'vmov.f32 s0, #1.0'
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_q '"add r0, %Q0, %R0" :: "r"((long long)0)'
check_inline_asm asm_mod_y '"vmul.i32 d0, d0, %y0" :: "x"(0)' check_inline_asm asm_mod_y '"vmul.i32 d0, d0, %y0" :: "x"(0)'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment