mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 02:52:24 +00:00
Add SYSTEM_INT64 and make tests name independent.
This commit is contained in:
parent
f5e97fdd87
commit
a39eefaf18
10 changed files with 14 additions and 12 deletions
|
|
@ -292,9 +292,8 @@ MODULE OPV; (* J. Templ 16.2.95 / 3.7.96
|
|||
|
||||
PROCEDURE SizeCast(size: LONGINT);
|
||||
BEGIN
|
||||
IF size <= OPM.SIntSize THEN OPM.WriteString("(int)") (* TODO: int for temporary source comparison only. *)
|
||||
ELSIF size <= OPM.IntSize THEN OPM.WriteString("(int)") (* TODO: int for temporary source comparison only. *)
|
||||
ELSE OPM.WriteString("(LONGINT)")
|
||||
IF size <= 4 THEN OPM.WriteString("(int)")
|
||||
ELSE OPM.WriteString("(SYSTEM_INT64)")
|
||||
END
|
||||
END SizeCast;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@
|
|||
#include <string.h> // For memcpy ...
|
||||
#include <stdint.h> // For uintptr_t ...
|
||||
|
||||
typedef long SYSTEM_INT64;
|
||||
|
||||
#else
|
||||
|
||||
// Building for Windows platform with either mingw under cygwin, or the MS C compiler
|
||||
|
|
@ -20,8 +22,9 @@
|
|||
typedef unsigned int uintptr_t;
|
||||
#endif /* _WIN64 */
|
||||
|
||||
typedef long long SYSTEM_INT64
|
||||
typedef unsigned int uint32_t;
|
||||
void * __cdecl memcpy(void * dest, const void * source, size_t size);
|
||||
void * __cdecl memcpy(void *dest, const void *source, size_t size);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
. ../testenv.sh
|
||||
voc aa.mod -m
|
||||
$OBECOMP aa.mod -m
|
||||
./aa >result
|
||||
. ../testresult.sh
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
. ../testenv.sh
|
||||
voc hello.mod -m
|
||||
$OBECOMP hello.mod -m
|
||||
./hello >result
|
||||
. ../testresult.sh
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
. ../testenv.sh
|
||||
# Generate mixed source and assembly code listing
|
||||
voc IntSyntax.mod -m >result
|
||||
$OBECOMP IntSyntax.mod -m >result
|
||||
. ../testresult.sh
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
. ../testenv.sh
|
||||
# Generate mixed source and assembly code listing
|
||||
voc TestLanguage.mod -m
|
||||
$OBECOMP TestLanguage.mod -m
|
||||
./TestLanguage >result
|
||||
. ../testresult.sh
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
. ../testenv.sh
|
||||
# Generate mixed source and assembly code listing
|
||||
voc TestLibrary.mod -m
|
||||
$OBECOMP TestLibrary.mod -m
|
||||
./TestLibrary >result
|
||||
. ../testresult.sh
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
. ../testenv.sh
|
||||
voc LSS.Mod LSB.Mod LSC.Mod LSV.Mod lola.Mod -m
|
||||
$OBECOMP LSS.Mod LSB.Mod LSC.Mod LSV.Mod lola.Mod -m
|
||||
./Lola RISC5.Lola result
|
||||
. ../testresult.sh
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
. ../testenv.sh
|
||||
voc signal.mod -m
|
||||
$OBECOMP signal.mod -m
|
||||
./SignalTest x &
|
||||
sleep 1
|
||||
kill -2 $!
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@ sourcechanges:
|
|||
|
||||
|
||||
|
||||
RUNTEST = COMPILER=$(COMPILER) FLAVOUR=$(FLAVOUR) sh ./test.sh "$(INSTALLDIR)"
|
||||
RUNTEST = COMPILER=$(COMPILER) OBECOMP=$(VISHAP) FLAVOUR=$(FLAVOUR) sh ./test.sh "$(INSTALLDIR)"
|
||||
|
||||
confidence:
|
||||
@printf "\n\n--- Confidence tests ---\n\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue