mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Batch 6 of Mips CodeGen tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54511 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
18
test/CodeGen/Mips/2008-08-03-ReturnDouble.ll
Normal file
18
test/CodeGen/Mips/2008-08-03-ReturnDouble.ll
Normal file
@@ -0,0 +1,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
|
||||
}
|
||||
|
Reference in New Issue
Block a user