[llvm-commits] CVS: llvm/test/Regression/Transforms/GlobalOpt/2004-10-10-CastStoreOnce.llx
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 10 10:06:20 PDT 2004
Changes in directory llvm/test/Regression/Transforms/GlobalOpt:
2004-10-10-CastStoreOnce.llx added (r1.1)
---
Log message:
New testcase that crashes -globalopt. I found this through inspection, not
actually in the wild :)
---
Diffs of the changes: (+17 -0)
Index: llvm/test/Regression/Transforms/GlobalOpt/2004-10-10-CastStoreOnce.llx
diff -c /dev/null llvm/test/Regression/Transforms/GlobalOpt/2004-10-10-CastStoreOnce.llx:1.1
*** /dev/null Sun Oct 10 12:06:19 2004
--- llvm/test/Regression/Transforms/GlobalOpt/2004-10-10-CastStoreOnce.llx Sun Oct 10 12:06:09 2004
***************
*** 0 ****
--- 1,17 ----
+ ; RUN: llvm-as < %s | opt -globalopt
+
+ %V = global float 12.0
+ %G = internal global int* null
+
+ int %user() {
+ %P = load int** %G
+ %Q = load int* %P
+ ret int %Q
+ }
+
+ void %setter() {
+ %Vi = cast float* %V to int*
+ store int* %Vi, int** %G
+ ret void
+ }
+
More information about the llvm-commits
mailing list