m68k.md error (egcs 1.1)

Torbjorn Granlund tege@matematik.su.se
Fri Sep 4 21:38:00 GMT 1998


The zero_extendsidi2 pattern of m68k.md contains this code:

  else
    operands[2] = adj_offsettable_operand (operands[0], 4);
  if (GET_CODE (operands[1]) != REG || GET_CODE (operands[1]) != REG
      || REGNO (operands[1]) != REGNO (operands[2]))
    output_asm_insn (\"move%.l %1,%2\", operands);

Obviously, the 2nd

	GET_CODE (operands[1]) != REG

should be like this instead:

	GET_CODE (operands[2]) != REG

Torbjorn



More information about the Gcc mailing list