blob: 6e0cf68292961d68722edbc127bcc67f0d05359b [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -march=c | \
Lauro Ramos Venancio11048c12008-02-01 21:25:59 +00002; 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