OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # TODO: Retire this script and move the individual tests into the lit | 3 # TODO: Retire this script and move the individual tests into the lit |
4 # framework, to leverage parallel testing and other lit goodness. | 4 # framework, to leverage parallel testing and other lit goodness. |
5 | 5 |
6 set -eux | 6 set -eux |
7 | 7 |
8 OPTLEVELS="m1" | 8 OPTLEVELS="m1 2" |
9 OUTDIR=Output | 9 OUTDIR=Output |
10 # Clean the output directory to avoid reusing stale results. | 10 # Clean the output directory to avoid reusing stale results. |
11 rm -rf "${OUTDIR}" | 11 rm -rf "${OUTDIR}" |
12 mkdir -p "${OUTDIR}" | 12 mkdir -p "${OUTDIR}" |
13 | 13 |
14 for optlevel in ${OPTLEVELS} ; do | 14 for optlevel in ${OPTLEVELS} ; do |
15 | 15 |
16 ./crosstest.py -O${optlevel} --prefix=Subzero_ --target=x8632 \ | 16 ./crosstest.py -O${optlevel} --prefix=Subzero_ --target=x8632 \ |
17 --dir="${OUTDIR}" \ | 17 --dir="${OUTDIR}" \ |
18 --llvm-bin-path="${LLVM_BIN_PATH}" \ | 18 --llvm-bin-path="${LLVM_BIN_PATH}" \ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 done | 51 done |
52 | 52 |
53 for optlevel in ${OPTLEVELS} ; do | 53 for optlevel in ${OPTLEVELS} ; do |
54 "${OUTDIR}"/simple_loop_O${optlevel} | 54 "${OUTDIR}"/simple_loop_O${optlevel} |
55 "${OUTDIR}"/test_cast_O${optlevel} | 55 "${OUTDIR}"/test_cast_O${optlevel} |
56 "${OUTDIR}"/test_fcmp_O${optlevel} | 56 "${OUTDIR}"/test_fcmp_O${optlevel} |
57 "${OUTDIR}"/test_icmp_O${optlevel} | 57 "${OUTDIR}"/test_icmp_O${optlevel} |
58 "${OUTDIR}"/test_arith_O${optlevel} | 58 "${OUTDIR}"/test_arith_O${optlevel} |
59 done | 59 done |
OLD | NEW |