From 423058609122b0a582b586597f2a2771422b0afd Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Fri, 8 Aug 2008 04:11:30 +0000 Subject: Batch 6 of Mips CodeGen tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54511 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/Mips/2008-08-03-ReturnDouble.ll | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/CodeGen/Mips/2008-08-03-ReturnDouble.ll (limited to 'test/CodeGen/Mips/2008-08-03-ReturnDouble.ll') diff --git a/test/CodeGen/Mips/2008-08-03-ReturnDouble.ll b/test/CodeGen/Mips/2008-08-03-ReturnDouble.ll new file mode 100644 index 0000000..b1e999c --- /dev/null +++ b/test/CodeGen/Mips/2008-08-03-ReturnDouble.ll @@ -0,0 +1,18 @@ +; Double return in abicall (default) +; RUN: llvm-as < %s | llc -march=mips +; PR2615 + +define double @main(...) { +entry: + %retval = alloca double ; [#uses=3] + store double 0.000000e+00, double* %retval + %r = alloca double ; [#uses=1] + load double* %r ; :0 [#uses=1] + store double %0, double* %retval + br label %return + +return: ; preds = %entry + load double* %retval ; :1 [#uses=1] + ret double %1 +} + -- cgit v1.1