Commit c6ebc9fa authored by Mans Rullgard's avatar Mans Rullgard
Browse files

configure: add check_insn function



The check_insn function tests an instruction in both inline asm and
standalone assembly, and sets _external/_inline config properties
accordingly.
Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
parent 7fd90119
...@@ -698,6 +698,12 @@ void foo(void){ __asm__ volatile($code); } ...@@ -698,6 +698,12 @@ void foo(void){ __asm__ volatile($code); }
EOF EOF
} }
check_insn(){
log check_insn "$@"
check_inline_asm ${1}_inline "\"$2\""
echo "$2" | check_as && enable ${1}_external || disable ${1}_external
}
check_yasm(){ check_yasm(){
log check_yasm "$@" log check_yasm "$@"
echo "$1" > $TMPS echo "$1" > $TMPS
......
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