Linux MIPS Architecture development
 help / color / mirror / Atom feed
* r4600 flag
@ 2001-07-31  5:55 Pete Popov
  2001-07-31  7:28 ` Thiemo Seufer
  2001-07-31  8:06 ` Kevin D. Kissell
  0 siblings, 2 replies; 13+ messages in thread
From: Pete Popov @ 2001-07-31  5:55 UTC (permalink / raw)
  To: Kevin D. Kissell, Ralf Baechle; +Cc: linux-mips

in arch/mips/Makefile, we use the -mcpu=r4600 flag for MIPS32. What's 
interesting is that the use of this flag can cause the toolchain to 
generate incorrect code. For example:

la k0, 1f
nop
1: nop


The la macro is split into a lui and a daddiu. The daddiu is not correct 
for a mips32 cpu.  Getting rid of the -mcpu=4600 fixes the problem and 
the daddiu is then changed addiu.

Is there a truly correct -mcpu option for a mips32 cpu?

Pete

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-08-02 12:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-31  5:55 r4600 flag Pete Popov
2001-07-31  7:28 ` Thiemo Seufer
2001-07-31  9:25   ` Ralf Baechle
2001-07-31 12:58     ` Thiemo Seufer
2001-07-31 13:38     ` Carsten Langgaard
2001-07-31 15:29       ` John D. Davis
2001-08-02 11:54         ` Ralf Baechle
2001-07-31  8:06 ` Kevin D. Kissell
2001-07-31  8:06   ` Kevin D. Kissell
2001-07-31  9:31   ` Ralf Baechle
2001-07-31 11:40     ` Kevin D. Kissell
2001-07-31 11:40       ` Kevin D. Kissell
2001-07-31 13:08       ` Thiemo Seufer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox