mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
This reverts r369664 (git commit 51f48295cbe8fa3a44db263b528dd9f7bae7bf9a) It causes many benchmark regressions, internally and in llvm's benchmark suite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370398 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
495 B
LLVM
19 lines
495 B
LLVM
; RUN: llc < %s -mtriple=armv7-apple-darwin -verify-machineinstrs | FileCheck %s -check-prefix=ARM
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin -verify-machineinstrs | FileCheck %s -check-prefix=T2
|
|
; rdar://8964854
|
|
|
|
define i8 @t(i8* %a, i8 %b, i8 %c) nounwind {
|
|
; ARM-LABEL: t:
|
|
; ARM: ldrexb
|
|
; ARM: strexb
|
|
; ARM: clrex
|
|
|
|
; T2-LABEL: t:
|
|
; T2: ldrexb
|
|
; T2: strexb
|
|
; T2: clrex
|
|
%tmp0 = cmpxchg i8* %a, i8 %b, i8 %c monotonic monotonic
|
|
%tmp1 = extractvalue { i8, i1 } %tmp0, 0
|
|
ret i8 %tmp1
|
|
}
|