http://llvm.org/bugs/show_bug.cgi?id=21443

            Bug ID: 21443
           Summary: [PPC64] Wrong register generated for inline assembler
           Product: libraries
           Version: trunk
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 13270
  --> http://llvm.org/bugs/attachment.cgi?id=13270&action=edit
.ll file demonstrating the bug

The attached file ppc_inline.ll works fine if compiled with -O0 but not with a
higher optimization level. Root cause is that a std 23, 0(0) is generated which
causes a segmentation fault.

The original source is part of the D runtime library, see here:
https://github.com/ldc-developers/druntime/blob/ldc/src/core/thread.d#L2148

The purpose of the code is to store all nonvolatile GPRs on the stack to enable
the garbage collector to scan the register values.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to