strict conv test: worked once, buggy again?
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 18 Jul 2007 23:41:43 +0000 (23:41 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 18 Jul 2007 23:41:43 +0000 (23:41 +0000)
[r15238]

ir/be/test/fehler46.c [new file with mode: 0644]

diff --git a/ir/be/test/fehler46.c b/ir/be/test/fehler46.c
new file mode 100644 (file)
index 0000000..f9d3eb2
--- /dev/null
@@ -0,0 +1,11 @@
+/* tarval rounding wrong with fp-strict */
+
+int main()
+{
+        float cost = 74.739288330078125;
+        double square = cost * cost;
+        //C2 = square;
+        printf("cost: %.20f\n", cost);
+        printf("square: %.20f\n", square);
+        return 0;
+}