<html>
    <head>
      <base href="https://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 --- - fatal error: error in backend: Cannot select: intrinsic %llvm.x86.sse2.mfence"
   href="https://llvm.org/bugs/show_bug.cgi?id=23237">23237</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>fatal error: error in backend: Cannot select: intrinsic %llvm.x86.sse2.mfence
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>paulepanter@users.sourceforge.net
          </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=14205" name="attach_14205" title="Preprocessed source">attachment 14205</a> <a href="attachment.cgi?id=14205&action=edit" title="Preprocessed source">[details]</a></span>
Preprocessed source

Using Building a coreboot [1] firmware image for an AGESA board like the ASRock
E350M1, it fails with the following error.

Please note, that I needed to apply the patch with the work-around from <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Provides a way to extract the path of libcompiler_rt"
   href="show_bug.cgi?id=21538">bug
21538</a> [2] to get it past another error.

------ 8< ---- >8 ------
$ make
[…]
    CC         vendorcode/amd/agesa/f14/Lib/amdlib.libagesa.o
fatal error: error in backend: Cannot select: intrinsic %llvm.x86.sse2.mfence
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 3.7.0 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
111e330648f7da9910029bf4e1bc4547dbd8f43f) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
058309ba87896d28a995118f5415011caa97cfbe)
Target: i386--linux-elf
Thread model: posix
clang: 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 source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/amdlib-8ab3eb.c
clang: note: diagnostic msg: /tmp/amdlib-8ab3eb.sh
clang: note: diagnostic msg: 

********************
Makefile:250: recipe for target
'build/vendorcode/amd/agesa/f14/Lib/amdlib.libagesa.o' failed
make: *** [build/vendorcode/amd/agesa/f14/Lib/amdlib.libagesa.o] Error 70
------ 8< ---- >8 ------

Please find amdlib-8ab3eb.c attached.

[1] <a href="http://www.coreboot.org">http://www.coreboot.org</a>
[2] <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Provides a way to extract the path of libcompiler_rt"
   href="show_bug.cgi?id=21538">https://llvm.org/bugs/show_bug.cgi?id=21538</a></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>