changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: 7c: don't emit SXTW for non-register source operand

changeset 7176: 8eca5306b6d9
parent 7175: 8867b8f3fb3e
child 7177: eb2ef71ad17e
author: cinap_lenrek@felloff.net
date: Thu, 25 Apr 2019 19:44:16 +0200
files: sys/src/cmd/7c/txt.c
description: 7c: don't emit SXTW for non-register source operand
     1.1--- a/sys/src/cmd/7c/txt.c
     1.2+++ b/sys/src/cmd/7c/txt.c
     1.3@@ -764,7 +764,7 @@ gmove(Node *f, Node *t)
     1.4 			if(typeu[ft])
     1.5 				a = AMOVWU;
     1.6 			else
     1.7-				a = ASXTW;
     1.8+				a = (f->op == OREGISTER) ? ASXTW : AMOVW;
     1.9 			break;
    1.10 		}
    1.11 		break;