Skip to content

Commit

Permalink
fix Issue Internal error: ../ztc/cod1.c 3510 with SIMD on OSX 32
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jan 16, 2013
1 parent ecb14d7 commit 7f3232a
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/backend/cod1.c
Expand Up @@ -3507,9 +3507,24 @@ code *params(elem *e,unsigned stackalign)
break;
if (I32)
{
assert(sz == REGSIZE * 2);
ce = loadea(e,&cs,0xFF,6,REGSIZE,0,0); /* PUSH EA+4 */
assert(sz >= REGSIZE * 2);
ce = loadea(e,&cs,0xFF,6,sz - REGSIZE,0,0); /* PUSH EA+4 */
ce = genadjesp(ce,REGSIZE);
stackpush += REGSIZE;
sz -= REGSIZE;

if (sz > REGSIZE)
{
while (sz)
{
cs.IEVoffset1 -= REGSIZE;
ce = gen(ce,&cs); // PUSH EA+...
ce = genadjesp(ce,REGSIZE);
stackpush += REGSIZE;
sz -= REGSIZE;
}
goto L2;
}
}
else
{
Expand Down

0 comments on commit 7f3232a

Please sign in to comment.