[X86] Reverse the operand order of the implementation of the kunpack builtins.
authorCraig Topper <craig.topper@intel.com>
Mon, 12 Feb 2018 22:38:52 +0000 (22:38 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 12 Feb 2018 22:38:52 +0000 (22:38 +0000)
commitebb0838f74f694a62957646463b6a650903adb97
treefde4ccd7b1f18d9ac51a6bc2c717c7fd1c5bce4b
parent8d19c6fba2fa1d7d0ee3ae999e9f5c3a93f8c067
[X86] Reverse the operand order of the implementation of the kunpack builtins.

The second operand needs to be in the lower bits of the concatenation. This matches llvm 5.0, gcc, and icc behavior.

Fixes PR36360.

llvm-svn: 324954
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/avx512bw-builtins.c
clang/test/CodeGen/avx512f-builtins.c