<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:llvm-dev@redking.me.uk" title="Simon Pilgrim <llvm-dev@redking.me.uk>"> <span class="fn">Simon Pilgrim</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - error in backend: Cannot select: intrinsic %llvm.x86.sse2.mfence"
   href="https://llvm.org/bugs/show_bug.cgi?id=19770">bug 19770</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>llvm-dev@redking.me.uk
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - error in backend: Cannot select: intrinsic %llvm.x86.sse2.mfence"
   href="https://llvm.org/bugs/show_bug.cgi?id=19770#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - error in backend: Cannot select: intrinsic %llvm.x86.sse2.mfence"
   href="https://llvm.org/bugs/show_bug.cgi?id=19770">bug 19770</a>
              from <span class="vcard"><a class="email" href="mailto:llvm-dev@redking.me.uk" title="Simon Pilgrim <llvm-dev@redking.me.uk>"> <span class="fn">Simon Pilgrim</span></a>
</span></b>
        <pre>Resolving. Trunk gives:

echo 'void f() { __builtin_ia32_mfence(); }' | ~/llvm/build/bin/clang -cc1
-triple i386---elf -S -x c -

<stdin>:1:12: error: '__builtin_ia32_mfence' needs target feature sse2
void f() { __builtin_ia32_mfence(); }

And adding sse2:

echo 'void f() { __builtin_ia32_mfence(); }' | ~/llvm/build/bin/clang -cc1
-triple i386---elf -S -x c -  -target-feature "+sse2"
    .text
    .file    "-"
    .globl    f
    .p2align    4, 0x90
    .type    f,@function
f:
    mfence
    retl
.Lfunc_end0:
    .size    f, .Lfunc_end0-f


    .ident    "clang version 4.0.0 (trunk 276559)"
    .section    ".note.GNU-stack","",@progbits</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>