summaryrefslogtreecommitdiff
path: root/src/cmd/5c/cgen.c
diff options
context:
space:
mode:
authorKai Backman <kaib@golang.org>2009-10-12 13:35:28 -0700
committerKai Backman <kaib@golang.org>2009-10-12 13:35:28 -0700
commitcaefa9cd2eef632fb98b7be31281b53c46b3591e (patch)
tree0b23dffb0ec98a65459b2b24507e882cac3faec4 /src/cmd/5c/cgen.c
parentec29361dd1f3e29d8a1fcde59eaf1cd82ec28207 (diff)
downloadgo-caefa9cd2eef632fb98b7be31281b53c46b3591e.tar.gz
changed 5c 64 bit word ordering to little endian so it matches
5g. fixes to 64 bit code gen. added (finally) function to do shifts properly. go/test: passes 83% (287/342) R=rsc APPROVED=rsc DELTA=156 (50 added, 53 deleted, 53 changed) OCL=35589 CL=35616
Diffstat (limited to 'src/cmd/5c/cgen.c')
-rw-r--r--src/cmd/5c/cgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/5c/cgen.c b/src/cmd/5c/cgen.c
index bbad8a179..9e74f515b 100644
--- a/src/cmd/5c/cgen.c
+++ b/src/cmd/5c/cgen.c
@@ -916,12 +916,12 @@ sugen(Node *n, Node *nn, int32 w)
reglcgen(&nod1, nn, Z);
nn->type = t;
- if(1 || align(0, types[TCHAR], Aarg1)) /* isbigendian */
+ if(isbigendian)
gopcode(OAS, nod32const(n->vconst>>32), Z, &nod1);
else
gopcode(OAS, nod32const(n->vconst), Z, &nod1);
nod1.xoffset += SZ_LONG;
- if(1 || align(0, types[TCHAR], Aarg1)) /* isbigendian */
+ if(isbigendian)
gopcode(OAS, nod32const(n->vconst), Z, &nod1);
else
gopcode(OAS, nod32const(n->vconst>>32), Z, &nod1);