Commit 392582fa by Kamil Iskra Committed by Jeff Law

m68k.c (output_scc_di): Use cmpw #0 instead of tstl when testing address registers on the 68000.

        * m68k.c (output_scc_di): Use cmpw #0 instead of tstl when
        testing address registers on the 68000.

From-SVN: r20963
parent 702d7434
Mon Jul 6 22:21:56 1998 Kamil Iskra <iskra@student.uci.agh.edu.pl>
* m68k.c (output_scc_di): Use cmpw #0 instead of tstl when
testing address registers on the 68000.
Mon Jul 6 22:17:19 1998 Alasdair Baird <alasdair@wildcat.demon.co.uk>
* jump.c (jump_optimize) Check for CONST_INT before using INTVAL.
......
......@@ -1059,12 +1059,26 @@ output_scc_di(op, operand1, operand2, dest)
output_asm_insn ("cmp%.l %2,%0\n\tjne %l4\n\tcmp%.l %3,%1", loperands);
#endif
#endif
else
else if (TARGET_68020 || TARGET_5200)
#ifdef MOTOROLA
output_asm_insn ("tst%.l %0\n\tjbne %l4\n\ttst%.l %1", loperands);
#else
output_asm_insn ("tst%.l %0\n\tjne %l4\n\ttst%.l %1", loperands);
#endif
else
#ifdef MOTOROLA
#ifdef SGS_CMP_ORDER
output_asm_insn ("cmp%.w %0,%#0\n\tjbne %l4\n\tcmp%.w %1,%#0", loperands);
#else
output_asm_insn ("cmp%.w %#0,%0\n\tjbne %l4\n\tcmp%.w %#0,%1", loperands);
#endif
#else
#ifdef SGS_CMP_ORDER
output_asm_insn ("cmp%.w %0,%#0\n\tjne %l4\n\tcmp%.w %1,%#0", loperands);
#else
output_asm_insn ("cmp%.w %#0,%0\n\tjne %l4\n\tcmp%.w %#0,%1", loperands);
#endif
#endif
loperands[5] = dest;
switch (op_code)
......
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