Commit 910e0442 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix float modes always getting irma_ieee754

parent 236c08e5
......@@ -290,7 +290,7 @@ ir_mode *new_float_mode(const char *name, ir_mode_arithmetic arithmetic,
if (mantissa_size >= 256)
panic("Mantissa >= 256 bits not supported");
result = alloc_mode(name, irms_float_number, irma_ieee754, bit_size, 1, 0);
result = alloc_mode(name, irms_float_number, irma_x86_extended_float, bit_size, 1, 0);
result->float_desc.exponent_size = exponent_size;
result->float_desc.mantissa_size = mantissa_size;
result->float_desc.explicit_one = explicit_one;
......
......@@ -1484,6 +1484,7 @@ unsigned char get_tarval_sub_bits(ir_tarval *tv, unsigned byte_ofs)
case irma_twos_complement:
return sc_sub_bits(tv->value, get_mode_size_bits(tv->mode), byte_ofs);
case irma_ieee754:
case irma_x86_extended_float:
return fc_sub_bits((const fp_value*) tv->value, get_mode_size_bits(tv->mode), byte_ofs);
default:
panic("get_tarval_sub_bits(): arithmetic mode not supported");
......
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