forked from OSchip/llvm-project
Fix an obvious typo which caused an isel assertion. rdar://8964854.
llvm-svn: 125023
This commit is contained in:
parent
93be3f75cc
commit
e1a4ac9b5b
|
@ -4344,7 +4344,7 @@ ARMTargetLowering::EmitAtomicCmpSwap(MachineInstr *MI,
|
|||
default: llvm_unreachable("unsupported size for AtomicCmpSwap!");
|
||||
case 1:
|
||||
ldrOpc = isThumb2 ? ARM::t2LDREXB : ARM::LDREXB;
|
||||
strOpc = isThumb2 ? ARM::t2LDREXB : ARM::STREXB;
|
||||
strOpc = isThumb2 ? ARM::t2STREXB : ARM::STREXB;
|
||||
break;
|
||||
case 2:
|
||||
ldrOpc = isThumb2 ? ARM::t2LDREXH : ARM::LDREXH;
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
; RUN: llc < %s -mtriple=armv7-apple-darwin | FileCheck %s -check-prefix=ARM
|
||||
; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s -check-prefix=T2
|
||||
; rdar://8964854
|
||||
|
||||
define i8 @t(i8* %a, i8 %b, i8 %c) nounwind {
|
||||
; ARM: t:
|
||||
; ARM: ldrexb
|
||||
; ARM: strexb
|
||||
|
||||
; T2: t:
|
||||
; T2: ldrexb
|
||||
; T2: strexb
|
||||
%tmp0 = tail call i8 @llvm.atomic.cmp.swap.i8.p0i8(i8* %a, i8 %b, i8 %c)
|
||||
ret i8 %tmp0
|
||||
}
|
||||
|
||||
declare i8 @llvm.atomic.cmp.swap.i8.p0i8(i8* nocapture, i8, i8) nounwind
|
Loading…
Reference in New Issue