[PATCH][AVX512] Broken icmp for <16 x i64>.

Bader, Aleksey A aleksey.a.bader at intel.com
Fri Dec 13 07:45:07 PST 2013


This patch fixes the following test on AVX512:
define <16 x i1> @test1(<16 x i64> %a, <16 x i64> %b) nounwind {
  %res = icmp eq <16 x i64> %a, %b
  ret <16 x i1> %res

Currently llc produces

        vpcmpeqq        %zmm3, %zmm1, %k0
        kmovw   %k0, (%rsp)
        vpcmpeqq        %zmm2, %zmm0, %k0
        kmovw   %k0, (%rsp)
       kmovw   (%rsp), %k0
        kmovw   %k0, (%rdi)


Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park, 
17 Krylatskaya Str., Bldg 4, Moscow 121614, 
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131213/1f9e3c23/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knl.icmp.diff
Type: application/octet-stream
Size: 1918 bytes
Desc: knl.icmp.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131213/1f9e3c23/attachment.obj>

More information about the llvm-commits mailing list