xref: /aosp_15_r20/external/executorch/kernels/optimized/vec/vec256/missing_vst1_neon.h (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 /* Workaround for missing vst1q_f32_x2 in gcc-8.  */
10 
11 __extension__ extern __inline void
12 __attribute__ ((__always_inline__, __gnu_inline__, __artificial__))
vst1q_f32_x2(float32_t * __a,float32x4x2_t val)13 vst1q_f32_x2 (float32_t * __a, float32x4x2_t val)
14 {
15   asm volatile("st1 {%S1.4s - %T1.4s}, %0" : "=Q" (*__a) : "w" (val));
16 }
17