1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/CodeGen/X86/cfi-xmm.ll
Martin Storsjo ca3dedc8cc [X86] Output cfi directives for saved XMM registers even if no GPRs are saved
This makes sure that functions that only clobber xmm registers
(on win64) also get the right cfi directives, if dwarf exceptions
are enabled.

Differential Revision: https://reviews.llvm.org/D40191

llvm-svn: 318591
2017-11-18 06:23:48 +00:00

22 lines
624 B
LLVM

; RUN: llc -mtriple x86_64-w64-windows-gnu -filetype=asm -exception-model=dwarf -o - %s | FileCheck %s
define void @_Z1fv() {
entry:
tail call void asm sideeffect "", "~{xmm10},~{xmm15},~{dirflag},~{fpsr},~{flags}"()
ret void
}
; CHECK-LABEL: _Z1fv:
; CHECK: .cfi_startproc
; CHECK: subq $40, %rsp
; CHECK: movaps %xmm15, 16(%rsp)
; CHECK: movaps %xmm10, (%rsp)
; CHECK: .cfi_def_cfa_offset 48
; CHECK: .cfi_offset %xmm10, -48
; CHECK: .cfi_offset %xmm15, -32
; CHECK: movaps (%rsp), %xmm10
; CHECK: movaps 16(%rsp), %xmm15
; CHECK: addq $40, %rsp
; CHECK: retq
; CHECK: .cfi_endproc