<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - PPC64: atomic store results in bus error if type i8 is used"
   href="http://llvm.org/bugs/show_bug.cgi?id=15630">15630</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PPC64: atomic store results in bus error if type i8 is used
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: PowerPC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kai@redstar.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10259" name="attach_10259" title="IR file demonstrating the problem.">attachment 10259</a> <a href="attachment.cgi?id=10259&action=edit" title="IR file demonstrating the problem.">[details]</a></span>
IR file demonstrating the problem.

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

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

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
problem?

The LLVM language reference tells me: "An alignment of 1 is always safe."
(which is used in this file).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>