Skip to content

Commit 327105f

Browse files
martinjaegerfabiobaltieri
authored andcommitted
tests: dsp: basicmath: build f16 tests only if supported in hardware
The tests use f16 arithmetic operations, so it should only be built if CONFIG_CMSIS_DSP_FLOAT16 is enabled. The previously used more generic CONFIG_FP16 only ensures f16 storage support. Signed-off-by: Martin Jäger <martin.jaeger@a-labs.io>
1 parent 0db6478 commit 327105f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/subsys/dsp/basicmath/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ target_sources(app PRIVATE
1111
src/f32.c
1212
)
1313

14-
target_sources_ifdef(CONFIG_FP16 app PRIVATE src/f16.c)
14+
target_sources_ifdef(CONFIG_CMSIS_DSP_FLOAT16 app PRIVATE src/f16.c)
1515

1616
target_include_directories(app PRIVATE ${ZEPHYR_BASE}/tests/lib/cmsis_dsp)
1717

0 commit comments

Comments
 (0)