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).

Thanks,
Andrew Pinski

2014-06-23  Andrew Pinski  <apin...@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  <apin...@cavium.com>
+
+       * gcc.c-torture/compile/20140723-1.c: New testcase.
+
 2014-06-23  Marek Polacek  <pola...@redhat.com>
 
        PR c/61553

Reply via email to