2 # test that every step outputs something that is consumable by
7 LD_LIBRARY_PATH=../../lib/Debug
10 AS=../../tools/Debug/as
11 DIS=../../tools/Debug/dis
13 echo "======== Running assembler/disassembler test on $1"
15 # Two full cycles are needed for bitwise stability
17 $AS < $1 > $1.bc.1 || exit 1
18 $DIS < $1.bc.1 > $1.ll.1 || exit 2
19 $AS < $1.ll.1 > $1.bc.2 || exit 3
20 $DIS < $1.bc.2 > $1.ll.2 || exit 4
22 diff $1.ll.[12] || exit 7
24 # FIXME: When we sort things correctly and deterministically, we can
26 #diff $1.bc.[12] || exit 8
29 touch Output/$1.asmdis
30 ) || ../Failure.sh "$1 ASM/DIS"