]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Test program to generate spill code on x86 (fstpt/fldt).
authorJulian Seward <jseward@acm.org>
Sun, 19 Sep 2004 11:57:16 +0000 (11:57 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 19 Sep 2004 11:57:16 +0000 (11:57 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@272

VEX/useful/fspill.c [new file with mode: 0644]

diff --git a/VEX/useful/fspill.c b/VEX/useful/fspill.c
new file mode 100644 (file)
index 0000000..d77eadd
--- /dev/null
@@ -0,0 +1,18 @@
+
+#include <stdio.h>
+
+int qq ( void )
+{int i;
+  long double a = 0.0, b = 0.0, c = 0.0, d = 0.0, e = 0.0, f = 0.0, g = 0.0, h = 0.0;
+  for (i = 0; i < 10; i++) {
+    a += 1.1; b += 1.2; c += 1.3; d += 1.4; e += 1.5; f += 1.6;
+    g += 1.7; h += 1.8;
+  }
+  return a+b+c+d+e+f+g+h;
+}
+
+int main ( void )
+{
+  printf("answer is %d\n", qq());
+  return 0;
+}