From 8e41833d1f7aae9cbc42ca4c78d932731e61d387 Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Thu, 19 Feb 2015 19:00:33 +0000 Subject: [PATCH] Make the _mm256_insert_epi64 definition more consistent Use long long for the epi64 argument, like the other intrinsics. NFC since this is only defined in 64-bit mode, not in 32-bit. Fix suggested by H. J. Lu! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229886 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Headers/avxintrin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Headers/avxintrin.h b/lib/Headers/avxintrin.h index aaca7e1a11..d7c7f4645c 100644 --- a/lib/Headers/avxintrin.h +++ b/lib/Headers/avxintrin.h @@ -514,7 +514,7 @@ _mm256_insert_epi8(__m256i __a, int __b, int const __imm) #ifdef __x86_64__ static __inline __m256i __attribute__((__always_inline__, __nodebug__)) -_mm256_insert_epi64(__m256i __a, long __b, int const __imm) +_mm256_insert_epi64(__m256i __a, long long __b, int const __imm) { __v4di __c = (__v4di)__a; __c[__imm & 3] = __b; -- 2.40.0