8c: make cgen64() compile target first when it contains functoin call so final assignment wont trash the registers

This commit is contained in:
cinap_lenrek 2015-10-03 12:18:20 +02:00
parent cde69a7822
commit 74a557a167

View file

@ -1575,6 +1575,13 @@ cgen64(Node *n, Node *nn)
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);