about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--test/Feature/LongDouble.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/test/Feature/LongDouble.cpp b/test/Feature/LongDouble.cpp
index ecee43b4..6e6baf6a 100644
--- a/test/Feature/LongDouble.cpp
+++ b/test/Feature/LongDouble.cpp
@@ -1,11 +1,11 @@
 // RUN: %llvmgxx -I../../../include -g -fno-exceptions -emit-llvm -O0 -c -o %t.bc %s
 // RUN: %klee --libc=klee --no-output --exit-on-error %t.bc > %t.log
-// RUN: grep -q {powl\(-11\\.0,0\)=1\\.0\\+} %t.log
-// RUN: grep -q {powl\(-11\\.0,1\)=-11\\.0\\+} %t.log
-// RUN: grep -q {powl\(-11\\.0,2\)=121\\.0\\+} %t.log
-// RUN: grep -q {1/0=inf} %t.log
-// RUN: grep -q {1/-1=-1\\.0\\+} %t.log
-// RUN: grep -q {1/-2=-0\\.50\\+} %t.log
+// RUN: grep -q powl\(-11\\.0,0\)=1\\.0\\+ %t.log
+// RUN: grep -q powl\(-11\\.0,1\)=-11\\.0\\+ %t.log
+// RUN: grep -q powl\(-11\\.0,2\)=121\\.0\\+ %t.log
+// RUN: grep -q 1/0=inf %t.log
+// RUN: grep -q 1/-1=-1\\.0\\+ %t.log
+// RUN: grep -q 1/-2=-0\\.50\\+ %t.log
 
 #include <cstdio>
 #include <cstdlib>
@@ -44,10 +44,17 @@ int main(int argc, char ** argv)
 
   // test 80-bit external dispatch
   long double d = powl((long double)-11.0, (long double)a);
+  // FIXME: Use CHECK-DAG: with FileCheck tool
+  // CHECK-DAG: powl(-11.0,0)=1.0
+  // CHECK-DAG: powl(-11.0,1)=-11.0
+  // CHECK-DAG: powl(-11.0,2)=121.0
   printf("powl(-11.0,%d)=%Lf\n", a, d);
 
   // test 80-bit fdiv
   long double e = (long double) 1 / (long double) b;
+  // CHECK-DAG: 1/0=inf
+  // CHECK-DAG: 1/1-1=-1.0
+  // CHECK-DAG: 1/-2=-0.50
   printf("1/%d=%Lf\n", b, e);
 
   return 0;