[PATCH] D47993: [x86] fix mappings of cvttp2si x86 intrinsics to x86-specific nodes and isel patterns (PR37551)

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 12 15:14:14 PDT 2018


craig.topper updated this revision to Diff 151045.
craig.topper added a comment.

-Use X86cvttp2si and X86cvttp2usi in the instruction patterns. Add fp_to_sint/fp_to_uint as Pat patterns.
-Add NoVLX to the new patterns, this means we go back to duplicating the operation when we have masked and unmasked version in the same block. But that's a general problem and not something we should tackle here.
-Updated for new test file that tests all the avx512 specific intrinsics that are subject to the same bug.


https://reviews.llvm.org/D47993

Files:
  lib/Target/X86/X86InstrAVX512.td
  lib/Target/X86/X86InstrSSE.td
  lib/Target/X86/X86IntrinsicsInfo.h
  test/CodeGen/X86/avx-cvttp2si.ll
  test/CodeGen/X86/avx512-cvttp2i.ll
  test/CodeGen/X86/mmx-cvt.ll
  test/CodeGen/X86/sse-cvttp2si.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47993.151045.patch
Type: text/x-patch
Size: 40307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180612/9408a98e/attachment.bin>


More information about the llvm-commits mailing list