[patch]: MIPS: Add mfhc1/mthc1 patterns for MIPS32R2 64bit fpu
David Ung
davidu@mips.com
Wed Nov 8 15:19:00 GMT 2006
This extends my previous patch for adding -mfp64 for MIPS32R2 to allow the use
of mfhc1/mthc1 instructions to access the high half of the FPU register.
Bootstrapped on linux.
David.
* config/mips/mips.md (define_constants): Add UNSPEC_MFHC1,
UNSPEC_MTHC1.
(mthc1): New pattern to generate MTHC1 instruction.
(mfhc1): New pattern to generate MFHC1 instruction.
* config/mips/mips.c (mips_split_64bit_move): Use gen_mthc1 to set
high part of FP register when in 64-bit FP register mode.
Similarly use gen_mfhc1 to load high part of FP register.
* config/mips/mips.h (ISA_HAS_MXHC1): True is ISA supports mfhc1
and mthc1 opcodes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mti-mfhc1-mthc1-patterns.diff
Type: text/x-patch
Size: 3405 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061108/e6a186df/attachment.bin>
More information about the Gcc-patches
mailing list