| @@ -21,7 +21,7 @@ TESTS = \ · 20 unmodified lines |
| 21 | BTESTS = test1b test3b btest | 21 | BTESTS = test1b test3b btest |
| 22 | | 22 | |
| 23 | # test4 -- problem with -static | 23 | # test4 -- problem with -static |
| 24 | # asmtest -- minor differences with gcc | 24 | # asmtest / asmtest2 -- minor differences with gcc |
| 25 | # btest -- works on i386 (including win32) | 25 | # btest -- works on i386 (including win32) |
| 26 | | 26 | |
| 27 | # bounds-checking is supported only on i386 | 27 | # bounds-checking is supported only on i386 |
| @@ -173,12 +173,15 @@ asmtest.ref: asmtest.S · 145 unmodified lines |
| 173 | $(CC) -Wa,-W -o asmtest.ref.o -c asmtest.S | 173 | $(CC) -Wa,-W -o asmtest.ref.o -c asmtest.S |
| 174 | objdump -D asmtest.ref.o > asmtest.ref | 174 | objdump -D asmtest.ref.o > asmtest.ref |
| 175 | | 175 | |
| 176 | asmtest: asmtest.ref | 176 | asmtest asmtest2: asmtest.ref |
| 177 | @echo ------------ $@ ------------ | 177 | @echo ------------ $@ ------------ |
| 178 | $(TCC) -c asmtest.S | 178 | $(TCC) $(MAYBE_RUN_TCC) -c asmtest.S |
| 179 | objdump -D asmtest.o > asmtest.out | 179 | objdump -D asmtest.o > asmtest.out |
| 180 | @if diff -u --ignore-matching-lines="file format" asmtest.ref asmtest.out ; then echo "ASM Auto Test OK"; fi | 180 | @if diff -u --ignore-matching-lines="file format" asmtest.ref asmtest.out ; then echo "ASM Auto Test OK"; fi |
| 181 | | 181 | |
| | 182 | # test assembler with tcc compiled by itself |
| | 183 | asmtest2: MAYBE_RUN_TCC = $(RUN_TCC) |
| | 184 | |
| 182 | # Check that code generated by libtcc is binary compatible with | 185 | # Check that code generated by libtcc is binary compatible with |
| 183 | # that generated by CC | 186 | # that generated by CC |
| 184 | abitest-cc$(EXESUF): abitest.c $(LIBTCC) | 187 | abitest-cc$(EXESUF): abitest.c $(LIBTCC) |