Skip to content

Commit 8c4a95f

Browse files
WalterBrightthewilsonator
authored andcommitted
add has to be in addition to fixup
1 parent 6b7bbdd commit 8c4a95f

File tree

1 file changed

+7
-3
lines changed
  • compiler/src/dmd/backend/arm

1 file changed

+7
-3
lines changed

compiler/src/dmd/backend/arm/cod2.d

+7-3
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,8 @@ static if (0)
13301330
{ cgstate.stackchanged = 1;
13311331
cs.Iop = 0x68; /* PUSH immed16 */
13321332
cdb.genadjesp(REGSIZE);
1333+
cs.IFL1 = fl;
1334+
cdb.gen(&cs);
13331335
}
13341336
else
13351337
{
@@ -1338,10 +1340,12 @@ static if (0)
13381340

13391341
cs.Iop = INSTR.addsub_imm(1,0,0,0,0,reg,reg); // ADD reg,reg,#0
13401342
cs.Iflags |= CFadd;
1343+
cs.IFL1 = fl;
1344+
cdb.gen(&cs);
1345+
1346+
if (e.Voffset)
1347+
cdb.gen1(INSTR.addsub_imm(1,0,0,0,cast(uint)e.Voffset,reg,reg)); // ADD reg,reg,#Voffset
13411348
}
1342-
//cs.Iflags = CFoff; /* want offset only */
1343-
cs.IFL1 = fl;
1344-
cdb.gen(&cs);
13451349
break;
13461350

13471351
case FL.reg:

0 commit comments

Comments
 (0)