mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-29 23:12:55 +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
37 lines
936 B
LLVM
37 lines
936 B
LLVM
; RUN: llc -mtriple=x86_64-unknown-linux < %s | FileCheck -check-prefix X8664 %s
|
|
; RUN: llc -mtriple=i686-unknown-linux < %s | FileCheck -check-prefix X8632 %s
|
|
; Check that all callee-saved registers are saved and restored in functions
|
|
; that call __builtin_unwind_init(). This is its undocumented behavior in gcc,
|
|
; and it is used in compiling libgcc_eh.
|
|
; See also PR8541
|
|
|
|
declare void @llvm.eh.unwind.init()
|
|
|
|
define void @calls_unwind_init() {
|
|
call void @llvm.eh.unwind.init()
|
|
ret void
|
|
}
|
|
|
|
; X8664-LABEL: calls_unwind_init:
|
|
; X8664: pushq %rbp
|
|
; X8664: pushq %r15
|
|
; X8664: pushq %r14
|
|
; X8664: pushq %r13
|
|
; X8664: pushq %r12
|
|
; X8664: pushq %rbx
|
|
; X8664: popq %rbx
|
|
; X8664: popq %r12
|
|
; X8664: popq %r13
|
|
; X8664: popq %r14
|
|
; X8664: popq %r15
|
|
|
|
; X8632-LABEL: calls_unwind_init:
|
|
; X8632: pushl %ebp
|
|
; X8632: pushl %ebx
|
|
; X8632: pushl %edi
|
|
; X8632: pushl %esi
|
|
; X8632: popl %esi
|
|
; X8632: popl %edi
|
|
; X8632: popl %ebx
|
|
; X8632: popl %ebp
|