Commit 11c8428b authored by Matthias Braun's avatar Matthias Braun
Browse files

irmode: remove support for exotic arithmetics

parent a53a89cf
......@@ -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;
......
......@@ -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);
......
......@@ -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 "<unknown>";
}
#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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment