blob: 3a9d0511d7f707bfaeda1fae7326a130fc724619 [file] [log] [blame]
Reid Spencerc0948362007-01-16 18:08:22 +00001; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
Reid Spencere3ff5ad2007-01-26 08:25:06 +00005@X = global i19 4, align 16
Reid Spencerc0948362007-01-16 18:08:22 +00006
Reid Spencere3ff5ad2007-01-26 08:25:06 +00007define i19 *@test() align 32 {
Reid Spencerc0948362007-01-16 18:08:22 +00008 %X = alloca i19, align 4
9 %Y = alloca i51, i32 42, align 16
Chris Lattnerd31a6722009-01-05 08:14:35 +000010 %Z = alloca i32, align 1
Reid Spencerc0948362007-01-16 18:08:22 +000011 ret i19 *%X
12}
13
Reid Spencere3ff5ad2007-01-26 08:25:06 +000014define i19 *@test2() {
Reid Spencerc0948362007-01-16 18:08:22 +000015 %X = malloc i19, align 4
16 %Y = malloc i51, i32 42, align 16
Chris Lattnerd31a6722009-01-05 08:14:35 +000017 %Z = malloc i32, align 1
Reid Spencerc0948362007-01-16 18:08:22 +000018 ret i19 *%X
19}
20
21