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 @@ -246,18 +246,17 @@ void TargetLoweringBase::InitLibcalls(const Triple &TT) {
246
246
}
247
247
break ;
248
248
case Triple::IOS:
249
- case Triple::TvOS:
250
- case Triple::WatchOS:
251
- case Triple::XROS:
252
- if (!TT.isWatchOS () &&
253
- (TT.isOSVersionLT (7 , 0 ) || (TT.isOSVersionLT (9 , 0 ) && TT.isX86 ()))) {
249
+ if (TT.isOSVersionLT (7 , 0 )) {
254
250
setLibcallName (RTLIB::EXP10_F32, nullptr );
255
251
setLibcallName (RTLIB::EXP10_F64, nullptr );
256
- } else {
257
- setLibcallName (RTLIB::EXP10_F32, " __exp10f" );
258
- setLibcallName (RTLIB::EXP10_F64, " __exp10" );
252
+ break ;
259
253
}
260
-
254
+ [[fallthrough]];
255
+ case Triple::TvOS:
256
+ case Triple::WatchOS:
257
+ case Triple::XROS:
258
+ setLibcallName (RTLIB::EXP10_F32, " __exp10f" );
259
+ setLibcallName (RTLIB::EXP10_F64, " __exp10" );
261
260
break ;
262
261
default :
263
262
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