[SPARC] Fix PR target/50945

Eric Botcazou ebotcazou@adacore.com
Wed Nov 2 20:13:00 GMT 2011


This is a fallout of the consolidation patch for floating-point insns.  When 
the regular and no_fpu patterns for movdf were merged, the r/ro alternative of 
the latter pattern was merged with the r/rFo alternative of the former.  This 
was presumably intended, but the associated splitter wasn't changed, so the 
r/F case breaks with -mno-fpu/-msoft-float.

Fixed thusly.  The patch also reindents some contraints (and a reindentation 
patch is also attached for the 4.6 branch so as to make comparisons easier).

Bootstrapped/regtested on SPARC/Solaris, applied on mainline (and 4.6 branch).


2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>

	PR target/50945
	* config/sparc/sparc.md (movsf_insn): Reindent constraints.
	(movdf_insn_sp32): Likewise.  Remove redundant G constraint.
	(movdf_insn_sp64): Likewise.
	(DFmode splitter): Do not test TARGET_FPU.
	(movtf_insn_sp32): Reindent constraints.
	(movtf_insn_sp32_no_fpu): Likewise.
	(movtf_insn_sp64): Likewise.
	(movtf_insn_sp64_hq): Likewise.
	(movtf_insn_sp64_no_fpu): Likewise.


2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc.target/sparc/20111102-1.c: New test.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr50945.diff
Type: text/x-diff
Size: 4560 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111102/691fa7db/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20111102-1.c
Type: text/x-csrc
Size: 290 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111102/691fa7db/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: right_justify.diff
Type: text/x-diff
Size: 6574 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111102/691fa7db/attachment-0002.bin>


More information about the Gcc-patches mailing list