History

arm-asm: Enable VFP when invoking GNU as for testing VFP instructions

Danny Milosavljevic committed 5 years ago

Commit 3fc55e11 parent cdbb5531 file · +10 −5Browse files

Unified · Split

tests/arm-asm-testsuite.sh+10−5
@@ -7,11 +7,16 @@ set -e · 6 unmodified lines
7state="`mktemp -d`"7state="`mktemp -d`"
8cat ../arm-tok.h |grep DEF_ASM |grep -v 'not useful' |grep -v '#define' |grep -v '/[*]' |sed -e 's;^[ ]*DEF_ASM[^(]*(\(.*\)).*$;\1;' | egrep -v '^((r|c|p|s|d)[0-9]+|fp|ip|sp|lr|pc|asl)$' | while read s8cat ../arm-tok.h |grep DEF_ASM |grep -v 'not useful' |grep -v '#define' |grep -v '/[*]' |sed -e 's;^[ ]*DEF_ASM[^(]*(\(.*\)).*$;\1;' | egrep -v '^((r|c|p|s|d)[0-9]+|fp|ip|sp|lr|pc|asl)$' | while read s
9do9do
10 # If VFP is disabled, skip VFP tests.10 as_opts=""
11 if [ "${s#v}" != "${s}" ] && ! grep -q "CONFIG_arm_vfp=yes" ../config.mak11 if [ "${s#v}" != "${s}" ]
12 then12 then
13 echo "note: skipping VFP instruction: $s (because VFP is disabled)">&213 if grep -q "CONFIG_arm_vfp=yes" ../config.mak
14 continue14 then
15 as_opts="${as_opts} -mfpu=vfp"
16 else
17 echo "note: skipping VFP instruction: $s (because VFP is disabled)">&2
18 continue
19 fi
15 fi20 fi
16 ok=021 ok=0
17 for args in "r3, r4, r5, r6" \22 for args in "r3, r4, r5, r6" \
@@ -123,7 +128,7 @@ do · 105 unmodified lines
123 tcc_object="${state}/tcc-$s $args.o"128 tcc_object="${state}/tcc-$s $args.o"
124 expected="${state}/expected-$s $args"129 expected="${state}/expected-$s $args"
125 got="${state}/got-$s $args"130 got="${state}/got-$s $args"
126 if echo "$s $args" | "${CROSS_COMPILE}as" -mlittle-endian -o "${as_object}" - 2>"${err}"131 if echo "$s $args" | "${CROSS_COMPILE}as" -mlittle-endian ${as_opts} -o "${as_object}" - 2>"${err}"
127 then132 then
128 cat "${err}"133 cat "${err}"
129 rm -f "${err}"134 rm -f "${err}"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t