changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: 7l: fix vlong constants in literal pool for non-MOV instructions

changeset 7146: ffe417e0ec24
parent 7145: 84d616f1d180
child 7147: a2a8cdde9873
author: cinap_lenrek@felloff.net
date: Mon, 08 Apr 2019 14:15:39 +0200
files: sys/src/cmd/7l/span.c
description: 7l: fix vlong constants in literal pool for non-MOV instructions
     1.1--- a/sys/src/cmd/7l/span.c
     1.2+++ b/sys/src/cmd/7l/span.c
     1.3@@ -207,7 +207,7 @@ addpool(Prog *p, Adr *a)
     1.4 	t = zprg;
     1.5 	t.as = AWORD;
     1.6 	sz = 4;
     1.7-	if(p->as == AMOV) {
     1.8+	if(p->as == AMOV || (cmp(C_VCON, c) && (ulong)(a->offset & 0xFFFFFFFF) != a->offset)) {
     1.9 		t.as = ADWORD;
    1.10 		sz = 8;
    1.11 	}