On 10/12/2016 10:35 AM, Richard Biener wrote: > On Tue, Oct 11, 2016 at 11:38 AM, Martin Liška wrote: >> One question that comes to my mind is whether there's a possibility >> to fully test gimple folding of all cases if some of them are already >> eaten by generic folding? > > The only way is to make GENERIC folding not trigger by pushing > constants to temporaries. > > Richard. > Good idea, I've done that in the patch with tests. I made a small revision to patch, where I utilize the new c_getstr function arguments to handle more cases. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests as a whole series. Martin