<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Crash while building compiler-rt/lib/builtins/atomic.c"
   href="https://bugs.llvm.org/show_bug.cgi?id=34020">34020</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash while building compiler-rt/lib/builtins/atomic.c
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>Catherine_Moore@mentor.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18886" name="attach_18886" title="Preprocesed source">attachment 18886</a> <a href="attachment.cgi?id=18886&action=edit" title="Preprocesed source">[details]</a></span>
Preprocesed source

This file compiled successfully with LLVM 4.0, but now crashes when compiled
with 5.0 and trunk.  The errors reported are:

fatal error: error in backend: Cannot select: t7: i32,ch = AtomicSwap<Volatile
LDST4[%21]> t4:1, t6, t4
  t6: i32,ch = CopyFromReg t0, Register:i32 %vreg1
    t5: i32 = Register %vreg1
  t4: i32,ch = load<LD4[%.atomictmp2](dereferenceable)> t0, FrameIndex:i32<7>,
undef:i32
    t1: i32 = FrameIndex<7>
    t3: i32 = undef
In function: __atomic_exchange_c
clang-6.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 6.0.0 (trunk) (llvm/trunk 309605)
Target: arm-none--eabi
Thread model: single
InstalledDir: /scratch/cmoore/virgin-llvm-upstream-trunk/install-stage2/bin
clang-6.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed s          
                                                                               
 ource, and associated run script.
clang-6.0: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-6.0: note: diagnostic msg: /tmp/atomic-d9e982.c
clang-6.0: note: diagnostic msg: /tmp/atomic-d9e982.sh
clang-6.0: note: diagnostic msg:</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>