diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-02-03 23:57:48 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-02-03 23:57:48 +0000 |
commit | f42f85ce6c2c1ddbe57535898dfbe3a37f7199af (patch) | |
tree | 780150c0bd56eaddcb556d8b6295284d990dd895 /lib/Headers | |
parent | 798d14fd2d7b73957afa083972d97cc216a7b056 (diff) |
Make _mm_cmpgt_epi8 immute to -funsigned-char.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Headers')
-rw-r--r-- | lib/Headers/emmintrin.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Headers/emmintrin.h b/lib/Headers/emmintrin.h index 2118186f76..3453b4ae25 100644 --- a/lib/Headers/emmintrin.h +++ b/lib/Headers/emmintrin.h @@ -947,7 +947,8 @@ _mm_cmpeq_epi32(__m128i a, __m128i b) static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) _mm_cmpgt_epi8(__m128i a, __m128i b) { - return (__m128i)((__v16qi)a > (__v16qi)b); + typedef signed char __v16qs __attribute__((__vector_size__(16))); + return (__m128i)((__v16qs)a > (__v16qs)b); } static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) |