[Bug tree-optimization/70171] Poor code generated when return struct using ternary operator

rguenther at suse dot de gcc-bugzilla@gcc.gnu.org
Fri Mar 11 11:22:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70171

--- Comment #6 from rguenther at suse dot de <rguenther at suse dot de> ---
On Fri, 11 Mar 2016, ubizjak at gmail dot com wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70171
> 
> --- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> ---
> (In reply to Richard Biener from comment #4)
> > Created attachment 37935 [details]
> > patch
> > 
> > Patch I am testing.
> 
> + /* { dg-final { scan-assembler-not "\[er\]sp" { target x86_64-*-* } } } */
> 
> You should always use "target i?86-*-* x86_64-*-*" and optionally limit to
> 64bit targets with "&& { ! ia32 }". Please see many examples in gcc.dg.

Will do.


More information about the Gcc-bugs mailing list