[LLVMbugs] [Bug 24125] ICE when calling intrinsic _mm_cvtps_ph causes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 14 17:13:54 PDT 2015


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

David Majnemer <david.majnemer at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |david.majnemer at gmail.com
         Resolution|---                         |INVALID

--- Comment #2 from David Majnemer <david.majnemer at gmail.com> ---
Charles, you need to compile with -mf16c:
$ echo '#include <x86intrin.h>

__m128i foo( __m128i v128) {
  return _mm_cvtps_ph(v128, 1);

}' | ~/llvm/Debug+Asserts/bin/clang -x c++ -S -o - - -mf16c
        .text
        .file   "-"
        .globl  _Z3fooDv2_x
        .align  16, 0x90
        .type   _Z3fooDv2_x, at function
_Z3fooDv2_x:                            # @_Z3fooDv2_x
        .cfi_startproc
# BB#0:                                 # %entry
        pushq   %rbp
.Ltmp0:
        .cfi_def_cfa_offset 16
.Ltmp1:
        .cfi_offset %rbp, -16
        movq    %rsp, %rbp
.Ltmp2:
        .cfi_def_cfa_register %rbp
        vmovaps %xmm0, -16(%rbp)
        vmovaps %xmm0, -32(%rbp)
        vcvtps2ph       $1, %xmm0, %xmm0
        vmovaps %xmm0, %xmm1
        vmovdqa %xmm0, -48(%rbp)
        vmovdqa -48(%rbp), %xmm0
        vmovaps %xmm1, -64(%rbp)        # 16-byte Spill
        popq    %rbp
        retq
.Lfunc_end0:
        .size   _Z3fooDv2_x, .Lfunc_end0-_Z3fooDv2_x
        .cfi_endproc


        .ident  "clang version 3.8.0 (trunk 242190) (llvm/trunk 242235)"
        .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/20150715/6267a237/attachment.html>


More information about the llvm-bugs mailing list