PR tree-optimization/90106
* gcc.dg/cdce3.c: New test.
From-SVN: r271319
+2019-05-17 Jun Ma <JunMa@linux.alibaba.com>
+
+ PR tree-optimization/90106
+ * gcc.dg/cdce3.c: New test.
+
2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
* gcc.target/s390/zvector/vec-sldw.c: New test.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -fdump-tree-optimized" } */
+/* { dg-final { scan-tree-dump "cdce3.c:9: \[^\n\r]* function call is shrink-wrapped into error conditions\." "cdce" } } */
+/* { dg-final { scan-tree-dump "sqrtf \\(\[^\n\r]*\\); \\\[tail call\\\]" "optimized" } } */
+
+float sqrtf (float);
+float foo (float x)
+{
+ return sqrtf (x);
+}
+