mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 06:00:28 +00:00
d61f2a5190
Differential Revision: http://reviews.llvm.org/D18995 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266204 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
696 B
LLVM
18 lines
696 B
LLVM
; RUN: llc -O0 -march=mipsel -mcpu=mips32r2 -target-abi=o32 < %s -filetype=asm -o - \
|
|
; RUN: | FileCheck -check-prefix=PTR32 -check-prefix=ALL %s
|
|
; RUN: llc -O0 -march=mips64el -mcpu=mips64r2 -target-abi=n32 < %s -filetype=asm -o - \
|
|
; RUN: | FileCheck -check-prefix=PTR32 -check-prefix=ALL %s
|
|
; RUN: llc -O0 -march=mips64el -mcpu=mips64r2 -target-abi=n64 < %s -filetype=asm -o - \
|
|
; RUN: | FileCheck -check-prefix=PTR64 -check-prefix=ALL %s
|
|
|
|
; PTR32: lw $[[R0:[0-9]+]]
|
|
; PTR64: ld $[[R0:[0-9]+]]
|
|
|
|
; ALL: ll ${{[0-9]+}}, 0($[[R0]])
|
|
|
|
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
|
|
}
|
|
|