[hackers] [scc] [cc2-qbe] Remove AS operands related to CPL || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 9 Mar 2017 09:31:45 +0100 (CET)

commit 3e884761033d152fc86c21ab537c00d877b864d4
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Mar 9 09:21:09 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Mar 9 09:21:09 2017 +0100

    [cc2-qbe] Remove AS operands related to CPL
    
    Qbe hasn't 1 complement operands. They are implemented using xor operation.

diff --git a/cc2/arch/qbe/arch.h b/cc2/arch/qbe/arch.h
index d6e6b05..80bc2e3 100644
--- a/cc2/arch/qbe/arch.h
+++ b/cc2/arch/qbe/arch.h
_AT_@ -43,7 +43,6 @@ enum asmop {
         ASBANDW,
         ASBORW,
         ASBXORW,
- ASCPLW,
 
         ASADDL,
         ASSUBL,
_AT_@ -68,7 +67,6 @@ enum asmop {
         ASBANDL,
         ASBORL,
         ASBXORL,
- ASCPLL,
 
         ASADDS,
         ASSUBS,
diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index 515b40b..cb6fac9 100644
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
_AT_@ -31,7 +31,6 @@ static char opasmw[] = {
         [OBAND] = ASBANDW,
         [OBOR] = ASBORW,
         [OBXOR] = ASBXORW,
- [OCPL] = ASCPLW
 };
 
 static char opasml[] = {
_AT_@ -51,7 +50,6 @@ static char opasml[] = {
         [OBAND] = ASBANDL,
         [OBOR] = ASBORL,
         [OBXOR] = ASBXORL,
- [OCPL] = ASCPLL
 };
 
 static char opasms[] = {
Received on Thu Mar 09 2017 - 09:31:45 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 09 2017 - 09:36:23 CET