2008-08-08 04:11:30 +00:00
|
|
|
; Double return in abicall (default)
|
2009-11-19 07:18:49 +00:00
|
|
|
; RUN: llc < %s -march=mips
|
2008-08-08 04:11:30 +00:00
|
|
|
; PR2615
|
|
|
|
|
|
|
|
define double @main(...) {
|
|
|
|
entry:
|
|
|
|
%retval = alloca double ; <double*> [#uses=3]
|
|
|
|
store double 0.000000e+00, double* %retval
|
|
|
|
%r = alloca double ; <double*> [#uses=1]
|
2015-02-27 21:17:42 +00:00
|
|
|
load double, double* %r ; <double>:0 [#uses=1]
|
2008-08-08 04:11:30 +00:00
|
|
|
store double %0, double* %retval
|
|
|
|
br label %return
|
|
|
|
|
|
|
|
return: ; preds = %entry
|
2015-02-27 21:17:42 +00:00
|
|
|
load double, double* %retval ; <double>:1 [#uses=1]
|
2008-08-08 04:11:30 +00:00
|
|
|
ret double %1
|
|
|
|
}
|
|
|
|
|