Added test case for pbqp construction: There seems to be missing skip patterns, so...
[libfirm] / ir / be / mips / bearch_mips.c
index 29dbf64..58aa6a6 100644 (file)
@@ -236,10 +236,10 @@ static void mips_set_frame_entity(ir_node *node, ir_entity *entity)
        mips_load_store_attr_t *attr;
 
        if(!is_mips_irn(node)) {
-               panic("trying to set frame entity on non load/store node %+F\n", node);
+               panic("trying to set frame entity on non load/store node %+F", node);
        }
        if(!mips_is_Load(node) && !mips_is_Store(node)) {
-               panic("trying to set frame entity on non load/store node %+F\n", node);
+               panic("trying to set frame entity on non load/store node %+F", node);
        }
 
        attr = get_irn_generic_attr(node);
@@ -255,10 +255,10 @@ static void mips_set_frame_offset(ir_node *node, int offset)
        mips_load_store_attr_t *attr;
 
        if(!is_mips_irn(node)) {
-               panic("trying to set frame offset on non load/store node %+F\n", node);
+               panic("trying to set frame offset on non load/store node %+F", node);
        }
        if(!mips_is_Load(node) && !mips_is_Store(node)) {
-               panic("trying to set frame offset on non load/store node %+F\n", node);
+               panic("trying to set frame offset on non load/store node %+F", node);
        }
 
        attr = get_irn_generic_attr(node);
@@ -398,7 +398,7 @@ typedef struct _wenv_t {
 static void collect_copyb_nodes(ir_node *node, void *env) {
        wenv_t *wenv = env;
 
-       if (get_irn_op(node) == op_CopyB) {
+       if (is_CopyB(node)) {
                set_irn_link(node, wenv->list);
                wenv->list = node;
        }
@@ -692,7 +692,7 @@ static void mips_abi_dont_save_regs(void *self, pset *s)
                pset_insert_ptr(s, env->arch_env->bp);
 }
 
-static const arch_register_t *mips_abi_prologue(void *self, ir_node** mem, pmap *reg_map)
+static const arch_register_t *mips_abi_prologue(void *self, ir_node** mem, pmap *reg_map, int *stack_bias)
 {
        mips_abi_env_t *env = self;
        ir_graph *irg = env->irg;
@@ -701,7 +701,9 @@ static const arch_register_t *mips_abi_prologue(void *self, ir_node** mem, pmap
        ir_node *fp = be_abi_reg_map_get(reg_map, &mips_gp_regs[REG_FP]);
        int initialstackframesize;
 
-       if(env->debug) {
+       (void) stack_bias;
+
+       if (env->debug) {
                /*
                 * The calling conventions wants a stack frame of at least 24bytes size with
                 *   a0-a3 saved in offset 0-12
@@ -998,11 +1000,11 @@ static asm_constraint_flags_t mips_parse_asm_constraint(const void *self,
        return ASM_CONSTRAINT_FLAG_INVALID;
 }
 
-static bool mips_is_valid_clobber(const void *self, const char *clobber)
+static int mips_is_valid_clobber(const void *self, const char *clobber)
 {
        (void) self;
        (void) clobber;
-       return false;
+       return 0;
 }
 
 const arch_isa_if_t mips_isa_if = {