Commit b2fdd744 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Make mode_b a single bit wide and give tarval_b_false/true a value representation.

parent e6a3b3d6
......@@ -546,7 +546,7 @@ void init_mode(void)
mode_T = new_non_data_mode("T");
mode_ANY = new_non_data_mode("ANY");
mode_BAD = new_non_data_mode("BAD");
mode_b = alloc_mode("b", irms_internal_boolean, irma_none, 0, 0, 0);
mode_b = alloc_mode("b", irms_internal_boolean, irma_none, 1, 0, 0);
mode_b = register_mode(mode_b);
mode_F = new_float_mode("F", irma_ieee754, 8, 23, ir_overflow_min_max);
......
......@@ -1582,9 +1582,11 @@ void init_tarval_2(void)
tarval_b_true->kind = k_tarval;
tarval_b_true->mode = mode_b;
tarval_b_true->value = "\1";
tarval_b_false->kind = k_tarval;
tarval_b_false->mode = mode_b;
tarval_b_false->value = "\0";
tarval_unreachable->kind = k_tarval;
tarval_unreachable->mode = mode_X;
......
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