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

« back to all changes in this revision

Viewing changes to test/Feature/alignment.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: llvm-as < %s | llvm-dis > %t1.ll
 
2
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 
3
; RUN: diff %t1.ll %t2.ll
 
4
 
 
5
@X = global i32 4, align 16             ; <i32*> [#uses=0]
 
6
 
 
7
define i32* @test() align 32 {
 
8
        %X = alloca i32, align 4                ; <i32*> [#uses=1]
 
9
        %Y = alloca i32, i32 42, align 16               ; <i32*> [#uses=0]
 
10
        %Z = alloca i32         ; <i32*> [#uses=0]
 
11
        ret i32* %X
 
12
}
 
13
define void @test3() alignstack(16) {
 
14
        ret void
 
15
}
 
16