This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: MIPS gcc `leasi' pattern vs. binutils 'la' pseudo-op.
- To: cgd at sibyte dot com (Chris G. Demetriou)
- Subject: Re: MIPS gcc `leasi' pattern vs. binutils 'la' pseudo-op.
- From: Ulf Carlsson <ulfc at calypso dot engr dot sgi dot com>
- Date: Tue, 27 Jun 2000 00:35:51 -0700 (PDT)
- Cc: gcc-patches at gcc dot gnu dot org, binutils at sourceware dot cygnus dot com
- References: <5tsntzoec8.fsf@tremor.sibyte.com>
Hi Chris,
> [ addr is in $2 ]
> la $2,-2147483648($2)
> li $3,1073676288 # 0x3fff0000
> ori $3,$3,0xffff
> sltu $3,$3,$2
>
> using the leasi pattern. gas (again -mips3) assembles that `la' into:
>
> 400514: 3c018000 lui $at,0x8000
> 400518: 0022102d daddu $v0,$at,$v0
I think this is what gas is expected to do. IRIX as actually tries to
do the same thing, even though it does it wrong.
Ulf