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 2" | 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. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 --driver=test_global_main.cpp \ | 57 --driver=test_global_main.cpp \ |
58 --output=test_global_O${optlevel} | 58 --output=test_global_O${optlevel} |
59 | 59 |
60 ./crosstest.py -O${optlevel} --prefix=Subzero_ --target=x8632 \ | 60 ./crosstest.py -O${optlevel} --prefix=Subzero_ --target=x8632 \ |
61 --dir="${OUTDIR}" \ | 61 --dir="${OUTDIR}" \ |
62 --llvm-bin-path="${LLVM_BIN_PATH}" \ | 62 --llvm-bin-path="${LLVM_BIN_PATH}" \ |
63 --test=test_icmp.cpp \ | 63 --test=test_icmp.cpp \ |
64 --driver=test_icmp_main.cpp \ | 64 --driver=test_icmp_main.cpp \ |
65 --output=test_icmp_O${optlevel} | 65 --output=test_icmp_O${optlevel} |
66 | 66 |
| 67 # Compile the non-subzero object files straight from source |
| 68 # since the native LLVM backend does not understand how to |
| 69 # lower NaCl-specific intrinsics. |
| 70 ./crosstest.py -O${optlevel} --prefix=Subzero_ --target=x8632 \ |
| 71 --dir="${OUTDIR}" \ |
| 72 --llvm-bin-path="${LLVM_BIN_PATH}" \ |
| 73 --test=test_sync_atomic.cpp \ |
| 74 --crosstest-bitcode=0 \ |
| 75 --driver=test_sync_atomic_main.cpp \ |
| 76 --output=test_sync_atomic_O${optlevel} |
| 77 |
67 done | 78 done |
68 | 79 |
69 for optlevel in ${OPTLEVELS} ; do | 80 for optlevel in ${OPTLEVELS} ; do |
70 "${OUTDIR}"/simple_loop_O${optlevel} | 81 "${OUTDIR}"/simple_loop_O${optlevel} |
71 "${OUTDIR}"/mem_intrin_O${optlevel} | 82 "${OUTDIR}"/mem_intrin_O${optlevel} |
72 "${OUTDIR}"/test_arith_O${optlevel} | 83 "${OUTDIR}"/test_arith_O${optlevel} |
73 "${OUTDIR}"/test_cast_O${optlevel} | 84 "${OUTDIR}"/test_cast_O${optlevel} |
74 "${OUTDIR}"/test_fcmp_O${optlevel} | 85 "${OUTDIR}"/test_fcmp_O${optlevel} |
75 "${OUTDIR}"/test_global_O${optlevel} | 86 "${OUTDIR}"/test_global_O${optlevel} |
76 "${OUTDIR}"/test_icmp_O${optlevel} | 87 "${OUTDIR}"/test_icmp_O${optlevel} |
| 88 "${OUTDIR}"/test_sync_atomic_O${optlevel} |
77 done | 89 done |
OLD | NEW |