[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Sep 2 13:24:21 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
2005-09-02-LegalizeDuplicatesCalls.ll added (r1.1)
---
Log message:
Test that converting from double to int64 results in one libcall, not one
and a dead one. This is a legalize bug
---
Diffs of the changes: (+9 -0)
2005-09-02-LegalizeDuplicatesCalls.ll | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/test/Regression/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll:1.1
*** /dev/null Fri Sep 2 15:24:20 2005
--- llvm/test/Regression/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll Fri Sep 2 15:24:10 2005
***************
*** 0 ****
--- 1,9 ----
+ ; This function should have exactly one call to fixdfdi, no more!
+
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'bl .*fixdfdi' | wc -l | grep 1
+
+ double %test2(double %tmp.7705) {
+ %mem_tmp.2.0.in = cast double %tmp.7705 to long ; <long> [#uses=1]
+ %mem_tmp.2.0 = cast long %mem_tmp.2.0.in to double
+ ret double %mem_tmp.2.0
+ }
More information about the llvm-commits
mailing list