From: Florian Krohm Date: Thu, 24 Jan 2013 04:59:49 +0000 (+0000) Subject: Fix HReg <--> integer mixup. vreg2ireg returns an HReg not an integer. X-Git-Tag: svn/VALGRIND_3_9_0^2~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89e5962837ac56433b3f272cff03d0fb854e7944;p=thirdparty%2Fvalgrind.git Fix HReg <--> integer mixup. vreg2ireg returns an HReg not an integer. git-svn-id: svn://svn.valgrind.org/vex/trunk@2655 --- diff --git a/VEX/priv/host_amd64_defs.c b/VEX/priv/host_amd64_defs.c index 47d3a20c1e..09515c15a9 100644 --- a/VEX/priv/host_amd64_defs.c +++ b/VEX/priv/host_amd64_defs.c @@ -1940,7 +1940,7 @@ static UChar iregBits3210 ( HReg r ) fakery which facilitates using functions that work on integer register numbers to be used when assembling SSE instructions too. */ -static UInt vreg2ireg ( HReg r ) +static HReg vreg2ireg ( HReg r ) { UInt n; vassert(hregClass(r) == HRcVec128); @@ -1951,7 +1951,7 @@ static UInt vreg2ireg ( HReg r ) } //uu /* Ditto for ymm regs. */ -//uu static UInt dvreg2ireg ( HReg r ) +//uu static HReg dvreg2ireg ( HReg r ) //uu { //uu UInt n; //uu vassert(hregClass(r) == HRcVec256);