fxed bugs and missing inlcude
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Thu, 19 Jan 2006 10:48:59 +0000 (10:48 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Thu, 19 Jan 2006 10:48:59 +0000 (10:48 +0000)
ir/be/ia32/bearch_ia32.c
ir/be/ia32/ia32_transform.c

index 0078f39..473664d 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "pseudo_irg.h"
 #include "irgwalk.h"
 #include "irprog.h"
index b2e511c..74f4313 100644 (file)
@@ -252,7 +252,7 @@ ir_node *generate_Mul(transform_env_t *env, ir_node *op1, ir_node *op2, op_flavo
        /* create the mul */
        if (is_imm_op) {
                mul = new_rd_ia32_Mul_i(dbg, irg, block, op1, mode_T);
-               set_ia32_Immop_attr(res, op2);
+               set_ia32_Immop_attr(mul, op2);
        }
        else {
                mul = new_rd_ia32_Mul(dbg, irg, block, op1, op2, mode_T);