Can you commit<span></span> those test cases so this fix is checked?<br><br>On Sunday, May 22, 2016, Zuckerman, Michael <<a href="mailto:michael.zuckerman@intel.com">michael.zuckerman@intel.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">In this test, there was no problem.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">But if you will try the bellow test you will fail with wrong instruction selection (<u>pd</u> instead of sd).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><a name="m_-7682232806073623053__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">declare <2 x double> @llvm.x86.avx512.rcp14.sd(<2 x double>, <2 x double>, <2 x double>, i8) nounwind readnone<u></u><u></u></span></a></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">define <2 x double> @test_rcp14_sd() {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">    %res = call <2 x double> @<a href="http://llvm.x86.avx512.rcp14.sd" target="_blank">llvm.x86.avx512.rcp14.sd</a>(<2 x double> <double 1.111110e+02, double -3.000000e+00>, <2 x double> <double -2.000000e+00, double 2.222220e+02>,
 < 2 x double> zeroinitializer, i8 -1)   <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">    ret <2 x double> %res<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><u><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Without the patch
<u></u><u></u></span></u></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">-bash-4.2$ llc < test3.ll -mtriple=x86_64-apple-darwin
<b><span style="background:yellow">-mcpu=skx</span></b> -o -<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__text,regular,pure_instructions<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__literal16,16byte_literals<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .p2align        4<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">LCPI0_0:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   4637519158471194313     ## double 111.111<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   -4609434218613702656    ## double -3<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__text,regular,pure_instructions<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .globl  _test_rcp14_sd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .p2align        4, 0x90<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">_test_rcp14_sd:                         ## @test_rcp14_sd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .cfi_startproc<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">## BB#0:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">       
<b><span style="background:yellow">vrcp14pd</span></b>        LCPI0_0(%rip), %xmm0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        retq<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .cfi_endproc<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">-bash-4.2$ llc < test3.ll -mtriple=x86_64-apple-darwin
<b><span style="background:yellow">-mcpu=knl</span></b> -o -<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__text,regular,pure_instructions<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__literal16,16byte_literals<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .p2align        4<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">LCPI0_0:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   -4611686018427387904    ## double -2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   4642022758098564809     ## double 222.22200000000001<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">LCPI0_1:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   4637519158471194313     ## double 111.111<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   -4609434218613702656    ## double -3<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__text,regular,pure_instructions<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .globl  _test_rcp14_sd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .p2align        4, 0x90<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">_test_rcp14_sd:                         ## @test_rcp14_sd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .cfi_startproc<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">## BB#0:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        vmovaps LCPI0_0(%rip), %xmm0    ## xmm0 = [-2.000000e+00,2.222220e+02]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        vmovaps LCPI0_1(%rip), %xmm1    ## xmm1 = [1.111110e+02,-3.000000e+00]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">       
<b><span style="background:yellow">vrcp14sd</span></b>        %xmm0, %xmm1, %xmm0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        retq<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .cfi_endproc<u></u><u></u></span></p>
<p class="MsoNormal"><b><u><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u><span style="text-decoration:none"> </span><u></u></span></u></b></p>
<p class="MsoNormal"><b><u><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">With patch
<u></u><u></u></span></u></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">-bash-4.2$ llc < test3.ll -mtriple=x86_64-apple-darwin
<b><span style="background:yellow">-mcpu=skx</span></b> -o -<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__text,regular,pure_instructions<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__literal16,16byte_literals<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .p2align        4<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">LCPI0_0:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   -4611686018427387904    ## double -2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   4642022758098564809     ## double 222.22200000000001<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">LCPI0_1:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   4637519158471194313     ## double 111.111<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   -4609434218613702656    ## double -3<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__text,regular,pure_instructions<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .globl  _test_rcp14_sd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .p2align        4, 0x90<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">_test_rcp14_sd:                         ## @test_rcp14_sd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .cfi_startproc<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">## BB#0:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        vmovapd LCPI0_0(%rip), %xmm0    ## xmm0 = [-2.000000e+00,2.222220e+02]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        vmovapd LCPI0_1(%rip), %xmm1    ## xmm1 = [1.111110e+02,-3.000000e+00]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">       
<b><span style="background:yellow">vrcp14sd</span></b>        %xmm0, %xmm1, %xmm0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        retq<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .cfi_endproc<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">.subsections_via_symbols<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">-bash-4.2$ llc < test3.ll -mtriple=x86_64-apple-darwin
<b><span style="background:yellow">-mcpu=knl</span></b> -o -<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__text,regular,pure_instructions<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__literal16,16byte_literals<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .p2align        4<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">LCPI0_0:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   -4611686018427387904    ## double -2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   4642022758098564809     ## double 222.22200000000001<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">LCPI0_1:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   4637519158471194313     ## double 111.111<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .quad   -4609434218613702656    ## double -3<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .section        __TEXT,__text,regular,pure_instructions<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .globl  _test_rcp14_sd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .p2align        4, 0x90<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">_test_rcp14_sd:                         ## @test_rcp14_sd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .cfi_startproc<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">## BB#0:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        vmovaps LCPI0_0(%rip), %xmm0    ## xmm0 = [-2.000000e+00,2.222220e+02]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        vmovaps LCPI0_1(%rip), %xmm1    ## xmm1 = [1.111110e+02,-3.000000e+00]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">       
<b><span style="background:yellow">vrcp14sd</span></b>        %xmm0, %xmm1, %xmm0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        retq<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">        .cfi_endproc<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hope this was helpful
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Michael Zuckerman
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><a name="m_-7682232806073623053______replyseparator"></a><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Craig Topper [mailto:<a href="javascript:_e(%7B%7D,'cvml','craig.topper@gmail.com');" target="_blank">craig.topper@gmail.com</a>]
<br>
<b>Sent:</b> Saturday, May 21, 2016 21:30<br>
<b>To:</b> Zuckerman, Michael <<a href="javascript:_e(%7B%7D,'cvml','michael.zuckerman@intel.com');" target="_blank">michael.zuckerman@intel.com</a>><br>
<b>Cc:</b> llvm-commits <<a href="javascript:_e(%7B%7D,'cvml','llvm-commits@lists.llvm.org');" target="_blank">llvm-commits@lists.llvm.org</a>><br>
<b>Subject:</b> Re: [llvm] r270322 - [Clang][AVX512][intrinsics] Fix rcp and sqrt intrinsics.<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I can't tell from looking at the deleted test cases and the new test cases that it was picking the wrong instruction. What am I missing?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Sat, May 21, 2016 at 7:44 AM, Michael Zuckerman via llvm-commits <<a href="javascript:_e(%7B%7D,'cvml','llvm-commits@lists.llvm.org');" target="_blank">llvm-commits@lists.llvm.org</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Author: mzuckerm<br>
Date: Sat May 21 09:44:18 2016<br>
New Revision: 270322<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=270322&view=rev" target="_blank">
http://llvm.org/viewvc/llvm-project?rev=270322&view=rev</a><br>
Log:<br>
[Clang][AVX512][intrinsics] Fix rcp and sqrt intrinsics.<br>
<br>
Differential Revision: <a href="http://reviews.llvm.org/D20438" target="_blank">http://reviews.llvm.org/D20438</a><br>
<br>
Modified:<br>
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp<br>
    llvm/trunk/lib/Target/X86/X86ISelLowering.h<br>
    llvm/trunk/lib/Target/X86/X86InstrFragmentsSIMD.td<br>
    llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h<br>
    llvm/trunk/test/CodeGen/X86/avx512-intrinsics.ll<br>
    llvm/trunk/test/CodeGen/X86/avx512-scalarIntrinsics.ll<br>
<br>
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=270322&r1=270321&r2=270322&view=diff" target="_blank">
http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=270322&r1=270321&r2=270322&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)<br>
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat May 21 09:44:18 2016<br>
@@ -21753,7 +21753,9 @@ const char *X86TargetLowering::getTarget<br>
   case X86ISD::FMAXC:              return "X86ISD::FMAXC";<br>
   case X86ISD::FMINC:              return "X86ISD::FMINC";<br>
   case X86ISD::FRSQRT:             return "X86ISD::FRSQRT";<br>
+  case X86ISD::FRSQRTS:             return "X86ISD::FRSQRTS";<br>
   case X86ISD::FRCP:               return "X86ISD::FRCP";<br>
+  case X86ISD::FRCPS:              return "X86ISD::FRCPS";<br>
   case X86ISD::EXTRQI:             return "X86ISD::EXTRQI";<br>
   case X86ISD::INSERTQI:           return "X86ISD::INSERTQI";<br>
   case X86ISD::TLSADDR:            return "X86ISD::TLSADDR";<br>
<br>
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.h?rev=270322&r1=270321&r2=270322&view=diff" target="_blank">
http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.h?rev=270322&r1=270321&r2=270322&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Target/X86/X86ISelLowering.h (original)<br>
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.h Sat May 21 09:44:18 2016<br>
@@ -250,7 +250,8 @@ namespace llvm {<br>
       /// Note that these typically require refinement<br>
       /// in order to obtain suitable precision.<br>
       FRSQRT, FRCP,<br>
-<br>
+      FRSQRTS, FRCPS,<br>
+<br>
       // Thread Local Storage.<br>
       TLSADDR,<br>
<br>
<br>
Modified: llvm/trunk/lib/Target/X86/X86InstrFragmentsSIMD.td<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrFragmentsSIMD.td?rev=270322&r1=270321&r2=270322&view=diff" target="_blank">
http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrFragmentsSIMD.td?rev=270322&r1=270321&r2=270322&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Target/X86/X86InstrFragmentsSIMD.td (original)<br>
+++ llvm/trunk/lib/Target/X86/X86InstrFragmentsSIMD.td Sat May 21 09:44:18 2016<br>
@@ -60,8 +60,8 @@ def X86fandn   : SDNode<"X86ISD::FANDN",<br>
                         [SDNPCommutative, SDNPAssociative]>;<br>
 def X86frsqrt  : SDNode<"X86ISD::FRSQRT",    SDTFPUnaryOp>;<br>
 def X86frcp    : SDNode<"X86ISD::FRCP",      SDTFPUnaryOp>;<br>
-def X86frsqrt14s: SDNode<"X86ISD::FRSQRT",  SDTFPBinOp>;<br>
-def X86frcp14s : SDNode<"X86ISD::FRCP",    SDTFPBinOp>;<br>
+def X86frsqrt14s: SDNode<"X86ISD::FRSQRTS",  SDTFPBinOp>;<br>
+def X86frcp14s : SDNode<"X86ISD::FRCPS",    SDTFPBinOp>;<br>
 def X86fhadd   : SDNode<"X86ISD::FHADD",     SDTFPBinOp>;<br>
 def X86fhsub   : SDNode<"X86ISD::FHSUB",     SDTFPBinOp>;<br>
 def X86hadd    : SDNode<"X86ISD::HADD",      SDTIntBinOp>;<br>
<br>
Modified: llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h?rev=270322&r1=270321&r2=270322&view=diff" target="_blank">
http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h?rev=270322&r1=270321&r2=270322&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h (original)<br>
+++ llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h Sat May 21 09:44:18 2016<br>
@@ -2125,8 +2125,8 @@ static const IntrinsicData  IntrinsicsWi<br>
   X86_INTRINSIC_DATA(avx512_rcp14_ps_128, INTR_TYPE_1OP_MASK, X86ISD::FRCP, 0),<br>
   X86_INTRINSIC_DATA(avx512_rcp14_ps_256, INTR_TYPE_1OP_MASK, X86ISD::FRCP, 0),<br>
   X86_INTRINSIC_DATA(avx512_rcp14_ps_512, INTR_TYPE_1OP_MASK, X86ISD::FRCP, 0),<br>
-  X86_INTRINSIC_DATA(avx512_rcp14_sd, INTR_TYPE_SCALAR_MASK, X86ISD::FRCP, 0),<br>
-  X86_INTRINSIC_DATA(avx512_rcp14_ss, INTR_TYPE_SCALAR_MASK, X86ISD::FRCP, 0),<br>
+  X86_INTRINSIC_DATA(avx512_rcp14_sd, INTR_TYPE_SCALAR_MASK, X86ISD::FRCPS, 0),<br>
+  X86_INTRINSIC_DATA(avx512_rcp14_ss, INTR_TYPE_SCALAR_MASK, X86ISD::FRCPS, 0),<br>
   X86_INTRINSIC_DATA(avx512_rcp28_pd, INTR_TYPE_1OP_MASK_RM, X86ISD::RCP28, 0),<br>
   X86_INTRINSIC_DATA(avx512_rcp28_ps, INTR_TYPE_1OP_MASK_RM, X86ISD::RCP28, 0),<br>
   X86_INTRINSIC_DATA(avx512_rcp28_sd, INTR_TYPE_SCALAR_MASK_RM, X86ISD::RCP28, 0),<br>
@@ -2137,8 +2137,8 @@ static const IntrinsicData  IntrinsicsWi<br>
   X86_INTRINSIC_DATA(avx512_rsqrt14_ps_128, INTR_TYPE_1OP_MASK, X86ISD::FRSQRT, 0),<br>
   X86_INTRINSIC_DATA(avx512_rsqrt14_ps_256, INTR_TYPE_1OP_MASK, X86ISD::FRSQRT, 0),<br>
   X86_INTRINSIC_DATA(avx512_rsqrt14_ps_512, INTR_TYPE_1OP_MASK, X86ISD::FRSQRT, 0),<br>
-  X86_INTRINSIC_DATA(avx512_rsqrt14_sd, INTR_TYPE_SCALAR_MASK, X86ISD::FRSQRT, 0),<br>
-  X86_INTRINSIC_DATA(avx512_rsqrt14_ss, INTR_TYPE_SCALAR_MASK, X86ISD::FRSQRT, 0),<br>
+  X86_INTRINSIC_DATA(avx512_rsqrt14_sd, INTR_TYPE_SCALAR_MASK, X86ISD::FRSQRTS, 0),<br>
+  X86_INTRINSIC_DATA(avx512_rsqrt14_ss, INTR_TYPE_SCALAR_MASK, X86ISD::FRSQRTS, 0),<br>
   X86_INTRINSIC_DATA(avx512_rsqrt28_pd, INTR_TYPE_1OP_MASK_RM,X86ISD::RSQRT28, 0),<br>
   X86_INTRINSIC_DATA(avx512_rsqrt28_ps, INTR_TYPE_1OP_MASK_RM,X86ISD::RSQRT28, 0),<br>
   X86_INTRINSIC_DATA(avx512_rsqrt28_sd, INTR_TYPE_SCALAR_MASK_RM,X86ISD::RSQRT28, 0),<br>
<br>
Modified: llvm/trunk/test/CodeGen/X86/avx512-intrinsics.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx512-intrinsics.ll?rev=270322&r1=270321&r2=270322&view=diff" target="_blank">
http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx512-intrinsics.ll?rev=270322&r1=270321&r2=270322&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/CodeGen/X86/avx512-intrinsics.ll (original)<br>
+++ llvm/trunk/test/CodeGen/X86/avx512-intrinsics.ll Sat May 21 09:44:18 2016<br>
@@ -126,26 +126,6 @@ define <16 x float> @test_rsqrt_ps_512(<<br>
 }<br>
 declare <16 x float> @llvm.x86.avx512.rsqrt14.ps.512(<16 x float>, <16 x float>, i16) nounwind readnone<br>
<br>
-define <4 x float> @test_rsqrt14_ss(<4 x float> %a0) {<br>
-; CHECK-LABEL: test_rsqrt14_ss:<br>
-; CHECK:       ## BB#0:<br>
-; CHECK-NEXT:    vrsqrt14ss %xmm0, %xmm0, %xmm0<br>
-; CHECK-NEXT:    retq<br>
-  %res = call <4 x float> @llvm.x86.avx512.rsqrt14.ss(<4 x float> %a0, <4 x float> %a0, <4 x float> zeroinitializer, i8 -1) ; <<4 x float>> [#uses=1]<br>
-  ret <4 x float> %res<br>
-}<br>
-declare <4 x float> @llvm.x86.avx512.rsqrt14.ss(<4 x float>, <4 x float>, <4 x float>, i8) nounwind readnone<br>
-<br>
-define <4 x float> @test_rcp14_ss(<4 x float> %a0) {<br>
-; CHECK-LABEL: test_rcp14_ss:<br>
-; CHECK:       ## BB#0:<br>
-; CHECK-NEXT:    vrcp14ss %xmm0, %xmm0, %xmm0<br>
-; CHECK-NEXT:    retq<br>
-  %res = call <4 x float> @llvm.x86.avx512.rcp14.ss(<4 x float> %a0, <4 x float> %a0, <4 x float> zeroinitializer, i8 -1) ; <<4 x float>> [#uses=1]<br>
-  ret <4 x float> %res<br>
-}<br>
-declare <4 x float> @llvm.x86.avx512.rcp14.ss(<4 x float>, <4 x float>, <4 x float>, i8) nounwind readnone<br>
-<br>
 define <8 x double> @test_sqrt_pd_512(<8 x double> %a0) {<br>
 ; CHECK-LABEL: test_sqrt_pd_512:<br>
 ; CHECK:       ## BB#0:<br>
<br>
Modified: llvm/trunk/test/CodeGen/X86/avx512-scalarIntrinsics.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx512-scalarIntrinsics.ll?rev=270322&r1=270321&r2=270322&view=diff" target="_blank">
http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx512-scalarIntrinsics.ll?rev=270322&r1=270321&r2=270322&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/CodeGen/X86/avx512-scalarIntrinsics.ll (original)<br>
+++ llvm/trunk/test/CodeGen/X86/avx512-scalarIntrinsics.ll Sat May 21 09:44:18 2016<br>
@@ -1,6 +1,48 @@<br>
 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=skx | FileCheck %s<br>
 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s<br>
<br>
+<br>
+define <4 x float> @test_rsqrt14_ss(<4 x float> %a0) {<br>
+  ; CHECK-LABEL: test_rsqrt14_ss:<br>
+  ; CHECK:       ## BB#0:<br>
+  ; CHECK-NEXT:    vrsqrt14ss %xmm0, %xmm0, %xmm0<br>
+  ; CHECK-NEXT:    retq<br>
+    %res = call <4 x float> @llvm.x86.avx512.rsqrt14.ss(<4 x float> %a0, <4 x float> %a0, <4 x float> zeroinitializer, i8 -1) ;<br>
+    ret <4 x float> %res<br>
+}<br>
+declare <4 x float> @llvm.x86.avx512.rsqrt14.ss(<4 x float>, <4 x float>, <4 x float>, i8) nounwind readnone<br>
+<br>
+define <4 x float> @test_rcp14_ss(<4 x float> %a0) {<br>
+  ; CHECK-LABEL: test_rcp14_ss:<br>
+  ; CHECK:       ## BB#0:<br>
+  ; CHECK-NEXT:    vrcp14ss %xmm0, %xmm0, %xmm0<br>
+  ; CHECK-NEXT:    retq<br>
+    %res = call <4 x float> @llvm.x86.avx512.rcp14.ss(<4 x float> %a0, <4 x float> %a0, <4 x float> zeroinitializer, i8 -1) ;<br>
+    ret <4 x float> %res<br>
+}<br>
+declare <4 x float> @llvm.x86.avx512.rcp14.ss(<4 x float>, <4 x float>, <4 x float>, i8) nounwind readnone<br>
+<br>
+define <2 x double> @test_rsqrt14_sd(<2 x double> %a0) {<br>
+  ; CHECK-LABEL: test_rsqrt14_sd:<br>
+  ; CHECK:       ## BB#0:<br>
+  ; CHECK-NEXT:    vrsqrt14sd %xmm0, %xmm0, %xmm0<br>
+  ; CHECK-NEXT:    retq<br>
+    %res = call <2 x double> @<a href="http://llvm.x86.avx512.rsqrt14.sd" target="_blank">llvm.x86.avx512.rsqrt14.sd</a>(<2 x double> %a0, <2 x double> %a0, <2 x double> zeroinitializer, i8 -1) ;<br>
+    ret <2 x double> %res<br>
+}<br>
+declare <2 x double> @<a href="http://llvm.x86.avx512.rsqrt14.sd" target="_blank">llvm.x86.avx512.rsqrt14.sd</a>(<2 x double>, <2 x double>, <2 x double>, i8) nounwind readnone<br>
+<br>
+define <2 x double> @test_rcp14_sd(<2 x double> %a0) {<br>
+  ; CHECK-LABEL: test_rcp14_sd:<br>
+  ; CHECK:       ## BB#0:<br>
+  ; CHECK-NEXT:    vrcp14sd %xmm0, %xmm0, %xmm0<br>
+  ; CHECK-NEXT:    retq<br>
+    %res = call <2 x double> @<a href="http://llvm.x86.avx512.rcp14.sd" target="_blank">llvm.x86.avx512.rcp14.sd</a>(<2 x double> %a0, <2 x double> %a0, <2 x double> zeroinitializer, i8 -1) ;<br>
+    ret <2 x double> %res<br>
+<br>
+}<br>
+declare <2 x double> @<a href="http://llvm.x86.avx512.rcp14.sd" target="_blank">llvm.x86.avx512.rcp14.sd</a>(<2 x double>, <2 x double>, <2 x double>, i8) nounwind readnone<br>
+<br>
 declare <4 x float> @llvm.x86.avx512.mask.scalef.ss(<4 x float>, <4 x float>,<4 x float>, i8, i32)<br>
 define <4 x float>@test_int_x86_avx512_mask_scalef_ss(<4 x float> %x0, <4 x float> %x1, <4 x float> %x3, i8 %x4) {<br>
   ; CHECK-LABEL: test_int_x86_avx512_mask_scalef_ss:<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','llvm-commits@lists.llvm.org');" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<p class="MsoNormal">~Craig<u></u><u></u></p>
</div>
</div>
</div>
<p>---------------------------------------------------------------------<br>
Intel Israel (74) Limited</p>

<p>This e-mail and any attachments may contain confidential material for<br>
the sole use of the intended recipient(s). Any review or distribution<br>
by others is strictly prohibited. If you are not the intended<br>
recipient, please contact the sender and delete all copies.</p></div>

</blockquote><br><br>-- <br>~Craig<br>