[PATCH] D14897: Fix several issues related to X86's psadbw instruction.
Cong Hou via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 20 17:20:23 PST 2015
congh created this revision.
congh added reviewers: RKSimon, ashahid, hfinkel, davidxl.
congh added a subscriber: llvm-commits.
This patch fixes the following issues:
1. Fix the return type of X86psadbw: it should not be the same type of inputs. For vNi8 inputs the output should be vMi64, where M = N/8.
2. Fix the return type of int_x86_avx512_psad_bw_512 accordingly.
3. Fix the definiton of PSADBW, VPSADBW, and VPSADBWY accordingly.
4. Adjust the return type when building a DAG node of X86ISD::PSADBW type.
5. Update related tests.
http://reviews.llvm.org/D14897
Files:
include/llvm/IR/IntrinsicsX86.td
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrAVX512.td
lib/Target/X86/X86InstrFragmentsSIMD.td
lib/Target/X86/X86InstrSSE.td
lib/Target/X86/X86IntrinsicsInfo.h
test/CodeGen/X86/avx512bw-intrinsics.ll
test/CodeGen/X86/vector-popcnt-128.ll
test/CodeGen/X86/vector-popcnt-256.ll
test/CodeGen/X86/vector-tzcnt-128.ll
test/CodeGen/X86/vector-tzcnt-256.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14897.40851.patch
Type: text/x-patch
Size: 22024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151121/1aa242d6/attachment.bin>
More information about the llvm-commits
mailing list