allow backend to specify endianess, rewrite bitfield emitter to handle little and...
[libfirm] / ir / be / ia32 / ia32_finish.c
index 011b796..2be7d29 100644 (file)
@@ -240,18 +240,7 @@ static int get_first_same(const arch_register_req_t* req)
        for (i = 0; i < 32; ++i) {
                if (other & (1U << i)) return i;
        }
-       assert(! "same position not found");
-       return 32;
-}
-
-static inline bool is_unknown_reg(const arch_register_t *reg)
-{
-       if (reg == &ia32_gp_regs[REG_GP_UKNWN]
-                       || reg == &ia32_xmm_regs[REG_XMM_UKNWN]
-                       || reg == &ia32_vfp_regs[REG_VFP_UKNWN])
-               return true;
-
-       return false;
+       panic("same position not found");
 }
 
 /**
@@ -294,9 +283,6 @@ static void assure_should_be_same_requirements(ir_node *node)
                /* requirement already fulfilled? */
                if (in_reg == out_reg)
                        continue;
-               /* unknowns can be changed to any register we want on emitting */
-               if (is_unknown_reg(in_reg))
-                       continue;
                cls = arch_register_get_class(in_reg);
                assert(cls == arch_register_get_class(out_reg));