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