[LLVMbugs] [Bug 15573] New: x86_64: Result code use stack before %rsp (out of stack frame)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 22 14:56:27 PDT 2013


            Bug ID: 15573
           Summary: x86_64: Result code use stack before %rsp (out of
                    stack frame)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: leo at sai.msu.ru
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10229
  --> http://llvm.org/bugs/attachment.cgi?id=10229&action=edit
Compile: `clang++ -O3 -m64 -S LayoutGost.cpp'

For function with complex vector operation, when need Spill/Reload registers.
Result x86_64 code (Spill/Reload out of frame):
        movq    %rsp, %rbp
        .cfi_def_cfa_register %rbp
        pushq   %r15
        pushq   %r14
        pushq   %r13
        pushq   %r12
        pushq   %rbx
        subq    $696, %rsp
        movq    %rdx, -856(%rbp) 
        movdqa  %xmm4, -752(%rbp)
        movq    -856(%rbp), %rax
        movdqa  -752(%rbp), %xmm3

As result for programs with signals or interrupts, signal/interrupt handler
rewrite stack below %rsp. 

Sorry, I can't reduce code. Compile: `clang++ -O3 -m64 -S LayoutGost.cpp'

Affect clang x86_64: 3.0, 3.1, 3.2, 3.3 (trunk 173279) and Xcode 4.6.1 Apple
LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
$ uname -a
Darwin leom-3.local 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan  6 22:37:10
PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130322/30d8e51a/attachment.html>

More information about the llvm-bugs mailing list