On September 5, 2016 12:11:47 PM GMT+02:00, Bernd Schmidt <bschm...@redhat.com> wrote: >On 09/04/2016 02:12 PM, Uros Bizjak wrote: >> As shown in the PR [1], combine is able to simplify lowpart >> CONST_VECTOR constant pool reference to its inner-mode reference. >> However, plus_constant was not able to extract the constant from >> narrowed access. >> >> Attached patch teaches plus_constant how to handle this situation. > >Ok. It looks like accesses to non-lowpart subregs would be handled by >not optimizing them as well rather than crashing.
Are we missing similar handling for complex integer constants? Richard. > >Bernd