On 02/11/15 04:16, Richard Biener wrote:
Application of this pattern (and the one I posted for 47477) is a concern
for targets that don't do sub-word arithmetic/logicals. But I just did a
sniff test of one such target (v850-elf because it was handy) and I couldn't
spot a change in the end code using both the 47477 patch and my WIP patch
for this BZ.
The c-family frontends perform this kind of narrowing already anyway
(via the shorten_* stuff which is misplaced there and should be done
elsewhere for all frontends - thus in match.pd, thanks for starting that).
True, but I wanted to see if there was any impact, but thankfully there
isn't.
The fact that the C/C++ front-ends are doing most of the shortening now
probably explains why the fix for 47477 only affected code generation
for the Java front-end.
Jeff