Commit ccc3b043 authored by Christian Würdig's avatar Christian Würdig
Browse files

fixed SetST0 register settings

parent d148e281
......@@ -1676,9 +1676,7 @@ static void ia32_get_call_abi(const void *self, ir_type *method_type, be_abi_cal
assert(is_atomic_type(tp));
mode = get_type_mode(tp);
reg = mode_is_float(mode) ?
(USE_SSE2(isa) ? &ia32_st_regs[REG_ST0] : &ia32_vfp_regs[REG_VF0]) :
&ia32_gp_regs[REG_EAX];
reg = mode_is_float(mode) ? &ia32_vfp_regs[REG_VF0] : &ia32_gp_regs[REG_EAX];
be_abi_call_res_reg(abi, 0, reg);
}
......
......@@ -979,7 +979,7 @@ else {
"state" => "exc_pinned",
"comment" => "load ST0 from stack",
"cmp_attr" => " return ia32_compare_immop_attr(attr_a, attr_b);\n",
"reg_req" => { "in" => [ "gp", "none" ], "out" => [ "st0", "none" ] },
"reg_req" => { "in" => [ "gp", "none" ], "out" => [ "vf0", "none" ] },
"emit" => '. fld %ia32_emit_am /* load ST0 from stack */',
"outs" => [ "res", "M" ],
"latency" => 2,
......
Supports Markdown
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