Commit 253b5120 by Richard Kenner

(b{eq,ne,ge,lt}0_di): Fixed for non-MOTOROLA syntax.

From-SVN: r9689
parent 98c748b8
...@@ -5145,15 +5145,27 @@ ...@@ -5145,15 +5145,27 @@
"* "*
{ {
if (which_alternative == 1) if (which_alternative == 1)
#ifdef MOTOROLA
return \"move%.l %0,%2\;or%.l %0,%2\;jbeq %l1\"; return \"move%.l %0,%2\;or%.l %0,%2\;jbeq %l1\";
#else
return \"move%.l %0,%2\;or%.l %0,%2\;jeq %l1\";
#endif
if (GET_CODE (operands[0]) == REG) if (GET_CODE (operands[0]) == REG)
operands[3] = gen_rtx (REG, SImode, REGNO (operands[0]) + 1); operands[3] = gen_rtx (REG, SImode, REGNO (operands[0]) + 1);
else else
operands[3] = adj_offsettable_operand (operands[0], 4); operands[3] = adj_offsettable_operand (operands[0], 4);
if (! ADDRESS_REG_P (operands[0])) if (! ADDRESS_REG_P (operands[0]))
#ifdef MOTOROLA
return \"move%.l %0,%2\;or%.l %3,%2\;jbeq %l1\"; return \"move%.l %0,%2\;or%.l %3,%2\;jbeq %l1\";
#else
return \"move%.l %0,%2\;or%.l %3,%2\;jeq %l1\";
#endif
operands[4] = gen_label_rtx(); operands[4] = gen_label_rtx();
#ifdef MOTOROLA
output_asm_insn (\"tst%.l %0\;jbne %l4\;tst%.l %3\;jbeq %l1\", operands); output_asm_insn (\"tst%.l %0\;jbne %l4\;tst%.l %3\;jbeq %l1\", operands);
#else
output_asm_insn (\"tst%.l %0\;jne %l4\;tst%.l %3\;jeq %l1\", operands);
#endif
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"L\", ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"L\",
CODE_LABEL_NUMBER (operands[4])); CODE_LABEL_NUMBER (operands[4]));
return \"\"; return \"\";
...@@ -5174,9 +5186,17 @@ ...@@ -5174,9 +5186,17 @@
else else
operands[3] = adj_offsettable_operand (operands[0], 4); operands[3] = adj_offsettable_operand (operands[0], 4);
if (ADDRESS_REG_P (operands[0])) if (ADDRESS_REG_P (operands[0]))
#ifdef MOTOROLA
return \"tst%.l %0\;jbne %l1\;tst%.l %3\;jbne %l1\"; return \"tst%.l %0\;jbne %l1\;tst%.l %3\;jbne %l1\";
#else
return \"tst%.l %0\;jne %l1\;tst%.l %3\;jne %l1\";
#endif
else else
#ifdef MOTOROLA
return \"move%.l %0,%2\;or%.l %3,%2\;jbne %l1\"; return \"move%.l %0,%2\;or%.l %3,%2\;jbne %l1\";
#else
return \"move%.l %0,%2\;or%.l %3,%2\;jne %l1\";
#endif
} ") } ")
(define_insn "bge0_di" (define_insn "bge0_di"
...@@ -5188,7 +5208,11 @@ ...@@ -5188,7 +5208,11 @@
"" ""
"* "*
{ {
#ifdef MOTOROLA
return \"tst%.l %0\;jbge %l1\"; return \"tst%.l %0\;jbge %l1\";
#else
return \"tst%.l %0\;jge %l1\";
#endif
} ") } ")
(define_insn "blt0_di" (define_insn "blt0_di"
...@@ -5200,7 +5224,11 @@ ...@@ -5200,7 +5224,11 @@
"" ""
"* "*
{ {
#ifdef MOTOROLA
return \"tst%.l %0\;jbmi %l1\"; return \"tst%.l %0\;jbmi %l1\";
#else
return \"tst%.l %0\;jmi %l1\";
#endif
} ") } ")
(define_insn "beq" (define_insn "beq"
......
Markdown is supported
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