File tree Expand file tree Collapse file tree 6 files changed +13
-2
lines changed
include/llvm/TargetParser Expand file tree Collapse file tree 6 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -979,9 +979,11 @@ class Triple {
979
979
}
980
980
981
981
// / Tests whether the target uses emulated TLS as default.
982
+ // /
983
+ // / Note: Android API level 29 (10) introduced ELF TLS.
982
984
bool hasDefaultEmulatedTLS () const {
983
- return isAndroid () || isOSOpenBSD () || isWindowsCygwinEnvironment () ||
984
- isOHOSFamily ();
985
+ return ( isAndroid () && isAndroidVersionLT ( 29 )) || isOSOpenBSD () ||
986
+ isWindowsCygwinEnvironment () || isOHOSFamily ();
985
987
}
986
988
987
989
// / Tests whether the target uses -data-sections as default.
Original file line number Diff line number Diff line change 18
18
; aarch64-windows-gnu needs explicit -emulated-tls
19
19
; RUN: llc < %s -mtriple=aarch64-apple-darwin -O3 \
20
20
; RUN: | FileCheck -check-prefix=NoEMU %s
21
+ ; RUN: llc < %s -mtriple=aarch64-linux-android29 -O3 \
22
+ ; RUN: | FileCheck -check-prefix=NoEMU %s
21
23
22
24
; NoEMU-NOT: __emutls
23
25
Original file line number Diff line number Diff line change 5
5
6
6
; RUN: llc < %s -mtriple=i386-linux-gnu -relocation-model=pic | FileCheck -check-prefix=NoEMU %s
7
7
; RUN: llc < %s -mtriple=x86_64-linux-gnu -relocation-model=pic | FileCheck -check-prefix=NoEMU %s
8
+ ; RUN: llc < %s -mtriple=x86_64-linux-android29 -relocation-model=pic | FileCheck -check-prefix=NoEMU %s
8
9
; RUN: llc < %s -mtriple=i386-linux-android -relocation-model=pic | FileCheck -check-prefix=X86 %s
9
10
; RUN: llc < %s -mtriple=x86_64-linux-android -relocation-model=pic | FileCheck -check-prefix=X64 %s
10
11
; RUN: llc < %s -mtriple=i386-linux-ohos -relocation-model=pic | FileCheck -check-prefix=X86 %s
Original file line number Diff line number Diff line change 11
11
; RUN: | FileCheck -check-prefix=NoEMU %s
12
12
; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux-gnu -relocation-model=pic \
13
13
; RUN: | FileCheck -check-prefix=NoEMU %s
14
+ ; RUN: llc < %s -mcpu=generic -mtriple=i386-linux-android29 -relocation-model=pic \
15
+ ; RUN: | FileCheck -check-prefix=NoEMU %s
14
16
; RUN: llc < %s -mcpu=generic -mtriple=i386-linux-android -relocation-model=pic \
15
17
; RUN: | FileCheck -check-prefix=X86 %s
16
18
; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux-android -relocation-model=pic \
Original file line number Diff line number Diff line change 15
15
; RUN: | FileCheck -check-prefix=X86_64 %s
16
16
; RUN: llc < %s -mtriple=i386-linux-gnu -relocation-model=pic \
17
17
; RUN: | FileCheck -check-prefix=NoEMU %s
18
+ ; RUN: llc < %s -mtriple=i686-linux-android29 -relocation-model=pic \
19
+ ; RUN: | FileCheck -check-prefix=NoEMU %s
18
20
19
21
; NoEMU-NOT: __emutls
20
22
Original file line number Diff line number Diff line change 1
1
; RUN: llc < %s -emulated-tls -relocation-model=pic -mtriple=i686-unknown-linux-gnu -fast-isel | FileCheck %s
2
2
; RUN: llc < %s -relocation-model=pic -mtriple=i686-unknown-linux-gnu -fast-isel \
3
3
; RUN: | FileCheck -check-prefix=NoEMU %s
4
+ ; RUN: llc < %s -relocation-model=pic -mtriple=i686-linux-android29 -fast-isel \
5
+ ; RUN: | FileCheck -check-prefix=NoEMU %s
4
6
; PR3654
5
7
6
8
; NoEMU-NOT: __emutls
You can’t perform that action at this time.
0 commit comments