2 # Original author: Nido Media
6 # depends on the simplescalar sim-outorder MIPS emulator. Any suggestions
7 # welcome to change this
9 # Compiles the file test.c and checks the output of the reference with the
10 # optimised version of the program. muis is the optimiser for this.
15 OPT
=~
/muis
/muis
/muis.py
19 $CC $CFLAGS -S test.c
-o ref.s
20 $CC $CFLAGS ref.s
-o ref
22 $OPT $OPTFLAGS ref.s opt.s
>/dev
/null || X
=false
26 $CC $CFLAGS opt.s
-o opt
28 $SIM ref
> test.ref
2>/dev
/null || true
29 $SIM opt
> test.opt
2>/dev
/null || true
31 test -n "`diff test.ref test.opt`" && X
=false