File tree 4 files changed +17
-17
lines changed
4 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -240,18 +240,17 @@ void TargetLoweringBase::InitLibcalls(const Triple &TT) {
240
240
}
241
241
break ;
242
242
case Triple::IOS:
243
- case Triple::TvOS:
244
- case Triple::WatchOS:
245
- case Triple::XROS:
246
- if (!TT.isWatchOS () &&
247
- (TT.isOSVersionLT (7 , 0 ) || (TT.isOSVersionLT (9 , 0 ) && TT.isX86 ()))) {
243
+ if (TT.isOSVersionLT (7 , 0 )) {
248
244
setLibcallName (RTLIB::EXP10_F32, nullptr );
249
245
setLibcallName (RTLIB::EXP10_F64, nullptr );
250
- } else {
251
- setLibcallName (RTLIB::EXP10_F32, " __exp10f" );
252
- setLibcallName (RTLIB::EXP10_F64, " __exp10" );
246
+ break ;
253
247
}
254
-
248
+ [[fallthrough]];
249
+ case Triple::TvOS:
250
+ case Triple::WatchOS:
251
+ case Triple::XROS:
252
+ setLibcallName (RTLIB::EXP10_F32, " __exp10f" );
253
+ setLibcallName (RTLIB::EXP10_F64, " __exp10" );
255
254
break ;
256
255
default :
257
256
break ;
Original file line number Diff line number Diff line change 4
4
; RUN: llc -mtriple=aarch64-apple-tvos7.0 < %s | FileCheck -check-prefix=APPLE %s
5
5
; RUN: llc -mtriple=aarch64-apple-watchos7.0 < %s | FileCheck -check-prefix=APPLE %s
6
6
; RUN: llc -mtriple=aarch64-apple-xros7.0 < %s | FileCheck -check-prefix=APPLE %s
7
+ ; RUN: llc -mtriple=aarch64-apple-tvos6.0 < %s | FileCheck -check-prefix=APPLE %s
8
+ ; RUN: llc -mtriple=aarch64-apple-xros6.0 < %s | FileCheck -check-prefix=APPLE %s
9
+ ; RUN: llc -mtriple=aarch64-apple-xros1.0 < %s | FileCheck -check-prefix=APPLE %s
7
10
8
11
; RUN: not llc -mtriple=aarch64-apple-macos10.8 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
9
12
; RUN: not llc -mtriple=aarch64-apple-ios6.0 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
10
- ; RUN: not llc -mtriple=aarch64-apple-tvos6.0 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
11
- ; RUN: not llc -mtriple=aarch64-apple-xros6.0 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
12
13
13
14
; Check exp10/exp10f is emitted as __exp10/__exp10f on assorted systems.
14
15
Original file line number Diff line number Diff line change 4
4
; RUN: llc -mtriple=armv7-apple-tvos7.0 < %s | FileCheck -check-prefix=APPLE %s
5
5
; RUN: llc -mtriple=armv7-apple-watchos7.0 < %s | FileCheck -check-prefix=APPLE %s
6
6
; RUN: llc -mtriple=armv7-apple-xros7.0 < %s | FileCheck -check-prefix=APPLE %s
7
+ ; RUN: llc -mtriple=armv7-apple-tvos6.0 < %s | FileCheck -check-prefix=APPLE %s
8
+ ; RUN: llc -mtriple=armv7-apple-xros6.0 < %s | FileCheck -check-prefix=APPLE %s
9
+
7
10
8
11
; RUN: not llc -mtriple=armv7-apple-macos10.8 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
9
12
; RUN: not llc -mtriple=armv7-apple-ios6.0 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
10
- ; RUN: not llc -mtriple=armv7-apple-tvos6.0 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
11
- ; RUN: not llc -mtriple=armv7-apple-xros6.0 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
12
13
13
14
; Check exp10/exp10f is emitted as __exp10/__exp10f on assorted systems.
14
15
Original file line number Diff line number Diff line change 5
5
; RUN: llc -mtriple=x86_64-apple-tvos9.0 < %s | FileCheck -check-prefix=APPLE %s
6
6
; RUN: llc -mtriple=x86_64-apple-watchos9.0 < %s | FileCheck -check-prefix=APPLE %s
7
7
; RUN: llc -mtriple=x86_64-apple-xros9.0 < %s | FileCheck -check-prefix=APPLE %s
8
+ ; RUN: llc -mtriple=x86_64-apple-ios8.0 < %s | FileCheck -check-prefix=APPLE %s
9
+ ; RUN: llc -mtriple=x86_64-apple-tvos8.0 < %s | FileCheck -check-prefix=APPLE %s
10
+ ; RUN: llc -mtriple=x86_64-apple-xros8.0 < %s | FileCheck -check-prefix=APPLE %s
8
11
9
12
; RUN: not llc -mtriple=x86_64-apple-macos10.8 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
10
- ; RUN: not llc -mtriple=x86_64-apple-ios8.0 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
11
- ; RUN: not llc -mtriple=x86_64-apple-tvos8.0 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
12
- ; RUN: not llc -mtriple=x86_64-apple-xros8.0 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
13
-
14
13
; Check exp10/exp10f is emitted as __exp10/__exp10f on assorted systems.
15
14
16
15
; ERR: no libcall available for fexp10
You can’t perform that action at this time.
0 commit comments