mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-19 19:20:23 +02:00
x86-64 now passes test suite
2006-11-20 Paolo Bonzini <bonzini@gnu.org> * lightning/i386/core-i386.h: Move jit_movip, jit_check8, jit_reg8, jit_reg16, jit_movbrm... * lightning/i386/core-32.h: ... here. * lightning/i386/core-64.h: Redefine them. Fix other bugs. * tests/printf.c: Do not do a varargs call. git-archimport-id: bonzini@gnu.org--2004b/lightning--stable--1.2--patch-44
This commit is contained in:
parent
2534af6d2d
commit
c1725c9320
5 changed files with 37 additions and 16 deletions
|
@ -40,6 +40,11 @@ static char codeBuffer[1024];
|
|||
|
||||
typedef void (*pvfi)(int); /* Pointer to Void Function of Int */
|
||||
|
||||
static void display_message (char *msg, int value)
|
||||
{
|
||||
printf (msg, value);
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
pvfi myFunction; /* ptr to generated code */
|
||||
|
@ -55,7 +60,7 @@ int main()
|
|||
jit_prepare_i(2);
|
||||
jit_pusharg_i(JIT_R1); /* push in reverse order */
|
||||
jit_pusharg_p(JIT_R0);
|
||||
jit_finish(printf);
|
||||
jit_finish(display_message);
|
||||
jit_ret();
|
||||
end = jit_get_ip().ptr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue