Lauro Ramos Venancio | 859efca | 2008-02-01 21:25:59 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=c | \ |
2 | ; RUN: grep {struct __attribute__ ((packed, aligned(} | count 4 | ||||
3 | |||||
4 | define void @test(i32* %P) { | ||||
5 | %X = load i32* %P, align 1 | ||||
6 | store i32 %X, i32* %P, align 1 | ||||
7 | ret void | ||||
8 | } | ||||
9 | |||||
10 | define void @test2(i32* %P) { | ||||
11 | %X = volatile load i32* %P, align 2 | ||||
12 | volatile store i32 %X, i32* %P, align 2 | ||||
13 | ret void | ||||
14 | } | ||||
15 |