From: benl@ouroborus.net Date: Wed, 23 Jun 2010 09:58:13 +0000 (+0000) Subject: NCG: Fix off-by-one error in realRegSqueeze X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=2111fbcd87caec8e05250df399a6d63420807e71 NCG: Fix off-by-one error in realRegSqueeze --- diff --git a/compiler/nativeGen/X86/Regs.hs b/compiler/nativeGen/X86/Regs.hs index b9a23a6..943a7a3 100644 --- a/compiler/nativeGen/X86/Regs.hs +++ b/compiler/nativeGen/X86/Regs.hs @@ -111,7 +111,7 @@ realRegSqueeze cls rr RcDouble -> case rr of RealRegSingle regNo - | regNo >= firstfake && regNo < lastfake -> _ILIT(1) + | regNo >= firstfake && regNo <= lastfake -> _ILIT(1) | otherwise -> _ILIT(0) RealRegPair{} -> _ILIT(0)