diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-02-07 18:50:47 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-02-07 18:50:47 +0000 |
| commit | e1a4ac9b5b1041b92f829d20455671c4a7ecd5a3 (patch) | |
| tree | 8f67e5eddc3d193b47c3035fe79eaa991646e6fe /llvm/test/CodeGen | |
| parent | 93be3f75ccdf0687b06036fbc2975f1c51547980 (diff) | |
| download | bcm5719-llvm-e1a4ac9b5b1041b92f829d20455671c4a7ecd5a3.tar.gz bcm5719-llvm-e1a4ac9b5b1041b92f829d20455671c4a7ecd5a3.zip | |
Fix an obvious typo which caused an isel assertion. rdar://8964854.
llvm-svn: 125023
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/ARM/atomic-cmp.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/atomic-cmp.ll b/llvm/test/CodeGen/ARM/atomic-cmp.ll new file mode 100644 index 00000000000..f31aa7bc58e --- /dev/null +++ b/llvm/test/CodeGen/ARM/atomic-cmp.ll @@ -0,0 +1,17 @@ +; RUN: llc < %s -mtriple=armv7-apple-darwin | FileCheck %s -check-prefix=ARM +; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s -check-prefix=T2 +; rdar://8964854 + +define i8 @t(i8* %a, i8 %b, i8 %c) nounwind { +; ARM: t: +; ARM: ldrexb +; ARM: strexb + +; T2: t: +; T2: ldrexb +; T2: strexb + %tmp0 = tail call i8 @llvm.atomic.cmp.swap.i8.p0i8(i8* %a, i8 %b, i8 %c) + ret i8 %tmp0 +} + +declare i8 @llvm.atomic.cmp.swap.i8.p0i8(i8* nocapture, i8, i8) nounwind |

