[llvm] [DAG] Fix bug in llvm.get.active.lane.mask lowering
authoraartbik <ajcbik@google.com>
Wed, 26 Aug 2020 00:14:44 +0000 (17:14 -0700)
committeraartbik <ajcbik@google.com>
Wed, 26 Aug 2020 17:16:31 +0000 (10:16 -0700)
commit72305a08ffcb2da10a33732adfaa8757ba70904f
treee1f5a67537d6c8fc20d1929bf2b57a4042d48e1d
parent34b289b6dbcf1cdb328ab0a13cdedf96701394af
[llvm] [DAG] Fix bug in llvm.get.active.lane.mask lowering

This intrinsic only accepted proper machine vector lengths.
Fixed by this change. With unit tests.

https://bugs.llvm.org/show_bug.cgi?id=47299

Reviewed By: SjoerdMeijer

Differential Revision: https://reviews.llvm.org/D86585
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/test/CodeGen/X86/pr47299.ll [new file with mode: 0644]