19 lines · plain
1; RUN: llc < %s -mtriple=armv7-apple-darwin -verify-machineinstrs | FileCheck %s -check-prefix=ARM2; RUN: llc < %s -mtriple=thumbv7-apple-darwin -verify-machineinstrs | FileCheck %s -check-prefix=T23; rdar://89648544 5define i8 @t(ptr %a, i8 %b, i8 %c) nounwind {6; ARM-LABEL: t:7; ARM: ldrexb8; ARM: strexb9; ARM: clrex10 11; T2-LABEL: t:12; T2: ldrexb13; T2: strexb14; T2: clrex15 %tmp0 = cmpxchg ptr %a, i8 %b, i8 %c monotonic monotonic16 %tmp1 = extractvalue { i8, i1 } %tmp0, 017 ret i8 %tmp118}19