[PATCH] D40191: [X86] Output cfi directives for saved XMM registers even if no GPRs are saved
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 22:23:59 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL318591: [X86] Output cfi directives for saved XMM registers even if no GPRs are saved (authored by mstorsjo).
Changed prior to commit:
https://reviews.llvm.org/D40191?vs=123398&id=123460#toc
Repository:
rL LLVM
https://reviews.llvm.org/D40191
Files:
llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
llvm/trunk/test/CodeGen/X86/cfi-xmm.ll
Index: llvm/trunk/test/CodeGen/X86/cfi-xmm.ll
===================================================================
--- llvm/trunk/test/CodeGen/X86/cfi-xmm.ll
+++ llvm/trunk/test/CodeGen/X86/cfi-xmm.ll
@@ -0,0 +1,21 @@
+; 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
Index: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
===================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
@@ -1436,8 +1436,7 @@
}
// Emit DWARF info specifying the offsets of the callee-saved registers.
- if (PushedRegs)
- emitCalleeSavedFrameMoves(MBB, MBBI, DL);
+ emitCalleeSavedFrameMoves(MBB, MBBI, DL);
}
// X86 Interrupt handling function cannot assume anything about the direction
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40191.123460.patch
Type: text/x-patch
Size: 1400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171118/c2d42910/attachment.bin>
More information about the llvm-commits
mailing list