[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)
commitaf5ee86bc92928c43c339ae1418274b124f04198
treed80573c8ac4baf7b5ed0e1322ced331541975e3e
parentc26cd684221246dc09f0d72b5f1b0d974e8f64e9
[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.

llvm-svn: 281868
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86IntrinsicsInfo.h