floatconv 0.2.8

Floating point conversion functions
Documentation
#!/bin/sh
set -e
cd "$(dirname "$0")"
rm -rf asm-output
mkdir -p asm-output
cd asm-output
export RUSTFLAGS=--cfg=noinline
cargo asm >/dev/null
while read t; do
	mkdir -p "$t"
	while read f; do
		n="${f#floatconv::}"
		if [ "$n" != "$f" ]; then
			echo "$t / $n"
			n=$(sed s/::/-/g <<<"$n")
			cargo asm --no-color --target=$t "$f" > "$t/$n"
			sed -i '/^_Z.*:$/Q' "$t/$n"
			sed -i 's/\.L\w\+/<label>/g' "$t/$n"
		fi
	done <<<"$(cargo asm --target=$t)"
done <../test-targets