[PATCH] D71864: [X86] Set all bits of zmm register to 1 before fp_to_int when target only supports avx512dq

LiuChen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 24 21:12:40 PST 2019


LiuChen3 marked an inline comment as done.
LiuChen3 added inline comments.


================
Comment at: llvm/test/CodeGen/X86/vector-constrained-fp-intrinsics.ll:4213
 ; AVX512DQ-NEXT:    vmovaps {{.*#+}} xmm0 = [4.2100000000000001E+1,4.2200000000000003E+1]
-; AVX512DQ-NEXT:    vcvttpd2qq %zmm0, %zmm0
+; AVX512DQ-NEXT:    vxorps %xmm1, %xmm1, %xmm1
+; AVX512DQ-NEXT:    vmovaps %xmm0, %xmm1
----------------
VEX.128 and EVEX.128 will zero upper bits (MAXVL-1:128) of the corresponding ZMM register.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71864/new/

https://reviews.llvm.org/D71864





More information about the llvm-commits mailing list