<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:david.majnemer@gmail.com" title="David Majnemer <david.majnemer@gmail.com>"> <span class="fn">David Majnemer</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED INVALID - ICE when calling intrinsic _mm_cvtps_ph causes" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24125&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=3nVKQoNXGHNrBC1hQwIBV-cQu3A_pGHu6nQt7WTF12o&s=yyBT9dLtEKHc0cdicn3Y08utbgj-cItCR9MDFclve7M&e=">bug 24125</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>david.majnemer@gmail.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED INVALID - ICE when calling intrinsic _mm_cvtps_ph causes" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24125-23c2&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=3nVKQoNXGHNrBC1hQwIBV-cQu3A_pGHu6nQt7WTF12o&s=ewqbQo5d2tSgcwss3wGuXcLVpOZg3uBXhpzlN9BM3rs&e=">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED INVALID - ICE when calling intrinsic _mm_cvtps_ph causes" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24125&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=3nVKQoNXGHNrBC1hQwIBV-cQu3A_pGHu6nQt7WTF12o&s=yyBT9dLtEKHc0cdicn3Y08utbgj-cItCR9MDFclve7M&e=">bug 24125</a>
from <span class="vcard"><a class="email" href="mailto:david.majnemer@gmail.com" title="David Majnemer <david.majnemer@gmail.com>"> <span class="fn">David Majnemer</span></a>
</span></b>
<pre>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,@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","",@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>