7l: fix vlong constants in literal pool for non-MOV instructions

front
cinap_lenrek 2019-04-08 14:15:39 +02:00
parent 12fc1c7d3e
commit b56ba6210f
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ addpool(Prog *p, Adr *a)
t = zprg;
t.as = AWORD;
sz = 4;
if(p->as == AMOV) {
if(p->as == AMOV || (cmp(C_VCON, c) && (ulong)(a->offset & 0xFFFFFFFF) != a->offset)) {
t.as = ADWORD;
sz = 8;
}