[PATCH] D15787: [X86][AVX512] Lower broadcast inrtrinsics
Asaf Badouh via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 27 03:24:37 PST 2015
AsafBadouh created this revision.
AsafBadouh added reviewers: delena, igorb, m_zuckerman.
AsafBadouh added a subscriber: llvm-commits.
AsafBadouh set the repository for this revision to rL LLVM.
lower broadcast<type>x<vector> to shuffles.
there are two cases:
1. src is 128 bits and dest is 512 bits:
in this case we will lower it to shuffle with imm = 0.
2. src is 256 bit and dest is 512 bits:
in this case we will lower it to shuffle with imm = 01000100b (0x44)
that way we will broadcast the 256bit source:
ymm[0,1,2,3] => zmm[0,1,2,3,0,1,2,3]
then it will mask it with the pass thru value (in case it's mask op).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 20261 bytes
Desc: not available
More information about the llvm-commits