scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 917ff92931010c683d6bbabee4c37bd25806f5a3
parent cf4d2d36e7ee668f37adf72cfc628882a0630a26
Author: Quentin Carbonneaux <quentin@c9x.me>
Date:   Mon, 27 Feb 2017 11:18:15 -0500

[cc2-qbe] fix bitwise complement operation

Diffstat:
Mcc2/arch/qbe/cgen.c | 2+-
Mtests/execute/scc-tests.lst | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c @@ -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 @@ -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