commit ed8a3ceb831499cabb4114380b8d5bcc272c1323
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Fri Aug 12 14:37:34 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
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
@@ -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);

Reply via email to