On 10/28/2011 02:54 PM, Hans-Peter Nilsson wrote: > Also VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, and > VEC_PACK_TRUNC_EXPR to mention some.
VEC_PACK_TRUNC_EXPR requires extra mode changes. I was intending to get to this one too, but have gotten side-tracked with other work this week. VEC_UNPACK_HI_EXPR and VEC_UNPACK_LO_EXPR need even more -- at least for signed -- a source of sign-extended data. Either a LT comparison that produces -1 (common, but not universal) or an ASHIFTRT with a constant. We're definitely in the land of diminishing returns here. r~