mirror of
https://github.com/mirror/tinycc.git
synced 2025-04-01 12:30:08 +08:00
arm-asm-testsuite.sh: Prefer current tcc as specified in $(TCC)
This commit is contained in:
parent
f3912fafdd
commit
f9c3b61884
@ -225,7 +225,7 @@ asmtest.ref: asmtest.S
|
|||||||
|
|
||||||
ifeq ($(ARCH),arm)
|
ifeq ($(ARCH),arm)
|
||||||
asmtest asmtest2:
|
asmtest asmtest2:
|
||||||
(cd .. && tests/arm-asm-testsuite.sh)
|
TCC="${TCC}" ./arm-asm-testsuite.sh
|
||||||
else
|
else
|
||||||
asmtest asmtest2: asmtest.ref
|
asmtest asmtest2: asmtest.ref
|
||||||
@echo ------------ $@ ------------
|
@echo ------------ $@ ------------
|
||||||
|
@ -5,7 +5,7 @@ set -e
|
|||||||
# Note: "{r3}" is definitely different--but would complicate the assembler.
|
# Note: "{r3}" is definitely different--but would complicate the assembler.
|
||||||
|
|
||||||
state="`mktemp -d`"
|
state="`mktemp -d`"
|
||||||
cat arm-tok.h |grep DEF_ASM_CONDED |grep -v '#define' |grep -v '/[*]' |sed -e 's;DEF_ASM_CONDED.\(.*\).$;\1;'| grep -v 'not useful' | while read s
|
cat ../arm-tok.h |grep DEF_ASM_CONDED |grep -v '#define' |grep -v '/[*]' |sed -e 's;DEF_ASM_CONDED.\(.*\).$;\1;'| grep -v 'not useful' | while read s
|
||||||
do
|
do
|
||||||
ok=0
|
ok=0
|
||||||
for args in "r3, r4, r5, r6" \
|
for args in "r3, r4, r5, r6" \
|
||||||
@ -92,7 +92,7 @@ do
|
|||||||
"${CROSS_COMPILE}objdump" -S "${as_object}" |grep "^[ ]*0:" >"${expected}"
|
"${CROSS_COMPILE}objdump" -S "${as_object}" |grep "^[ ]*0:" >"${expected}"
|
||||||
|
|
||||||
#echo '__asm__("'"$s ${args}"'");' > "${csource}"
|
#echo '__asm__("'"$s ${args}"'");' > "${csource}"
|
||||||
if echo '__asm__("'"$s ${args}"'");'| ./tcc -o "${tcc_object}" -c -
|
if echo '__asm__("'"$s ${args}"'");'| ${TCC} -o "${tcc_object}" -c -
|
||||||
then
|
then
|
||||||
"${CROSS_COMPILE}objdump" -S "${tcc_object}" |grep "^[ ]*0:" >"${got}"
|
"${CROSS_COMPILE}objdump" -S "${tcc_object}" |grep "^[ ]*0:" >"${got}"
|
||||||
if diff -u "${got}" "${expected}"
|
if diff -u "${got}" "${expected}"
|
||||||
|
Loading…
Reference in New Issue
Block a user