2011-09-06 17:40:35 +00:00
|
|
|
; 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
|
2011-02-07 18:50:47 +00:00
|
|
|
; rdar://8964854
|
|
|
|
|
|
|
|
define i8 @t(i8* %a, i8 %b, i8 %c) nounwind {
|
2013-07-14 06:24:09 +00:00
|
|
|
; ARM-LABEL: t:
|
2011-02-07 18:50:47 +00:00
|
|
|
; ARM: ldrexb
|
|
|
|
; ARM: strexb
|
|
|
|
|
2013-07-14 06:24:09 +00:00
|
|
|
; T2-LABEL: t:
|
2011-02-07 18:50:47 +00:00
|
|
|
; T2: ldrexb
|
|
|
|
; T2: strexb
|
2011-09-26 20:27:49 +00:00
|
|
|
%tmp0 = cmpxchg i8* %a, i8 %b, i8 %c monotonic
|
2011-02-07 18:50:47 +00:00
|
|
|
ret i8 %tmp0
|
|
|
|
}
|