From: Christian Würdig Date: Wed, 2 Aug 2006 15:48:32 +0000 (+0000) Subject: added GetST0 and SetST0 nodes X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=7e0f6e526505c5de950c07572ac1514c7f9c0b36;p=libfirm added GetST0 and SetST0 nodes --- diff --git a/ir/be/ia32/ia32_spec.pl b/ir/be/ia32/ia32_spec.pl index a728fa582..61ed661e6 100644 --- a/ir/be/ia32/ia32_spec.pl +++ b/ir/be/ia32/ia32_spec.pl @@ -894,6 +894,28 @@ else { "arity" => 3, }, +"GetST0" => { + "op_flags" => "L|F", + "irn_flags" => "I", + "state" => "exc_pinned", + "comment" => "store ST0 onto stack", + "cmp_attr" => " return ia32_compare_immop_attr(attr_a, attr_b);\n", + "reg_req" => { "in" => [ "gp", "none" ] }, + "emit" => '. fstp %ia32_emit_am /* store ST0 onto stack */', + "outs" => [ "M" ], +}, + +"SetST0" => { + "op_flags" => "L|F", + "irn_flags" => "I", + "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" ] }, + "emit" => '. fld %ia32_emit_am /* load ST0 from stack */', + "outs" => [ "res", "M" ], +}, + # CopyB "CopyB" => {