Subject: Re: -mips3 question
To: None <port-mips@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-mips
Date: 09/25/2002 21:16:46
In article <Pine.NEB.4.44.0209250920210.317-100000@moss.i.formula1.com>
abs@formula1.com wrote:
> Can we safely use -mips3 on a NetBSD mips machine, or would it
> need to be -mips3 -mabi=32?
See gcc(1) man page:
> -mips2 Issue instructions from level 2 of the MIPS ISA
> (branch likely, square root instructions). The
> -mcpu=r4000 or -mcpu=r6000 switch must be used in
> conjunction with -mips2.
>
> -mips3 Issue instructions from level 3 of the MIPS ISA (64
> bit instructions). The -mcpu=r4000 switch must be
> used in conjunction with -mips2.
So you have to use -mips2 for R4000 in 32bit ABI.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp