ref: b56ba6210fe44f119ddca9011ab66b4496e37466
parent: 12fc1c7d3e04649fb7d213d16f9da597726dd7b6
author: cinap_lenrek <[email protected]>
date: Mon Apr 8 10:15:39 EDT 2019
7l: fix vlong constants in literal pool for non-MOV instructions
--- a/sys/src/cmd/7l/span.c
+++ b/sys/src/cmd/7l/span.c
@@ -207,7 +207,7 @@
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;
}