diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-01-25 06:43:11 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-01-25 06:43:11 +0000 |
commit | 969ba287cd2be9b2d6843db6fa5337585f84283b (patch) | |
tree | 088b54dd2a5177ba12d35675cb1c2952cd3a69fb /lib/Target/X86/X86ISelLowering.cpp | |
parent | 3d5ed2250e78c3e849232398cb550238155dbb72 (diff) | |
download | external_llvm-969ba287cd2be9b2d6843db6fa5337585f84283b.zip external_llvm-969ba287cd2be9b2d6843db6fa5337585f84283b.tar.gz external_llvm-969ba287cd2be9b2d6843db6fa5337585f84283b.tar.bz2 |
Custom lower PSIGN and PSHUFB intrinsics to their corresponding target specific nodes so we can remove the isel patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 77d0e12..74b02ad 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -9342,6 +9342,18 @@ X86TargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op, SelectionDAG &DAG) const case Intrinsic::x86_avx2_pcmpgt_q: return DAG.getNode(X86ISD::PCMPGT, dl, Op.getValueType(), Op.getOperand(1), Op.getOperand(2)); + case Intrinsic::x86_ssse3_pshuf_b_128: + case Intrinsic::x86_avx2_pshuf_b: + return DAG.getNode(X86ISD::PSHUFB, dl, Op.getValueType(), + Op.getOperand(1), Op.getOperand(2)); + case Intrinsic::x86_ssse3_psign_b_128: + case Intrinsic::x86_ssse3_psign_w_128: + case Intrinsic::x86_ssse3_psign_d_128: + case Intrinsic::x86_avx2_psign_b: + case Intrinsic::x86_avx2_psign_w: + case Intrinsic::x86_avx2_psign_d: + return DAG.getNode(X86ISD::PSIGN, dl, Op.getValueType(), + Op.getOperand(1), Op.getOperand(2)); // ptest and testp intrinsics. The intrinsic these come from are designed to // return an integer value, not just an instruction so lower it to the ptest |