added TestJmp for test, r, r, jcc combination
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 18 Mar 2006 12:15:10 +0000 (12:15 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 18 Mar 2006 12:15:10 +0000 (12:15 +0000)
ir/be/ia32/ia32_spec.pl

index 8e242b0..555daab 100644 (file)
@@ -345,6 +345,14 @@ $comment_string = ';';
   "reg_req"   => { "in" => [ "gp", "gp", "gp", "gp", "none" ], "out" => [ "none", "none" ] },
 },
 
+"TestJmp" => {
+  "op_flags"  => "L|X|Y",
+  "comment"   => "construct conditional jump: TEST A, B && JMPxx LABEL",
+  "reg_req"  => { "in" => [ "gp", "gp" ], "out" => [ "none" ] },
+  "cmp_attr"  => "  return ia32_compare_immop_attr(attr_a, attr_b);\n",
+},
+
+
 "SwitchJmp" => {
   "op_flags"  => "L|X|Y",
   "comment"   => "construct switch",