Reid Spencer | c094836 | 2007-01-16 18:08:22 +0000 | [diff] [blame] | 1 | ; 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 Spencer | e3ff5ad | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 5 | @X = global i19 4, align 16 |
Reid Spencer | c094836 | 2007-01-16 18:08:22 +0000 | [diff] [blame] | 6 | |
Reid Spencer | e3ff5ad | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 7 | define i19 *@test() align 32 { |
Reid Spencer | c094836 | 2007-01-16 18:08:22 +0000 | [diff] [blame] | 8 | %X = alloca i19, align 4 |
| 9 | %Y = alloca i51, i32 42, align 16 |
Chris Lattner | d31a672 | 2009-01-05 08:14:35 +0000 | [diff] [blame] | 10 | %Z = alloca i32, align 1 |
Reid Spencer | c094836 | 2007-01-16 18:08:22 +0000 | [diff] [blame] | 11 | ret i19 *%X |
| 12 | } |
| 13 | |
Reid Spencer | e3ff5ad | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 14 | define i19 *@test2() { |
Reid Spencer | c094836 | 2007-01-16 18:08:22 +0000 | [diff] [blame] | 15 | %X = malloc i19, align 4 |
| 16 | %Y = malloc i51, i32 42, align 16 |
Chris Lattner | d31a672 | 2009-01-05 08:14:35 +0000 | [diff] [blame] | 17 | %Z = malloc i32, align 1 |
Reid Spencer | c094836 | 2007-01-16 18:08:22 +0000 | [diff] [blame] | 18 | ret i19 *%X |
| 19 | } |
| 20 | |
| 21 | |