diff options
| author | Simon Dardis <simon.dardis@imgtec.com> | 2017-02-24 16:30:27 +0000 |
|---|---|---|
| committer | Simon Dardis <simon.dardis@imgtec.com> | 2017-02-24 16:30:27 +0000 |
| commit | 3c58c18ff0f9670f5d4d493263f2cd7dc84258c0 (patch) | |
| tree | 1cc470e6f44a51362ec959e97759ca2dbe857d69 /llvm/test/CodeGen | |
| parent | cf0e06d375d8524314950805cddf189eb775a84c (diff) | |
| download | bcm5719-llvm-3c58c18ff0f9670f5d4d493263f2cd7dc84258c0.tar.gz bcm5719-llvm-3c58c18ff0f9670f5d4d493263f2cd7dc84258c0.zip | |
Revert "[mips] Fix atomic compare and swap at O0."
This reverts r296132. I forgot to include the tests.
llvm-svn: 296133
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/Mips/atomicCmpSwapPW.ll | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/llvm/test/CodeGen/Mips/atomicCmpSwapPW.ll b/llvm/test/CodeGen/Mips/atomicCmpSwapPW.ll index e64501d1fa8..981f0983fa4 100644 --- a/llvm/test/CodeGen/Mips/atomicCmpSwapPW.ll +++ b/llvm/test/CodeGen/Mips/atomicCmpSwapPW.ll @@ -5,21 +5,13 @@ ; RUN: llc -O0 -march=mips64el -mcpu=mips64r2 -target-abi=n64 < %s -filetype=asm -o - \ ; RUN: | FileCheck -check-prefixes=PTR64,ALL %s - -; ALL-LABEL: foo: ; PTR32: lw $[[R0:[0-9]+]] -; PTR32: addiu $[[R1:[0-9]+]], $zero, -4 -; PTR32: and $[[R2:[0-9]+]], $[[R0]], $[[R1]] - ; PTR64: ld $[[R0:[0-9]+]] -; PTR64: daddiu $[[R1:[0-9]+]], $zero, -4 -; PTR64: and $[[R2:[0-9]+]], $[[R0]], $[[R1]] -; ALL: ll ${{[0-9]+}}, 0($[[R2]]) +; ALL: ll ${{[0-9]+}}, 0($[[R0]]) -define {i16, i1} @foo(i16** %addr, i16 signext %r, i16 zeroext %new) { - %ptr = load i16*, i16** %addr - %res = cmpxchg i16* %ptr, i16 %r, i16 %new seq_cst seq_cst +define {i16, i1} @foo(i16* %addr, i16 signext %r, i16 zeroext %new) { + %res = cmpxchg i16* %addr, i16 %r, i16 %new seq_cst seq_cst ret {i16, i1} %res } |

