1; RUN: llc < %s -mtriple=armv7-apple-darwin -verify-machineinstrs | FileCheck %s -check-prefix=ARM 2; RUN: llc < %s -mtriple=thumbv7-apple-darwin -verify-machineinstrs | FileCheck %s -check-prefix=T2 3; rdar://8964854 4 5define i8 @t(i8* %a, i8 %b, i8 %c) nounwind { 6; ARM-LABEL: t: 7; ARM: ldrexb 8; ARM: strexb 9; ARM: clrex 10 11; T2-LABEL: t: 12; T2: strexb 13; T2: ldrexb 14; T2: clrex 15 %tmp0 = cmpxchg i8* %a, i8 %b, i8 %c monotonic monotonic 16 %tmp1 = extractvalue { i8, i1 } %tmp0, 0 17 ret i8 %tmp1 18} 19