[llvm-bugs] [Bug 19770] error in backend: Cannot select: intrinsic %llvm.x86.sse2.mfence

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jul 24 07:46:37 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=19770

Simon Pilgrim <llvm-dev at redking.me.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |llvm-dev at redking.me.uk
         Resolution|---                         |FIXED

--- Comment #5 from Simon Pilgrim <llvm-dev at redking.me.uk> ---
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, at function
f:
    mfence
    retl
.Lfunc_end0:
    .size    f, .Lfunc_end0-f


    .ident    "clang version 4.0.0 (trunk 276559)"
    .section    ".note.GNU-stack","", at progbits

-- 
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/20160724/f8b24082/attachment-0001.html>


More information about the llvm-bugs mailing list