Skip to content

Commit 0db6478

Browse files
martinjaegerfabiobaltieri
authored andcommitted
cmsis-dsp: restrict f16 support to targets with f16 arithmetic
CMSIS-DSP f16 sources use _Float16 arithmetic, which requires MVE float on Cortex-M processors. So far, CONFIG_CMSIS_DSP_FLOAT16 only depended on CONFIG_FP16, which controls the storage format and is enabled on all ARM targets. This caused build failures on Cortex-M55 without MVE when -mfpu=fpv5-sp-d16 is used. Making CONFIG_CMSIS_DSP_FLOAT16 depend on the newly introduced CONFIG_FP16_ARITHMETIC ensures that the hardware instructions for arithmetic operations used by the DSP library are present. Signed-off-by: Martin Jäger <martin.jaeger@a-labs.io>
1 parent 6590696 commit 0db6478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cmsis-dsp/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ config CMSIS_DSP_AUTOVECTORIZE
308308
config CMSIS_DSP_FLOAT16
309309
bool "Half-Precision (16-bit Float) Support"
310310
default y
311-
depends on FP16
311+
depends on FP16_ARITHMETIC
312312
help
313313
This option enables the half-precision (16-bit) floating-point
314314
operations support.

0 commit comments

Comments
 (0)