blob: 269126d7598379d25a3bc7a950c5f32ad4efd690 [file] [log] [blame]
Lauro Ramos Venancio859efca2008-02-01 21:25:59 +00001; RUN: llvm-as < %s | llc -march=c | \
2; RUN: grep {struct __attribute__ ((packed, aligned(} | count 4
3
4define void @test(i32* %P) {
5 %X = load i32* %P, align 1
6 store i32 %X, i32* %P, align 1
7 ret void
8}
9
10define 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