[hackers] [scc/qbe] [cc2-qbe] Fix OSNEG in sethi() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 12 Aug 2016 14:48:41 +0200 (CEST)

commit ed8a3ceb831499cabb4114380b8d5bcc272c1323
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Aug 12 14:37:34 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Aug 12 14:37:34 2016 +0200

    [cc2-qbe] Fix OSNEG in sethi()
    
    After the addition of operator 'n' ONEG in so longer
    the sign negation, and this case was not changed to
    use the new name.

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index 100417e..f06b9db 100644
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
_AT_@ -402,7 +402,7 @@ sethi(Node *np)
                 np->op = OAND;
                 rp = constnode(~(TUINT) 0, &np->type);
                 goto binary;
- case ONEG:
+ case OSNEG:
                 np->op = OSUB;
                 rp = lp;
                 lp = constnode(0, &np->type);
Received on Fri Aug 12 2016 - 14:48:41 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 12 2016 - 15:00:17 CEST