Message ID | CA+=Sn1mu=DvX6rVsuRwU1a17ewW6kLB5T2DgO6DwLDe6_M1OGQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
On 23/06/14 22:12, Andrew Pinski wrote: > Hi, > When looking at the current conditional compare patch, I find that > we don't have a testcase to test that we don't ICE for the case where > we have conditional compares and conditional moves where the moves are > of floating point types. > > This patch adds that testcase to the C torture compile test to make > sure we don't ICE (which I think we do currently). FWIW, this doesn't ICE for me with aarch64-none-elf trunk. Kyrill > Thanks, > Andrew Pinski > > 2014-06-23 Andrew Pinski <apinski@cavium.com> > > * gcc.c-torture/compile/20140723-1.c: New testcase.
> On Jun 24, 2014, at 2:08 AM, Kyrill Tkachov <kyrylo.tkachov@arm.com> wrote: > > >> On 23/06/14 22:12, Andrew Pinski wrote: >> Hi, >> When looking at the current conditional compare patch, I find that >> we don't have a testcase to test that we don't ICE for the case where >> we have conditional compares and conditional moves where the moves are >> of floating point types. >> >> This patch adds that testcase to the C torture compile test to make >> sure we don't ICE (which I think we do currently). > > FWIW, this doesn't ICE for me with aarch64-none-elf trunk. I meant with conditional compare patches applied. Thanks, Andrew > > Kyrill > >> Thanks, >> Andrew Pinski >> >> 2014-06-23 Andrew Pinski <apinski@cavium.com> >> >> * gcc.c-torture/compile/20140723-1.c: New testcase. > >
Index: gcc.c-torture/compile/20140723-1.c =================================================================== --- gcc.c-torture/compile/20140723-1.c (revision 0) +++ gcc.c-torture/compile/20140723-1.c (revision 0) @@ -0,0 +1,4 @@ +double f(double a, double b, int c, int d) +{ + return (c>10&&d>20)?a:b; +} Index: ChangeLog =================================================================== --- ChangeLog (revision 211915) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2014-06-23 Andrew Pinski <apinski@cavium.com> + + * gcc.c-torture/compile/20140723-1.c: New testcase. + 2014-06-23 Marek Polacek <polacek@redhat.com> PR c/61553