On 01/31/2016 03:16 PM, Alan Modra wrote:
The comment says this test is supposed to prevent "a narrower
operation than requested", but it actually only allows a larger
subreg, not one the same size. Fix that.
Bootstrapped and regression tested powerpc64-linux. OK for stage1?
Note that this bug was found when investigating why gcc-6 does not
suffer from pr69548, ie. this bug was masking a powerpc backend bug.
* combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
Is there a strong need to apply this to gcc6? Can we construct a
testcase where this makes a difference in the code we generate?
My inclination would be to approve for gcc-7 as-is, but I'm more
hesitant for gcc-6.
jeff