add alignment info for globals and functions
authorChris Lattner <sabre@nondot.org>
Sun, 6 Nov 2005 06:52:11 +0000 (06:52 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 6 Nov 2005 06:52:11 +0000 (06:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24213 91177308-0d34-0410-b5e6-96231b3b80d8

test/Feature/alignment.ll

index 0a63675bd0d255911b6ce832797785268a75cbdc..6ea7d8d7ff464b027d724256163fca9034336196 100644 (file)
@@ -2,7 +2,9 @@
 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 ; RUN: diff %t1.ll %t2.ll
 
-int *%test() {
+%X = global int 4, align 16
+
+int *%test() align 32 {
        %X = alloca int, align 4
        %Y = alloca int, uint 42, align 16
        %Z = alloca int, align 0