Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | 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 int 4, align 16 | ||||
6 | |||||
7 | int *%test() align 32 { | ||||
8 | %X = alloca int, align 4 | ||||
9 | %Y = alloca int, uint 42, align 16 | ||||
10 | %Z = alloca int, align 0 | ||||
11 | ret int *%X | ||||
12 | } | ||||
13 | |||||
14 | int *%test2() { | ||||
15 | %X = malloc int, align 4 | ||||
16 | %Y = malloc int, uint 42, align 16 | ||||
17 | %Z = malloc int, align 0 | ||||
18 | %T = malloc int, align 256 | ||||
19 | ret int *%X | ||||
20 | } |