This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]