ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ammintrin.h
Go to the documentation of this file.
1/*===---- ammintrin.h - SSE4a intrinsics -----------------------------------===
2 *
3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 * See https://llvm.org/LICENSE.txt for license information.
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 *
7 *===-----------------------------------------------------------------------===
8 */
9
10#ifndef __AMMINTRIN_H
11#define __AMMINTRIN_H
12
13#include <pmmintrin.h>
14
15/* Define the default attributes for the functions in this file. */
16#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("sse4a"), __min_vector_width__(128)))
17
42#define _mm_extracti_si64(x, len, idx) \
43 ((__m128i)__builtin_ia32_extrqi((__v2di)(__m128i)(x), \
44 (char)(len), (char)(idx)))
45
65static __inline__ __m128i __DEFAULT_FN_ATTRS
66_mm_extract_si64(__m128i __x, __m128i __y)
67{
68 return (__m128i)__builtin_ia32_extrq((__v2di)__x, (__v16qi)__y);
69}
70
104#define _mm_inserti_si64(x, y, len, idx) \
105 ((__m128i)__builtin_ia32_insertqi((__v2di)(__m128i)(x), \
106 (__v2di)(__m128i)(y), \
107 (char)(len), (char)(idx)))
108
135static __inline__ __m128i __DEFAULT_FN_ATTRS
136_mm_insert_si64(__m128i __x, __m128i __y)
137{
138 return (__m128i)__builtin_ia32_insertq((__v2di)__x, (__v2di)__y);
139}
140
153static __inline__ void __DEFAULT_FN_ATTRS
154_mm_stream_sd(double *__p, __m128d __a)
155{
156 __builtin_ia32_movntsd(__p, (__v2df)__a);
157}
158
171static __inline__ void __DEFAULT_FN_ATTRS
172_mm_stream_ss(float *__p, __m128 __a)
173{
174 __builtin_ia32_movntss(__p, (__v4sf)__a);
175}
176
177#undef __DEFAULT_FN_ATTRS
178
179#endif /* __AMMINTRIN_H */
static __inline unsigned char unsigned int __x
Definition adxintrin.h:22
static __inline unsigned char unsigned int unsigned int __y
Definition adxintrin.h:22
static __inline unsigned char unsigned int unsigned int unsigned int * __p
Definition adxintrin.h:24
static __inline__ __m128i __DEFAULT_FN_ATTRS _mm_insert_si64(__m128i __x, __m128i __y)
Inserts bits of a specified length from the source integer vector __y into the lower 64 bits of the d...
Definition ammintrin.h:136
#define __DEFAULT_FN_ATTRS
Definition ammintrin.h:16
static __inline__ __m128i __DEFAULT_FN_ATTRS _mm_extract_si64(__m128i __x, __m128i __y)
Extracts the specified bits from the lower 64 bits of the 128-bit integer vector operand at the index...
Definition ammintrin.h:66
static __inline__ void __DEFAULT_FN_ATTRS _mm_stream_sd(double *__p, __m128d __a)
Stores a 64-bit double-precision value in a 64-bit memory location.
Definition ammintrin.h:154
static __inline__ void __DEFAULT_FN_ATTRS _mm_stream_ss(float *__p, __m128 __a)
Stores a 32-bit single-precision floating-point value in a 32-bit memory location.
Definition ammintrin.h:172
static __inline__ void int __a
Definition emmintrin.h:4185