diff options
author | Alex Richardson <alexrichardson@google.com> | 2023-06-26 11:09:34 -0700 |
---|---|---|
committer | Alex Richardson <alexrichardson@google.com> | 2023-07-24 17:19:11 -0700 |
commit | cdc6f4cdcdb5a30840dfbc34a981c9e19adc7996 (patch) | |
tree | b59d755ad84c33c739094f90068cbb4b398370d0 /compiler-rt | |
parent | a09d9b42f16264980138a7bebd89f49b38c36fbd (diff) | |
download | llvm-cdc6f4cdcdb5a30840dfbc34a981c9e19adc7996.zip llvm-cdc6f4cdcdb5a30840dfbc34a981c9e19adc7996.tar.gz llvm-cdc6f4cdcdb5a30840dfbc34a981c9e19adc7996.tar.bz2 |
[builtins] Fix building trunc*fhf2_test with GCC
GCC does not support __fp16, use the TYPE_FP16 macro instead.
Differential Revision: https://reviews.llvm.org/D153813
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/test/builtins/Unit/truncdfhf2_test.c | 2 | ||||
-rw-r--r-- | compiler-rt/test/builtins/Unit/truncsfhf2_test.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/builtins/Unit/truncdfhf2_test.c b/compiler-rt/test/builtins/Unit/truncdfhf2_test.c index 1990ec9..8d854ff 100644 --- a/compiler-rt/test/builtins/Unit/truncdfhf2_test.c +++ b/compiler-rt/test/builtins/Unit/truncdfhf2_test.c @@ -19,7 +19,7 @@ int test__truncdfhf2(double a, uint16_t expected) return ret; } -char assumption_1[sizeof(__fp16) * CHAR_BIT == 16] = {0}; +char assumption_1[sizeof(TYPE_FP16) * CHAR_BIT == 16] = {0}; int main() { diff --git a/compiler-rt/test/builtins/Unit/truncsfhf2_test.c b/compiler-rt/test/builtins/Unit/truncsfhf2_test.c index c7c8063..218f407 100644 --- a/compiler-rt/test/builtins/Unit/truncsfhf2_test.c +++ b/compiler-rt/test/builtins/Unit/truncsfhf2_test.c @@ -19,7 +19,7 @@ int test__truncsfhf2(float a, uint16_t expected) return ret; } -char assumption_1[sizeof(__fp16) * CHAR_BIT == 16] = {0}; +char assumption_1[sizeof(TYPE_FP16) * CHAR_BIT == 16] = {0}; int main() { |