predicates.md (cint34_operand): Update SIGNED_34BIT_OFFSET_P call.
[official-gcc.git] / gcc / config / rs6000 / smmintrin.h
blob914dade70d0274b18aeaca31681b4391a55c1a57
1 /* Copyright (C) 2018-2019 Free Software Foundation, Inc.
3 This file is part of GCC.
5 GCC is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3, or (at your option)
8 any later version.
10 GCC is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 Under Section 7 of GPL version 3, you are granted additional
16 permissions described in the GCC Runtime Library Exception, version
17 3.1, as published by the Free Software Foundation.
19 You should have received a copy of the GNU General Public License and
20 a copy of the GCC Runtime Library Exception along with this program;
21 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
22 <http://www.gnu.org/licenses/>. */
24 /* Implemented from the specification included in the Intel C++ Compiler
25 User Guide and Reference, version 9.0.
27 NOTE: This is NOT a complete implementation of the SSE4 intrinsics! */
29 #ifndef NO_WARN_X86_INTRINSICS
30 /* This header is distributed to simplify porting x86_64 code that
31 makes explicit use of Intel intrinsics to powerpc64le.
32 It is the user's responsibility to determine if the results are
33 acceptable and make additional changes as necessary.
34 Note that much code that uses Intel intrinsics can be rewritten in
35 standard C or GNU C extensions, which are more portable and better
36 optimized across multiple targets. */
37 #endif
39 #ifndef SMMINTRIN_H_
40 #define SMMINTRIN_H_
42 #include <altivec.h>
43 #include <tmmintrin.h>
45 extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__))
46 _mm_extract_epi8 (__m128i __X, const int __N)
48 return (unsigned char) ((__v16qi)__X)[__N & 15];
51 extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__))
52 _mm_extract_epi32 (__m128i __X, const int __N)
54 return ((__v4si)__X)[__N & 3];
57 extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__))
58 _mm_extract_epi64 (__m128i __X, const int __N)
60 return ((__v2di)__X)[__N & 1];
63 extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__))
64 _mm_extract_ps (__m128 __X, const int __N)
66 return ((__v4si)__X)[__N & 3];
69 #endif