[LLVMbugs] [Bug 15630] New: PPC64: atomic store results in bus error if type i8 is used

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 30 08:50:28 PDT 2013


            Bug ID: 15630
           Summary: PPC64: atomic store results in bus error if type i8 is
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: kai at redstar.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10259
  --> http://llvm.org/bugs/attachment.cgi?id=10259&action=edit
IR file demonstrating the problem.

The attached atomicbug_ubyte.ll results in a bus error if compiled with these

llc -O0 -filetype=obj atomicbug_ubyte.ll
gcc -m64 atomicbug_ubyte.o

The code was produced by LDC from the following source and hand-edited to
reduce size:

module atomicbug;

import core.atomic;

void main()
    shared ubyte val = 0;
    atomicStore!(MemoryOrder.seq,ubyte,ubyte)(val, cast(ubyte)1);

There is no bus error if I use type i64 (ulong) instead. Maybe an alignment

The LLVM language reference tells me: "An alignment of 1 is always safe."
(which is used in this file).

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/20130330/20887424/attachment.html>

More information about the llvm-bugs mailing list