aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.dg/tree-prof/ffvpt-pro-3.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.4.3/gcc/testsuite/gcc.dg/tree-prof/ffvpt-pro-3.c')
-rw-r--r--gcc-4.4.3/gcc/testsuite/gcc.dg/tree-prof/ffvpt-pro-3.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.4.3/gcc/testsuite/gcc.dg/tree-prof/ffvpt-pro-3.c b/gcc-4.4.3/gcc/testsuite/gcc.dg/tree-prof/ffvpt-pro-3.c
new file mode 100644
index 000000000..5f2a57d31
--- /dev/null
+++ b/gcc-4.4.3/gcc/testsuite/gcc.dg/tree-prof/ffvpt-pro-3.c
@@ -0,0 +1,14 @@
+/* { dg-options "-lm -ffvpt -ffvpt-functions=log,exp,pow,sqrt -O2 -fdump-tree-optimized -fdump-tree-tree_profile" } */
+
+#define VAL (-1.0/0.0)
+
+#include "ffvpt-pro.h"
+
+/* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */
+/* { dg-final-use { scan-tree-dump "Math call \\(exp\\) to constant value: -inf in main \\(use 0.000000\\) \\(count:1000, all:1000\\)" "tree_profile"} } */
+/* { dg-final-use { scan-tree-dump-not "Math call \\(pow\\) with constant argument optimized" "tree_profile"} } */
+/* { dg-final-use { scan-tree-dump "Math call \\(log\\) to constant value: -inf in main \\(use -?nan\\) \\(count:1000, all:1000\\)" "tree_profile"} } */
+/* { dg-final-use { scan-tree-dump "Math call \\(sqrt\\) to constant value: -inf in main \\(use -?nan\\) \\(count:1000, all:1000\\)" "tree_profile"} } */
+
+/* { dg-final-use { cleanup-tree-dump "optimized" } } */
+/* { dg-final-use { cleanup-tree-dump "tree_profile" } } */