diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-05-14 01:47:32 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-05-14 01:47:32 +0000 |
commit | 7baff7a311616f831b01555c7d6e69a8ce5048a2 (patch) | |
tree | 4d2783a0aad617ae66547b59fedb1a3a6a67a1c0 /make | |
parent | 3b4704f0437a68d615e088cbbef62ed7f6366742 (diff) |
[Builtins] Wire half-precision conversions through Darwin makefiles.
Follow-up to r237161, modeled after r236805.
Note that arm64 is omitted on purpose, as the conversions are supported
natively there.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@237329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make')
-rw-r--r-- | make/platform/clang_darwin.mk | 9 | ||||
-rw-r--r-- | make/platform/clang_macho_embedded.mk | 3 | ||||
-rw-r--r-- | make/platform/darwin_bni.mk | 3 |
3 files changed, 12 insertions, 3 deletions
diff --git a/make/platform/clang_darwin.mk b/make/platform/clang_darwin.mk index 9295edea5..e66d44148 100644 --- a/make/platform/clang_darwin.mk +++ b/make/platform/clang_darwin.mk @@ -263,18 +263,23 @@ ATOMIC_FUNCTIONS := \ atomic_signal_fence \ atomic_thread_fence +FP16_FUNCTIONS := \ + extendhfsf2 \ + truncdfhf2 \ + truncsfhf2 + FUNCTIONS.eprintf := eprintf FUNCTIONS.10.4 := eprintf floatundidf floatundisf floatundixf FUNCTIONS.ios := divmodsi4 udivmodsi4 mulosi4 mulodi4 muloti4 \ - $(ATOMIC_FUNCTIONS) + $(ATOMIC_FUNCTIONS) $(FP16_FUNCTIONS) # On x86, the divmod functions reference divsi. FUNCTIONS.ios.i386 := $(FUNCTIONS.ios) \ divsi3 udivsi3 FUNCTIONS.ios.x86_64 := $(FUNCTIONS.ios.i386) FUNCTIONS.ios.arm64 := mulsc3 muldc3 divsc3 divdc3 $(ATOMIC_FUNCTIONS) -FUNCTIONS.osx := mulosi4 mulodi4 muloti4 $(ATOMIC_FUNCTIONS) +FUNCTIONS.osx := mulosi4 mulodi4 muloti4 $(ATOMIC_FUNCTIONS) $(FP16_FUNCTIONS) FUNCTIONS.profile_osx := GCDAProfiling InstrProfiling InstrProfilingBuffer \ InstrProfilingFile InstrProfilingPlatformDarwin \ diff --git a/make/platform/clang_macho_embedded.mk b/make/platform/clang_macho_embedded.mk index 77885d574..d7870d491 100644 --- a/make/platform/clang_macho_embedded.mk +++ b/make/platform/clang_macho_embedded.mk @@ -156,6 +156,7 @@ COMMON_FUNCTIONS := \ divsf3 \ divsi3 \ extendsfdf2 \ + extendhfsf2 \ ffssi2 \ fixdfsi \ fixsfsi \ @@ -172,7 +173,9 @@ COMMON_FUNCTIONS := \ negsf2 \ subdf3 \ subsf3 \ + truncdfhf2 \ truncdfsf2 \ + truncsfhf2 \ udivsi3 \ umodsi3 \ unorddf2 \ diff --git a/make/platform/darwin_bni.mk b/make/platform/darwin_bni.mk index b4c57d4cc..d78f295da 100644 --- a/make/platform/darwin_bni.mk +++ b/make/platform/darwin_bni.mk @@ -50,7 +50,8 @@ FUNCTIONS := absvdi2 absvsi2 addvdi3 addvsi3 ashldi3 ashrdi3 \ udivmoddi4 umoddi3 apple_versioning eprintf atomic \ atomic_flag_clear atomic_flag_clear_explicit \ atomic_flag_test_and_set atomic_flag_test_and_set_explicit \ - atomic_signal_fence atomic_thread_fence + atomic_signal_fence atomic_thread_fence \ + extendhfsf2 truncdfhf2 truncsfhf2 FUNCTIONS.i386 := $(FUNCTIONS) \ divxc3 fixunsxfdi fixunsxfsi fixxfdi floatdixf \ |