Changes in directory llvm/lib/Target:

README.txt updated: 1.16 -> 1.17
---
Log message:

add an example


---
Diffs of the changes:  (+11 -0)

 README.txt |   11 +++++++++++
 1 files changed, 11 insertions(+)


Index: llvm/lib/Target/README.txt
diff -u llvm/lib/Target/README.txt:1.16 llvm/lib/Target/README.txt:1.17
--- llvm/lib/Target/README.txt:1.16     Sat Mar 11 14:17:08 2006
+++ llvm/lib/Target/README.txt  Sat Mar 11 14:20:40 2006
@@ -121,6 +121,17 @@
 
 //===---------------------------------------------------------------------===//
 
+Interesting? testcase for add/shift/mul reassoc:
+
+int bar(int x, int y) {
+  return x*x*x+y+x*x*x*x*x*y*y*y*y;
+}
+int foo(int z, int n) {
+  return bar(z, n) + bar(2*z, 2*n);
+}
+
+//===---------------------------------------------------------------------===//
+
 These two functions should generate the same code on big-endian systems:
 
 int g(int *j,int *l)  {  return memcmp(j,l,4);  }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to