From cbce6d2bac82351154edb69d6e8f78b4b8dcaa65 Mon Sep 17 00:00:00 2001 From: James Lyon Date: Fri, 19 Apr 2013 22:05:49 +0100 Subject: Improved x86-64 XMM register argument passing. Also made XMM0-7 available for use as temporary registers, since they are not used by the ABI. I'd like to do the same with RSI and RDI but that's trickier since they can be used by gv() as temporary registers and there isn't a way to disable that. --- tccgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tccgen.c') diff --git a/tccgen.c b/tccgen.c index f4de9f4..8f2f1bd 100644 --- a/tccgen.c +++ b/tccgen.c @@ -764,7 +764,7 @@ ST_FUNC int gv(int rc) #endif r = vtop->r & VT_VALMASK; - rc2 = RC_INT; + rc2 = (rc & RC_FLOAT) ? RC_FLOAT : RC_INT; if (rc == RC_IRET) rc2 = RC_LRET; #ifdef TCC_TARGET_X86_64 -- cgit v1.3.1