Dan Gohman | da594cf | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=c | \ |
Lauro Ramos Venancio | 11048c1 | 2008-02-01 21:25:59 +0000 | [diff] [blame] | 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 |