[PATCH] Minor fixups to the sparc bmask/bshuffle patterns.

Hans-Peter Nilsson hp@bitrange.com
Tue Oct 4 02:17:00 GMT 2011

On Mon, 3 Oct 2011, David Miller wrote:
> 	* config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
> 	and 'si' patterns which describe the GSR changes explicitly in the
> 	RTL using zero_extract.
> 	(bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.

(Heh, so I guess USE wasn't really that canonical. ;-)

Beware, ISTM you've now created an exception to your SPARC VIS
programming model that GSR belongs to the programmer (by analogy
with floating-point rounding) as you're letting gcc modify it.

Maybe have a command-line option controlling this and other
possible GSR-setting SIMD patterns from which vectorization
could benefit?

brgds, H-P

More information about the Gcc-patches mailing list