diff options
Diffstat (limited to 'test/CodeGen/CBackend/2008-02-01-UnalignedLoadStore.ll')
-rw-r--r-- | test/CodeGen/CBackend/2008-02-01-UnalignedLoadStore.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2008-02-01-UnalignedLoadStore.ll b/test/CodeGen/CBackend/2008-02-01-UnalignedLoadStore.ll new file mode 100644 index 0000000..6e0cf68 --- /dev/null +++ b/test/CodeGen/CBackend/2008-02-01-UnalignedLoadStore.ll @@ -0,0 +1,15 @@ +; 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 = volatile load i32* %P, align 2 + volatile store i32 %X, i32* %P, align 2 + ret void +} + |