summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/2008-08-03-ReturnDouble.ll
blob: b1e999cea1f38a72fe34c133349dc31396c4e5e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; Double return in abicall (default)
; RUN: llvm-as < %s | llc -march=mips
; PR2615

define double @main(...) {
entry:
        %retval = alloca double         ; <double*> [#uses=3]
        store double 0.000000e+00, double* %retval
        %r = alloca double              ; <double*> [#uses=1]
        load double* %r         ; <double>:0 [#uses=1]
        store double %0, double* %retval
        br label %return

return:         ; preds = %entry
        load double* %retval            ; <double>:1 [#uses=1]
        ret double %1
}

OpenPOWER on IntegriCloud