2 # Compiles the file test.c and checks the output of the reference with the
3 # optimised version of the program. muis is the optimiser for this.
8 OPT
=~
/muis
/muis
/muis.py
14 $CC $CFLAGS -S $IN -o ref.s
15 $CC $CFLAGS ref.s
-o ref
17 $OPT $OPTFLAGS ref.s opt.s || X
=false
21 $CC $CFLAGS opt.s
-o opt
23 echo simulating reference
:
24 $SIM ref
2>/dev
/null |
tee debug.ref
2>/dev
/null || true
26 echo simulating optimised
:
27 $SIM opt
2>/dev
/null |
tee debug.opt
2>/dev
/null || true
29 test -n "`diff debug.ref debug.opt`" && X
=false