Changes in directory llvm/test/Regression/CodeGen/PowerPC:
fp-int-fp.ll added (r1.1) --- Log message: new testcase. There should be no accesses to the stack for these functions. --- Diffs of the changes: (+27 -0) fp-int-fp.ll | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+) Index: llvm/test/Regression/CodeGen/PowerPC/fp-int-fp.ll diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/fp-int-fp.ll:1.1 *** /dev/null Tue Feb 28 22:56:43 2006 --- llvm/test/Regression/CodeGen/PowerPC/fp-int-fp.ll Tue Feb 28 22:56:33 2006 *************** *** 0 **** --- 1,27 ---- + ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 && + ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | not grep r1 + + double %test1(double %X) { + %Y = cast double %X to long + %Z = cast long %Y to double + ret double %Z + } + + float %test2(double %X) { + %Y = cast double %X to long + %Z = cast long %Y to float + ret float %Z + } + + double %test3(float %X) { + %Y = cast float %X to long + %Z = cast long %Y to double + ret double %Z + } + + float %test4(float %X) { + %Y = cast float %X to long + %Z = cast long %Y to float + ret float %Z + } + _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits