mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 03:08:43 +00:00
9d1e8420ff
llvm-svn: 145171
16 lines
368 B
LLVM
16 lines
368 B
LLVM
; RUN: llc < %s -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 = load volatile i32* %P, align 2
|
|
store volatile i32 %X, i32* %P, align 2
|
|
ret void
|
|
}
|
|
|