[llvm-commits] CVS: llvm/test/Regression/Transforms/ScalarRepl/union-fp-int.ll

Chris Lattner sabre at nondot.org
Sun Dec 10 15:52:43 PST 2006



Changes in directory llvm/test/Regression/Transforms/ScalarRepl:

union-fp-int.ll added (r1.1)
---
Log message:

new testcase


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

 union-fp-int.ll |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/test/Regression/Transforms/ScalarRepl/union-fp-int.ll
diff -c /dev/null llvm/test/Regression/Transforms/ScalarRepl/union-fp-int.ll:1.1
*** /dev/null	Sun Dec 10 17:52:38 2006
--- llvm/test/Regression/Transforms/ScalarRepl/union-fp-int.ll	Sun Dec 10 17:52:28 2006
***************
*** 0 ****
--- 1,10 ----
+ ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | not grep alloca &&
+ ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | grep 'bitcast.*float.*int'
+ 
+ int %test(float %X) {
+         %X_addr = alloca float
+         store float %X, float* %X_addr
+         %X_addr = bitcast float* %X_addr to int*
+         %tmp = load int* %X_addr
+         ret int %tmp
+ }






More information about the llvm-commits mailing list