diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-09-15 21:20:49 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-09-15 21:20:49 +0000 |
commit | 331120b1a482b782e8dffce63033bb8514ba2a96 (patch) | |
tree | bcc8f6e612c122b58a00cdcc2627eda90a3a0cf0 /test | |
parent | 6b3ae4638bc5a3fb3bad286f96a1234b8a53053a (diff) |
Some legalization fixes for atomic load and store.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139851 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/atomic-load-store.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/atomic-load-store.ll b/test/CodeGen/ARM/atomic-load-store.ll index 4d6b403ce94..72f19a4d274 100644 --- a/test/CodeGen/ARM/atomic-load-store.ll +++ b/test/CodeGen/ARM/atomic-load-store.ll @@ -30,3 +30,12 @@ define i32 @test2(i32* %ptr) { %val = load atomic i32* %ptr seq_cst, align 4 ret i32 %val } + +define void @test3(i8* %ptr1, i8* %ptr2) { +; ARM: test3 +; ARM: ldrb +; ARM: strb + %val = load atomic i8* %ptr1 unordered, align 1 + store atomic i8 %val, i8* %ptr2 unordered, align 1 + ret void +} |