1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00
llvm-mirror/test/CodeGen/CBackend/2008-02-01-UnalignedLoadStore.ll
Lauro Ramos Venancio 563e0a3ea3 CBackend: Implement unaligned load/store.
llvm-svn: 46646
2008-02-01 21:25:59 +00:00

16 lines
378 B
LLVM

; RUN: llvm-as < %s | llc -march=c | \
; RUN: grep {struct __attribute__ ((packed, aligned(} | count 4
define void @test(i32* %P) {
%X = load i32* %P, align 1
store i32 %X, i32* %P, align 1
ret void
}
define void @test2(i32* %P) {
%X = volatile load i32* %P, align 2
volatile store i32 %X, i32* %P, align 2
ret void
}