From 11c8428be5a911c376f7af92a261fe0326f66bae Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 20 Oct 2011 18:01:28 +0200 Subject: [PATCH] irmode: remove support for exotic arithmetics --- include/libfirm/irmode.h | 10 ---------- ir/ir/irio.c | 3 --- ir/ir/irmode.c | 5 +---- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/include/libfirm/irmode.h b/include/libfirm/irmode.h index 4fcd3097a..b4379df26 100644 --- a/include/libfirm/irmode.h +++ b/include/libfirm/irmode.h @@ -83,19 +83,9 @@ typedef enum ir_mode_arithmetic { irma_twos_complement = 2, /**< Values of the mode are represented as two's complement. Only legal for modes of sort int_number and reference. */ - irma_ones_complement, /**< Values of the mode are represented as one's - complement. Only legal for modes of sort - int_number and reference. */ - irma_int_BCD, /**< Values of the mode are represented as binary - coded decimals. Only legal for modes of sort - int_number and reference. */ irma_ieee754 = 256, /**< Values of the mode are represented according to ieee754 floating point standard. Only legal for modes of sort float_number. */ - irma_float_BCD, /**< Values of the mode are represented as binary - coded decimals according to @@@ which - standards??? Only legal for modes of sort - float_number. */ irma_max } ir_mode_arithmetic; diff --git a/ir/ir/irio.c b/ir/ir/irio.c index 311e3bd2c..5ee28f876 100644 --- a/ir/ir/irio.c +++ b/ir/ir/irio.c @@ -247,10 +247,7 @@ static void symtbl_init(void) INSERTENUM(tt_mode_arithmetic, irma_uninitialized); INSERTENUM(tt_mode_arithmetic, irma_none); INSERTENUM(tt_mode_arithmetic, irma_twos_complement); - INSERTENUM(tt_mode_arithmetic, irma_ones_complement); - INSERTENUM(tt_mode_arithmetic, irma_int_BCD); INSERTENUM(tt_mode_arithmetic, irma_ieee754); - INSERTENUM(tt_mode_arithmetic, irma_float_BCD); INSERTENUM(tt_pin_state, op_pin_state_floats); INSERTENUM(tt_pin_state, op_pin_state_pinned); diff --git a/ir/ir/irmode.c b/ir/ir/irmode.c index 03b7f5aef..4d0da3da4 100644 --- a/ir/ir/irmode.c +++ b/ir/ir/irmode.c @@ -54,10 +54,7 @@ const char *get_mode_arithmetic_name(ir_mode_arithmetic ari) X(irma_uninitialized); X(irma_none); X(irma_twos_complement); - X(irma_ones_complement); - X(irma_int_BCD); X(irma_ieee754); - X(irma_float_BCD); default: return ""; } #undef X @@ -931,7 +928,7 @@ int is_reinterpret_cast(const ir_mode *src, const ir_mode *dst) if (ma != get_mode_arithmetic(dst)) return 0; - return ma == irma_twos_complement || ma == irma_ones_complement; + return ma == irma_twos_complement; } ir_type *(get_type_for_mode) (const ir_mode *mode) -- 2.20.1