Skip to content

Commit d1f5972

Browse files
authored
getting first two tests in exe1.c to run (dlang#20968)
1 parent 8812065 commit d1f5972

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,6 @@ void loaddata(ref CodeBuilder cdb, elem* e, ref regm_t outretregs)
21482148
if (movOnly(e))
21492149
opmv = 0x8B;
21502150
}
2151-
assert(forregs & BYTEREGS);
21522151
if (!I16)
21532152
{
21542153
if (config.target_cpu >= TARGET_PentiumPro && config.flags4 & CFG4speed &&

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ void cdshtlng(ref CGstate cg, ref CodeBuilder cdb,elem* e,ref regm_t pretregs)
15691569
(e1.Eoper == OPind && !e1.Ecount))
15701570
{
15711571
code cs;
1572-
getlvalue(cdb,cs,e11,0,RM.load);
1572+
getlvalue(cdb,cs,e1,0,RM.load);
15731573
retregs = pretregs;
15741574
if (!retregs)
15751575
retregs = cg.allregs;

compiler/test/runnable/exe1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,8 +1417,8 @@ void regmath()
14171417

14181418
void regmath_386()
14191419
{
1420-
long int j,k;
1421-
long i;
1420+
long long int j,k;
1421+
long long i;
14221422

14231423
/* time_0();*/
14241424

0 commit comments

Comments
 (0)