diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-02-10 14:51:12 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-02-16 12:03:45 +0000 |
commit | 925a3c65297edc37e394b9837782e79d837d20d1 (patch) | |
tree | 62a10dac9c308b11aac2286ba0d2e66c529f41b5 /configure.json | |
parent | 5486882b5253c858cc545cc3a08f0f89af59578e (diff) |
Use native support for fp16 where available
Use F16C or ARM FP16 if available at compile time.
Configure check added because older clang compilers have F16C defines
and flags but not all the intrinsics.
Change-Id: I71f358b8fd003e70ab8fcf35097414591e485112
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'configure.json')
-rw-r--r-- | configure.json | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.json b/configure.json index f8660e6d7f..276bb095e5 100644 --- a/configure.json +++ b/configure.json @@ -74,6 +74,7 @@ "developer-build": "void", "device": "string", "device-option": "addString", + "f16c": "boolean", "force-asserts": { "type": "boolean", "name": "force_asserts" }, "force-debug-info": { "type": "boolean", "name": "force_debug_info" }, "force-pkg-config": { "type": "void", "name": "pkg-config" }, @@ -316,6 +317,11 @@ "type": "compile", "test": "common/sse4_2" }, + "f16c": { + "label": "F16C instructions", + "type": "compile", + "test": "common/f16c" + }, "avx": { "label": "AVX instructions", "type": "compile", @@ -777,6 +783,14 @@ { "type": "define", "name": "QT_COMPILER_SUPPORTS_AVX", "value": 1 } ] }, + "f16c": { + "label": "F16C", + "condition": "features.avx && tests.f16c", + "output": [ + "privateConfig", + { "type": "define", "name": "QT_COMPILER_SUPPORTS_F16C", "value": 1 } + ] + }, "avx2": { "label": "AVX2", "condition": "features.avx && tests.avx2", @@ -1120,7 +1134,7 @@ Configure with '-qreal float' to create a build that is binary-compatible with 5 { "message": "AVX", "type": "featureList", - "args": "avx avx2", + "args": "avx avx2 f16c", "condition": "(arch.i386 || arch.x86_64)" }, { |