LLVM doesn't support SSE + 387 math. As such if SSE is enabled we have to utilize SSE floating point. To utilize 387 math, SSE has to be disabled. Update the floating point related tests to introduce 387 only variants that will build on both GCC & LLVM based tools. Than we exclude llvm based (llvm, oneApi) toolchains from the CONFIG_X86_SSE_FP_MATH=n and CONFIG_X86_SSE=y test variants. Signed-off-by: Kumar Gala <kumar.gala@intel.com>
22 lines
437 B
C
22 lines
437 B
C
/*
|
|
* Copyright (c) 2011-2014 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#define MAX_TESTS 500
|
|
|
|
/*
|
|
* Test Thread Parameters
|
|
*/
|
|
#define THREAD_STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE)
|
|
|
|
#define THREAD_HIGH_PRIORITY 5
|
|
#define THREAD_LOW_PRIORITY 10
|
|
|
|
#if defined(CONFIG_X86) && defined(CONFIG_X86_SSE)
|
|
#define THREAD_FP_FLAGS (K_FP_REGS | K_SSE_REGS)
|
|
#else
|
|
#define THREAD_FP_FLAGS (K_FP_REGS)
|
|
#endif
|