ref: 39021320ba2df3a66a0f181683019cdee6667de9
parent: 71fbf8ad9e06c29514a12e8840e59d3f50e33b4c
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Mar 9 04:21:09 EST 2017
[cc2-qbe] Remove AS operands related to CPL Qbe hasn't 1 complement operands. They are implemented using xor operation.
--- a/cc2/arch/qbe/arch.h
+++ b/cc2/arch/qbe/arch.h
@@ -43,7 +43,6 @@
ASBANDW,
ASBORW,
ASBXORW,
- ASCPLW,
ASADDL,
ASSUBL,
@@ -68,7 +67,6 @@
ASBANDL,
ASBORL,
ASBXORL,
- ASCPLL,
ASADDS,
ASSUBS,
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -31,7 +31,6 @@
[OBAND] = ASBANDW,
[OBOR] = ASBORW,
[OBXOR] = ASBXORW,
- [OCPL] = ASCPLW
};
static char opasml[] = {
@@ -51,7 +50,6 @@
[OBAND] = ASBANDL,
[OBOR] = ASBORL,
[OBXOR] = ASBXORL,
- [OCPL] = ASCPLL
};
static char opasms[] = {