This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: coprocessor register mask in reginfo section ?
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "K. Ahmed Feroz" <feroz at acmet dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: 26 Apr 2004 10:34:31 -0400
- Subject: Re: coprocessor register mask in reginfo section ?
- References: <001301c42b86$96f1af50$7200a8c0@FEROZ>
"K. Ahmed Feroz" <feroz@acmet.com> writes:
> GAS for a MIPS processor would emit .reginfo section. This section has
> fields for updating coprocessor register mask and GP value. I could find
> these fields are always zero.
>
> Can you tell me in what circumstances GAS has to emit coprocessor
> register mask and GP value?
>
> If you can give one example, it would be really helpful.
This test case:
add.d $f0,$f2,$f4
should give you a non-zero value in the register mask for coprocessor
one.
Getting a non-zero value for the GP value in assembler output depends
upon your object file format. I don't think you mentioned what target
you are using. The code for the N32 ABI will normally use a value of
0 in assembler output in all cases. The code for the O32 ABI will
normally use a value of 0x4000. To get a value for GP, you need code
like:
.lcomm foo,2
lw $2,foo
Ian