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