Unified · Split
| @@ -7,11 +7,16 @@ set -e · 6 unmodified lines | |||
| 7 | state="`mktemp -d`" | 7 | state="`mktemp -d`" |
| 8 | cat ../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 | 8 | cat ../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 |
| 9 | do | 9 | do |
| 10 | # If VFP is disabled, skip VFP tests. | 10 | as_opts="" |
| 11 | if [ "${s#v}" != "${s}" ] && ! grep -q "CONFIG_arm_vfp=yes" ../config.mak | 11 | if [ "${s#v}" != "${s}" ] |
| 12 | then | 12 | then |
| 13 | echo "note: skipping VFP instruction: $s (because VFP is disabled)">&2 | 13 | if grep -q "CONFIG_arm_vfp=yes" ../config.mak |
| 14 | continue | 14 | 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 | fi | 20 | fi |
| 16 | ok=0 | 21 | 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 | then | 132 | then |
| 128 | cat "${err}" | 133 | cat "${err}" |
| 129 | rm -f "${err}" | 134 | rm -f "${err}" |