Thanks. I'm really not sure what happened. I remember fixing that when I wrote the test cases.<br><br><div class="gmail_quote">On Fri, Jun 15, 2012 at 6:40 AM, NAKAMURA Takumi <span dir="ltr"><<a href="mailto:geek4civic@gmail.com" target="_blank">geek4civic@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Craig, fixed in r158521. Please reconfirm.<br>
<br>
...Takumi<br>
<br>
2012/6/15 Craig Topper <<a href="mailto:craig.topper@gmail.com" target="_blank">craig.topper@gmail.com</a>>:<br>
<div><div>> Author: ctopper<br>
> Date: Fri Jun 15 01:33:42 2012<br>
> New Revision: 158492<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=158492&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=158492&view=rev</a><br>
> Log:<br>
> Add XOP frcz instrinsics.<br>
><br>
> Modified:<br>
>    cfe/trunk/include/clang/Basic/BuiltinsX86.def<br>
>    cfe/trunk/lib/Headers/xopintrin.h<br>
>    cfe/trunk/test/CodeGen/xop-builtins.c<br>
><br>
> Modified: cfe/trunk/include/clang/Basic/BuiltinsX86.def<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/BuiltinsX86.def?rev=158492&r1=158491&r2=158492&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/BuiltinsX86.def?rev=158492&r1=158491&r2=158492&view=diff</a><br>


> ==============================================================================<br>
> --- cfe/trunk/include/clang/Basic/BuiltinsX86.def (original)<br>
> +++ cfe/trunk/include/clang/Basic/BuiltinsX86.def Fri Jun 15 01:33:42 2012<br>
> @@ -701,5 +701,11 @@<br>
>  BUILTIN(__builtin_ia32_vpermil2pd256, "V4dV4dV4dV4LLiIc", "")<br>
>  BUILTIN(__builtin_ia32_vpermil2ps, "V4fV4fV4fV4iIc", "")<br>
>  BUILTIN(__builtin_ia32_vpermil2ps256, "V8fV8fV8fV8iIc", "")<br>
> +BUILTIN(__builtin_ia32_vfrczss, "V4fV4f", "")<br>
> +BUILTIN(__builtin_ia32_vfrczsd, "V2dV2d", "")<br>
> +BUILTIN(__builtin_ia32_vfrczps, "V4fV4f", "")<br>
> +BUILTIN(__builtin_ia32_vfrczpd, "V2dV2d", "")<br>
> +BUILTIN(__builtin_ia32_vfrczps256, "V8fV8f", "")<br>
> +BUILTIN(__builtin_ia32_vfrczpd256, "V4dV4d", "")<br>
><br>
>  #undef BUILTIN<br>
><br>
> Modified: cfe/trunk/lib/Headers/xopintrin.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/xopintrin.h?rev=158492&r1=158491&r2=158492&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/xopintrin.h?rev=158492&r1=158491&r2=158492&view=diff</a><br>


> ==============================================================================<br>
> --- cfe/trunk/lib/Headers/xopintrin.h (original)<br>
> +++ cfe/trunk/lib/Headers/xopintrin.h Fri Jun 15 01:33:42 2012<br>
> @@ -370,6 +370,42 @@<br>
>   (__m256)__builtin_ia32_vpermil2ps256((__v8sf)__X, (__v8sf)__Y, \<br>
>                                        (__v8si)__C, (I)); })<br>
><br>
> +static __inline__ __m128 __attribute__((__always_inline__, __nodebug__))<br>
> +_mm_frcz_ss(__m128 __A)<br>
> +{<br>
> +  return (__m128)__builtin_ia32_vfrczss((__v4sf)__A);<br>
> +}<br>
> +<br>
> +static __inline__ __m128d __attribute__((__always_inline__, __nodebug__))<br>
> +_mm_frcz_sd(__m128d __A)<br>
> +{<br>
> +  return (__m128d)__builtin_ia32_vfrczsd((__v2df)__A);<br>
> +}<br>
> +<br>
> +static __inline__ __m128 __attribute__((__always_inline__, __nodebug__))<br>
> +_mm_frcz_ps(__m128 __A)<br>
> +{<br>
> +  return (__m128)__builtin_ia32_vfrczps((__v4sf)__A);<br>
> +}<br>
> +<br>
> +static __inline__ __m128d __attribute__((__always_inline__, __nodebug__))<br>
> +_mm_frcz_pd(__m128d __A)<br>
> +{<br>
> +  return (__m128d)__builtin_ia32_vfrczpd((__v2df)__A);<br>
> +}<br>
> +<br>
> +static __inline__ __m256 __attribute__((__always_inline__, __nodebug__))<br>
> +_mm_frcz_ps(__m256 __A)<br>
> +{<br>
> +  return (__m256)__builtin_ia32_vfrczps((__v4sf)__A);<br>
> +}<br>
> +<br>
> +static __inline__ __m256d __attribute__((__always_inline__, __nodebug__))<br>
> +_mm_frcz_pd(__m256d __A)<br>
> +{<br>
> +  return (__m256d)__builtin_ia32_vfrczpd((__v2df)__A);<br>
> +}<br>
> +<br>
>  #endif /* __XOP__ */<br>
><br>
>  #endif /* __XOPINTRIN_H */<br>
><br>
> Modified: cfe/trunk/test/CodeGen/xop-builtins.c<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/xop-builtins.c?rev=158492&r1=158491&r2=158492&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/xop-builtins.c?rev=158492&r1=158491&r2=158492&view=diff</a><br>


> ==============================================================================<br>
> --- cfe/trunk/test/CodeGen/xop-builtins.c (original)<br>
> +++ cfe/trunk/test/CodeGen/xop-builtins.c Fri Jun 15 01:33:42 2012<br>
> @@ -294,3 +294,33 @@<br>
>   // CHECK: @llvm.x86.xop.vpermil2ps.256<br>
>   return _mm256_permute2_ps(a, b, c, 0);<br>
>  }<br>
> +<br>
> +__m128 test_mm_frcz_ss(__m128 a) {<br>
> +  // CHECK: @llvm.x86.xop.vfrcz.ss<br>
> +  return _mm_frcz_ss(a);<br>
> +}<br>
> +<br>
> +__m128d test_mm_frcz_sd(__m128d a) {<br>
> +  // CHECK: @<a href="http://llvm.x86.xop.vfrcz.sd" target="_blank">llvm.x86.xop.vfrcz.sd</a><br>
> +  return _mm_frcz_sd(a);<br>
> +}<br>
> +<br>
> +__m128 test_mm_frcz_ps(__m128 a) {<br>
> +  // CHECK: @<a href="http://llvm.x86.xop.vfrcz.ps" target="_blank">llvm.x86.xop.vfrcz.ps</a><br>
> +  return _mm_frcz_ps(a);<br>
> +}<br>
> +<br>
> +__m128d test_mm_frcz_pd(__m128d a) {<br>
> +  // CHECK: @llvm.x86.xop.vfrcz.pd<br>
> +  return _mm_frcz_pd(a);<br>
> +}<br>
> +<br>
> +__m256 test_mm256_frcz_ps(__m256 a) {<br>
> +  // CHECK: @llvm.x86.xop.vfrcz.ps.256<br>
> +  return _mm256_frcz_ps(a);<br>
> +}<br>
> +<br>
> +__m256d test_mm256_frcz_pd(__m256d a) {<br>
> +  // CHECK: @llvm.x86.xop.vfrcz.pd.256<br>
> +  return _mm256_frcz_pd(a);<br>
> +}<br>
><br>
><br>
> _______________________________________________<br>
> cfe-commits mailing list<br>
> <a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>~Craig<br>