[llvm-commits] CVS: llvm/test/Transforms/GlobalOpt/constantexpr-dangle.ll
Chris Lattner
sabre at nondot.org
Sun Feb 25 13:04:56 PST 2007
Changes in directory llvm/test/Transforms/GlobalOpt:
constantexpr-dangle.ll added (r1.1)
---
Log message:
new testcase. @foo should be marked fastcc by globalopt
---
Diffs of the changes: (+11 -0)
constantexpr-dangle.ll | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm/test/Transforms/GlobalOpt/constantexpr-dangle.ll
diff -c /dev/null llvm/test/Transforms/GlobalOpt/constantexpr-dangle.ll:1.1
*** /dev/null Sun Feb 25 15:04:49 2007
--- llvm/test/Transforms/GlobalOpt/constantexpr-dangle.ll Sun Feb 25 15:04:39 2007
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | opt -instcombine -globalopt | llvm-dis | grep 'internal fastcc float @foo'
+ define internal float @foo() {
+ ret float 0.000000e+00
+ }
+
+ define float @bar() {
+ %tmp1 = call float (...)* bitcast (float ()* @foo to float (...)*)( )
+ %tmp2 = mul float %tmp1, 1.000000e+01 ; <float> [#uses=1]
+ ret float %tmp2
+ }
+
More information about the llvm-commits
mailing list