~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/CodeGen/Mips/2008-08-03-ReturnDouble.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; Double return in abicall (default)
 
2
; RUN: llc < %s -march=mips
 
3
; PR2615
 
4
 
 
5
define double @main(...) {
 
6
entry:
 
7
        %retval = alloca double         ; <double*> [#uses=3]
 
8
        store double 0.000000e+00, double* %retval
 
9
        %r = alloca double              ; <double*> [#uses=1]
 
10
        load double* %r         ; <double>:0 [#uses=1]
 
11
        store double %0, double* %retval
 
12
        br label %return
 
13
 
 
14
return:         ; preds = %entry
 
15
        load double* %retval            ; <double>:1 [#uses=1]
 
16
        ret double %1
 
17
}
 
18