aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--validation/expand/builtin_huge_val.c39
-rw-r--r--validation/expand/builtin_nan.c23
2 files changed, 62 insertions, 0 deletions
diff --git a/validation/expand/builtin_huge_val.c b/validation/expand/builtin_huge_val.c
new file mode 100644
index 00000000..09ef2a6f
--- /dev/null
+++ b/validation/expand/builtin_huge_val.c
@@ -0,0 +1,39 @@
+static float huge_valf(void)
+{
+ return __builtin_huge_valf();
+}
+
+static double huge_val(void)
+{
+ return __builtin_huge_val();
+}
+
+static long double huge_vall(void)
+{
+ return __builtin_huge_vall();
+}
+
+
+static float inff(void)
+{
+ return __builtin_inff();
+}
+
+static double inf(void)
+{
+ return __builtin_inf();
+}
+
+static long double infl(void)
+{
+ return __builtin_infl();
+}
+
+/*
+ * check-name: builtin_huge_val expand
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-excludes: call
+ */
diff --git a/validation/expand/builtin_nan.c b/validation/expand/builtin_nan.c
new file mode 100644
index 00000000..20e3ae92
--- /dev/null
+++ b/validation/expand/builtin_nan.c
@@ -0,0 +1,23 @@
+static float nanf(void)
+{
+ return __builtin_nanf("0");
+}
+
+static double nan(void)
+{
+ return __builtin_nan("0");
+}
+
+static long double nanl(void)
+{
+ return __builtin_nanl("0");
+}
+
+/*
+ * check-name: builtin_nan expand
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-excludes: call
+ */