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
This commit is contained in:
parent
702d7434a5
commit
392582fae8
2 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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,11 +1059,25 @@ 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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue