History

fix asmtest (somehow), update Makefiles

grischka committed 17 years ago

Commit 045cff21 parent 0085c643 files · +14 −9Browse files

Showing the changes to tests (2 of 3 files). Show all

Unified · Split

2 files
  1. tests/Makefile +6 −5
  2. tests/asmtest.S +2 −2
tests/Makefile+6−5
@@ -6,7 +6,7 @@ · 5 unmodified lines
66 TESTS = libtest test3
77
88 # these should work too
9−# TESTS += test1 test2 speed btest
9+# TESTS += test1 test2 speedtest btest
1010
1111 # these don't work as they should
1212 # TESTS += test4 asmtest
@@ -23,6 +23,7 @@ all test : $(TESTS) · 10 unmodified lines
2323
2424 # make sure that tcc exists
2525 $(TESTS) : ../tcc
26+
2627 ../tcc ../libtcc.a :
2728 $(MAKE) -C ..
2829
@@ -104,7 +105,7 @@ btest: boundtest.c · 75 unmodified lines
104105 echo; echo Bound test OK
105106
106107 # speed test
107−speed: ex2 ex3
108+speedtest: ex2 ex3
108109 @echo ------------ $@ ------------
109110 time ./ex2 1238 2 3 4 10 13 4
110111 time $(TCC) -run ../examples/ex2.c 1238 2 3 4 10 13 4
@@ -116,13 +117,13 @@ ex%: ../examples/ex%.c · 5 unmodified lines
116117
117118 # tiny assembler testing
118119 asmtest.ref: asmtest.S
119− $(CC) -o asmtest.ref.o -c asmtest.S
120− objdump -D asmtest.ref.o > $@
120+ $(CC) -Wa,-W -o asmtest.ref.o -c asmtest.S
121+ objdump -D asmtest.ref.o > asmtest.ref
121122
122123 asmtest: asmtest.ref
123124 @echo ------------ $@ ------------
124125 $(TCC) -c asmtest.S
125− objdump -D asmtest.o > $@
126+ objdump -D asmtest.o > asmtest.out
126127 @if diff -u --ignore-matching-lines="file format" asmtest.ref asmtest.out ; then echo "ASM Auto Test OK"; fi
127128
128129 # targets for development
tests/asmtest.S+2−2
@@ -341,9 +341,9 @@ L3: · 340 unmodified lines
341341 fnstcw 0x1002
342342 fstcw 0x1002
343343 fnstsw 0x1004
344− fnstsw %eax
344+ fnstsw (%eax)
345345 fstsw 0x1004
346− fstsw %eax
346+ fstsw (%eax)
347347 fnclex
348348 fclex
349349 fnstenv 0x1000

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t