[llvm-commits] CVS: llvm/test/Regression/Transforms/ConstProp/float-to-ptr-cast.ll
Chris Lattner
sabre at nondot.org
Mon Nov 20 13:21:12 PST 2006
Changes in directory llvm/test/Regression/Transforms/ConstProp:
float-to-ptr-cast.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+9 -0)
float-to-ptr-cast.ll | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/test/Regression/Transforms/ConstProp/float-to-ptr-cast.ll
diff -c /dev/null llvm/test/Regression/Transforms/ConstProp/float-to-ptr-cast.ll:1.1
*** /dev/null Mon Nov 20 15:21:07 2006
--- llvm/test/Regression/Transforms/ConstProp/float-to-ptr-cast.ll Mon Nov 20 15:20:57 2006
***************
*** 0 ****
--- 1,9 ----
+ ; RUN: llvm-as < %s | opt -constprop | llvm-dis | grep -F 'ret int* null' | wc -l | grep 2
+ int* %test1() {
+ %X = cast float 0.0 to int*
+ ret int* %X
+ }
+
+ int* %test2() {
+ ret int* cast (float 0.0 to int*)
+ }
More information about the llvm-commits
mailing list