Showing with 14 additions and 2 deletions.
  1. +2 −2 src/backend/cod1.c
  2. +12 −0 test/runnable/test42.d
4 changes: 2 additions & 2 deletions src/backend/cod1.c
Original file line number Diff line number Diff line change
Expand Up @@ -4249,8 +4249,8 @@ code *loaddata(elem *e,regm_t *pretregs)
}
else if (I64 && sz == 16)
{
ce = movregconst(CNIL,findreglsw(forregs),e->EV.Vcent.lsw,0);
ce = movregconst(ce,findregmsw(forregs),e->EV.Vcent.msw,0);
ce = movregconst(CNIL,findreglsw(forregs),e->EV.Vcent.lsw,64);
ce = movregconst(ce,findregmsw(forregs),e->EV.Vcent.msw,64);
}
else
assert(0);
Expand Down
12 changes: 12 additions & 0 deletions test/runnable/test42.d
Original file line number Diff line number Diff line change
Expand Up @@ -5983,6 +5983,17 @@ label:
assert(s.num == 10);
}

/***************************************************/
// 14430

void setCookie(long x = 1L << 32L, string y = null){
assert(y.ptr is null);
}

void test14430(){
setCookie();
}

/***************************************************/

int main()
Expand Down Expand Up @@ -6277,6 +6288,7 @@ int main()
test10642();
test7436();
test12138();
test14430();

writefln("Success");
return 0;
Expand Down