test: Fix ARM assembly tests compiled on target

This commit is contained in:
Antoine SOULIER
2022-07-29 15:37:39 +02:00
parent 2332274508
commit 7177a593e6
5 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
*
******************************************************************************/
#if __ARM_FEATURE_SIMD32
#if __ARM_FEATURE_SIMD32 || defined(TEST_ARM)
#ifndef TEST_ARM
+2 -1
View File
@@ -16,7 +16,8 @@
*
******************************************************************************/
#if __ARM_NEON && __ARM_ARCH_ISA_A64
#if __ARM_NEON && __ARM_ARCH_ISA_A64 && \
!defined(TEST_ARM) || defined(TEST_NEON)
#ifndef TEST_NEON
#include <arm_neon.h>
+2 -1
View File
@@ -16,7 +16,8 @@
*
******************************************************************************/
#if __ARM_NEON && __ARM_ARCH_ISA_A64
#if __ARM_NEON && __ARM_ARCH_ISA_A64 && \
!defined(TEST_ARM) || defined(TEST_NEON)
#ifndef TEST_NEON
#include <arm_neon.h>
+7 -1
View File
@@ -20,8 +20,14 @@
#include <arm_acle.h>
static inline int16x2_t __pkhbt(int16x2_t a, int16x2_t b)
{
int16x2_t r;
__asm("pkhbt %0, %1, %2" : "=r" (r) : "r" (a), "r" (b));
return r;
}
#else
#define __ARM_FEATURE_SIMD32 1
#include <stdint.h>
+1 -3
View File
@@ -16,13 +16,11 @@
*
******************************************************************************/
#if __ARM_NEON
#if __ARM_NEON && __ARM_ARCH_ISA_A64
#include <arm_neon.h>
#else
#define __ARM_NEON 1
#define __ARM_ARCH_ISA_A64 1
#include <stdint.h>