ref: 20deb5cd41e4d785cd3c40fd6bb9ec70d16aeaf3
parent: 022532e3e74a94ff9a194378c5a9f7a4904d82d3
author: Quentin Carbonneaux <quentin@c9x.me>
date: Mon Feb 27 06:18:15 EST 2017
[cc2-qbe] fix bitwise complement operation
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -708,7 +708,7 @@
np->address = 11;
break;
case OCPL:
- np->op = OAND;
+ np->op = OBXOR;
rp = constnode(NULL, ~(TUINT) 0, &np->type);
goto binary;
case OSNEG:
--- a/tests/execute/scc-tests.lst
+++ b/tests/execute/scc-tests.lst
@@ -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