mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
7e501cf4c3
This update was done with the following bash script: find test/CodeGen -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc.*debug" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_-]*\):\( *\)$FUNC: *\$/;\1\2-LABEL:\3$FUNC:/g" $TEMP done sed -i '' "s/;\(.*\)-LABEL-LABEL:/;\1-LABEL:/" $TEMP sed -i '' "s/;\(.*\)-NEXT-LABEL:/;\1-NEXT:/" $TEMP sed -i '' "s/;\(.*\)-NOT-LABEL:/;\1-NOT:/" $TEMP sed -i '' "s/;\(.*\)-DAG-LABEL:/;\1-DAG:/" $TEMP mv $TEMP $NAME fi done llvm-svn: 186280
23 lines
591 B
LLVM
23 lines
591 B
LLVM
; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=corei7 | FileCheck %s
|
|
; rdar://r7512579
|
|
|
|
; PHI defs in the atomic loop should be used by the add / adc
|
|
; instructions. They should not be dead.
|
|
|
|
define void @t(i64* nocapture %p) nounwind ssp {
|
|
entry:
|
|
; CHECK-LABEL: t:
|
|
; CHECK: movl ([[REG:%[a-z]+]]), %eax
|
|
; CHECK: movl 4([[REG]]), %edx
|
|
; CHECK: LBB0_1:
|
|
; CHECK: movl %eax, %ebx
|
|
; CHECK: addl {{%[a-z]+}}, %ebx
|
|
; CHECK: movl %edx, %ecx
|
|
; CHECK: adcl {{%[a-z]+}}, %ecx
|
|
; CHECK: lock
|
|
; CHECK-NEXT: cmpxchg8b ([[REG]])
|
|
; CHECK-NEXT: jne
|
|
%0 = atomicrmw add i64* %p, i64 1 seq_cst
|
|
ret void
|
|
}
|