diff options
author | Reid Kleckner <rnk@google.com> | 2019-05-02 22:11:55 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-05-02 22:11:55 +0000 |
commit | 812af4fe74be9ff410d919ffe183e85842b41ab0 (patch) | |
tree | bbce2516f473a5ec2496adfe08c322c4fd8540ef /lib/builtins/comparesf2.c | |
parent | 145ecb53e9feb5ad2296843d5cc5a0edcd0e9fbd (diff) | |
download | compiler-rt-812af4fe74be9ff410d919ffe183e85842b41ab0.tar.gz |
Fix check-builtins on Windows after alias changes
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/comparesf2.c')
-rw-r--r-- | lib/builtins/comparesf2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/builtins/comparesf2.c b/lib/builtins/comparesf2.c index c00f0de02..edf40d6d1 100644 --- a/lib/builtins/comparesf2.c +++ b/lib/builtins/comparesf2.c @@ -140,3 +140,11 @@ AEABI_RTABI int __aeabi_fcmpun(fp_t a, fp_t b) { return __unordsf2(a, b); } COMPILER_RT_ALIAS(__unordsf2, __aeabi_fcmpun) #endif #endif + +#if defined(_WIN32) +// The alias mechanism doesn't work on Windows, so emit wrapper functions. +int __eqsf2(fp_t a, fp_t b) { return __lesf2(a, b); } +int __ltsf2(fp_t a, fp_t b) { return __lesf2(a, b); } +int __nesf2(fp_t a, fp_t b) { return __lesf2(a, b); } +int __gtsf2(fp_t a, fp_t b) { return __gesf2(a, b); } +#endif |