Skip to content

Commit

Permalink
wrong offset
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Oct 30, 2012
1 parent 99c2d02 commit ca6ffe9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/cod3.c
Expand Up @@ -2814,8 +2814,8 @@ code* prolog_saveregs(code *c, regm_t topush)
{
// SUB RSP,16
c = cod3_stackadj(c, 16);
// MOVUPD 8[RSP],xmm
c = genc1(c,STOUPD,modregxrm(2,reg-XMM0,4) + 256*modregrm(0,4,SP),FLconst,8);
// MOVUPD 0[RSP],xmm
c = genc1(c,STOUPD,modregxrm(2,reg-XMM0,4) + 256*modregrm(0,4,SP),FLconst,0);
EBPtoESP += 16;
spoff += 16;
}
Expand Down Expand Up @@ -3396,8 +3396,8 @@ void epilog(block *b)
{
if (reg >= XMM0)
{
// MOVUPD xmm,8[RSP]
c = genc1(c,LODUPD,modregxrm(2,reg-XMM0,4) + 256*modregrm(0,4,SP),FLconst,8);
// MOVUPD xmm,0[RSP]
c = genc1(c,LODUPD,modregxrm(2,reg-XMM0,4) + 256*modregrm(0,4,SP),FLconst,0);
// ADD RSP,16
c = cod3_stackadj(c, -16);
}
Expand Down

0 comments on commit ca6ffe9

Please sign in to comment.