BugFix: get the high mode from the second result in map_Mod()
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 7 Dec 2007 13:45:17 +0000 (13:45 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 7 Dec 2007 13:45:17 +0000 (13:45 +0000)
[r16921]

ir/be/ia32/ia32_intrinsics.c

index 88c02f2..7abb56d 100644 (file)
@@ -634,7 +634,7 @@ static int map_Div(ir_node *call, void *ctx) {
 static int map_Mod(ir_node *call, void *ctx) {
        ia32_intrinsic_env_t *env = ctx;
        ir_type   *method    = get_Call_type(call);
-       ir_mode   *h_mode    = get_type_mode(get_method_res_type(method, 0));
+       ir_mode   *h_mode    = get_type_mode(get_method_res_type(method, 1));
        ir_node   *ptr;
        ir_entity *ent;
        symconst_symbol sym;