OSDN Git Service

[AVX-512] Don't lower CVTPD2PS intrinsics to ISD::FP_ROUND with an X86 rounding mode...
authorCraig Topper <craig.topper@gmail.com>
Sun, 18 Sep 2016 21:49:32 +0000 (21:49 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 18 Sep 2016 21:49:32 +0000 (21:49 +0000)
commit1b68ca9a47b346c7248d6b662d70bbaf058730d0
treef1f380b465938d7e0276eab2b700ab79901a2440
parentae55aa08fea4b915728c0da746b3466c115a127a
[AVX-512] Don't lower CVTPD2PS intrinsics to ISD::FP_ROUND with an X86 rounding mode encoding in the second operand. This immediate should only be 0 or 1 and indicates if the truncation loses precision.

Also enhance an assert in SelectionDAG::getNode to flag this sort of problem in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281868 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86IntrinsicsInfo.h