From f268c295a380747df60f9e5d304c74e3826ed7e9 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 5 Jun 2013 10:39:06 -0400 Subject: [PATCH] cmd/6c: use full 64-bit address in block copy Already fixed independently in Plan 9. R=ken2 CC=golang-dev https://golang.org/cl/10041044 --- src/cmd/6c/cgen.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cmd/6c/cgen.c b/src/cmd/6c/cgen.c index 7afacb21778..e5887a315fe 100644 --- a/src/cmd/6c/cgen.c +++ b/src/cmd/6c/cgen.c @@ -1679,7 +1679,7 @@ copy: if(n->complex >= FNX && nn != nil && nn->complex >= FNX) { t = nn->type; - nn->type = types[TLONG]; + nn->type = types[TIND]; regialloc(&nod1, nn, Z); lcgen(nn, &nod1); regsalloc(&nod2, nn); @@ -1786,7 +1786,7 @@ copy: c = 0; if(n->complex > nn->complex) { t = n->type; - n->type = types[TLONG]; + n->type = types[TIND]; nodreg(&nod1, n, D_SI); if(reg[D_SI]) { gins(APUSHQ, &nod1, Z); @@ -1797,7 +1797,7 @@ copy: n->type = t; t = nn->type; - nn->type = types[TLONG]; + nn->type = types[TIND]; nodreg(&nod2, nn, D_DI); if(reg[D_DI]) { warn(Z, "DI botch"); @@ -1809,7 +1809,7 @@ warn(Z, "DI botch"); nn->type = t; } else { t = nn->type; - nn->type = types[TLONG]; + nn->type = types[TIND]; nodreg(&nod2, nn, D_DI); if(reg[D_DI]) { warn(Z, "DI botch"); @@ -1821,7 +1821,7 @@ warn(Z, "DI botch"); nn->type = t; t = n->type; - n->type = types[TLONG]; + n->type = types[TIND]; nodreg(&nod1, n, D_SI); if(reg[D_SI]) { gins(APUSHQ, &nod1, Z);