shithub: riscv

Download patch

ref: 9124e491e5d172feec53dd662c2fe6d999cb2d3f
parent: 20dc40d19bc63ff5d3a88248ce9864be5b2284c4
parent: 74a557a167533d37ddd551c2d222fe208c5a4302
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Oct 3 08:19:31 EDT 2015

merge

--- a/sys/src/cmd/8c/cgen64.c
+++ b/sys/src/cmd/8c/cgen64.c
@@ -1575,6 +1575,13 @@
 	cmp = 0;
 	sh = 0;
 
+	if(nn != Z && nn->complex >= FNX){
+		reglcgen(&nod1, nn, Z);
+		m = cgen64(n, &nod1);
+		regfree(&nod1);
+		return m;
+	}
+
 	switch(n->op) {
 	case ONEG:
 		d = regpair(nn, n);