This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/70171] Poor code generated when return struct using ternary operator
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 Mar 2016 11:22:15 +0000
- Subject: [Bug tree-optimization/70171] Poor code generated when return struct using ternary operator
- Auto-submitted: auto-generated
- References: <bug-70171-4 at http dot gcc dot gnu dot org/bugzilla/>
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.