[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:03:21 PST 2019


LiuChen3 created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

v2f64->v2i64 and v4f64->v4i64 may raise unexpected exceptions when target only support avx512dq because the high bit of zmm register is undef.
This patch will clear zmm register before doing strict_fp_to_int.


https://reviews.llvm.org/D71864

Files:
  llvm/lib/Target/X86/X86InstrAVX512.td
  llvm/test/CodeGen/X86/vec-strict-fptoint-128.ll
  llvm/test/CodeGen/X86/vec-strict-fptoint-256.ll
  llvm/test/CodeGen/X86/vector-constrained-fp-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71864.235248.patch
Type: text/x-patch
Size: 8427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191225/27a2d0cb/attachment.bin>


More information about the llvm-commits mailing list