Hi @ll, the two attached patches fix the name of the function and the type of the argument for the AVX2 intrinsic _mm256_broadcastsi128_si256 to align it with the Intel documentation (and GCC).
Clang now expects the argument to be passed by value, creates the necessary store to the stack, and calls the LLVM intrinsic with the address of this stack location as argument. For LLVM the mapping between the LLVM int_x86_avx2_vbroadcasti128 and the GCC __builtin_ia32_vbroadcastsi256 intrinsic was removed, because the arguments have different types. This fixes bug PR 16581 and rdar://14747994 Cheers, Juergen
clang-avx2.diff
Description: Binary data
llvm-avx.diff
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
