[hackers] [scc] [cc2-qbe] fix bitwise complement operation || Quentin Carbonneaux

From: <git_AT_suckless.org>
Date: Mon, 27 Feb 2017 21:08:58 +0100 (CET)

commit 917ff92931010c683d6bbabee4c37bd25806f5a3
Author: Quentin Carbonneaux <quentin_AT_c9x.me>
AuthorDate: Mon Feb 27 11:18:15 2017 -0500
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Feb 27 21:08:54 2017 +0100

    [cc2-qbe] fix bitwise complement operation

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index e27c776..c42dfcb 100644
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
_AT_@ -708,7 +708,7 @@ sethi(Node *np)
                 np->address = 11;
                 break;
         case OCPL:
- np->op = OAND;
+ np->op = OBXOR;
                 rp = constnode(NULL, ~(TUINT) 0, &np->type);
                 goto binary;
         case OSNEG:
diff --git a/tests/execute/scc-tests.lst b/tests/execute/scc-tests.lst
index 0ce4b0a..9eafc5d 100644
--- a/tests/execute/scc-tests.lst
+++ b/tests/execute/scc-tests.lst
_AT_@ -97,7 +97,7 @@
 0104-qbebug.c
 0105-shl.c
 0106-ppcast.c
-0107-bnot.c TODO
+0107-bnot.c
 0108-bug.c
 0109-struct.c
 0110-typedefcast.c
Received on Mon Feb 27 2017 - 21:08:58 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 27 2017 - 21:12:18 CET