2 # test that every step outputs something that is consumable by
10 echo "======== Running assembler/disassembler test on $1"
12 # Two full cycles are needed for bitwise stability
14 $AS < $1 > $1.bc.1 || exit 1
15 $DIS < $1.bc.1 > $1.ll.1 || exit 2
16 $AS < $1.ll.1 > $1.bc.2 || exit 3
17 $DIS < $1.bc.2 > $1.ll.2 || exit 4
19 diff $1.ll.[12] || exit 7
21 # FIXME: When we sort things correctly and deterministically, we can
23 #diff $1.bc.[12] || exit 8
26 touch Output/$1.asmdis
27 ) || ../Failure.sh "$1 ASM/DIS"