blob: b34af8e7c7224e7e0fe0c5adc4076d4637926e65 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001# GCC supports following options:
2# 'vfp', 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16', 'vfpv3-d16-fp16', 'vfpv3xd', 'vfpv3xd-fp16', 'neon', 'neon-fp16', 'vfpv4', 'vfpv4-d16', 'fpv4-sp-d16', 'neon-vfpv4', 'fpv5-d16', 'fpv5-sp-d16', 'fp-armv8', 'neon-fp-armv8', and 'crypto-neon-fp-armv8'
3
4# Only some combinations are supported here.
5# 'vfp', -mfloat-abi parameter and 'hf' suffix is implemented in feature-arm-vfp.inc
6
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007TUNEVALID[neon] = "Enable Neon SIMD accelerator unit."
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05008TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'neon', ' neon', '', d)}"
9
10TUNEVALID[vfpv3d16] = "Enable Vector Floating Point Version 3 with 16 registers (vfpv3-d16) unit."
Patrick Williamsc0f7c042017-02-23 20:41:17 -060011TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv3d16', ' vfpv3-d16', '', d)}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050012
13TUNEVALID[vfpv3] = "Enable Vector Floating Point Version 3 with 32 registers (vfpv3) unit."
14TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv3', ' vfpv3', '' , d)}"
15
16TUNEVALID[vfpv4] = "Enable Vector Floating Point Version 4 (vfpv4) unit."
17TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv4', ' vfpv4', '', d)}"
18TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', [ 'vfpv4', 'neon' ], ' neon-vfpv4', '', d)}"