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

« back to all changes in this revision

Viewing changes to test/CodeGen/Generic/empty-load-store.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
; RUN: llc < %s
 
2
; PR2612
 
3
 
 
4
@current_foo = internal global {  } zeroinitializer
 
5
 
 
6
define i32 @foo() {
 
7
entry:
 
8
        %retval = alloca i32
 
9
        store i32 0, i32* %retval
 
10
        %local_foo = alloca {  }
 
11
        load {  }* @current_foo
 
12
        store {  } %0, {  }* %local_foo
 
13
        br label %return
 
14
 
 
15
return:
 
16
        load i32* %retval
 
17
        ret i32 %1
 
18
}