@@ -1037,14 +1037,18 @@ defvar AllDefaultRuntimeLibcallImpls
1037
1037
// Exist in libgcc and compiler-rt for 64-bit targets, or if
1038
1038
// COMPILER_RT_ENABLE_SOFTWARE_INT128.
1039
1039
defvar Int128RTLibcalls = [
1040
- __ashlti3, __lshrti3, __ashrti3, __multi3, __mulodi4
1040
+ __ashlti3, __lshrti3, __ashrti3, __multi3
1041
1041
];
1042
1042
1043
1043
// Only available in compiler-rt
1044
1044
defvar CompilerRTOnlyInt64Libcalls = [
1045
1045
__mulodi4
1046
1046
];
1047
1047
1048
+ defvar CompilerRTOnlyInt128Libcalls = [
1049
+ __muloti4
1050
+ ];
1051
+
1048
1052
defvar DefaultRuntimeLibcallImpls_f80 =
1049
1053
!filter(entry, AllDefaultRuntimeLibcallImpls,
1050
1054
!match(!cast<string>(entry.Provides), "F80"));
@@ -1062,7 +1066,8 @@ defvar DefaultRuntimeLibcallImpls =
1062
1066
!listremove(
1063
1067
!listremove(
1064
1068
!listremove(AllDefaultRuntimeLibcallImpls, Int128RTLibcalls),
1065
- CompilerRTOnlyInt64Libcalls),
1069
+ !listconcat(CompilerRTOnlyInt64Libcalls,
1070
+ CompilerRTOnlyInt128Libcalls)),
1066
1071
DefaultRuntimeLibcallImpls_f80),
1067
1072
DefaultRuntimeLibcallImpls_ppcf128);
1068
1073
@@ -2152,5 +2157,5 @@ def isWasm : RuntimeLibcallPredicate<"TT.isWasm()">;
2152
2157
def WasmSystemLibrary
2153
2158
: SystemRuntimeLibrary<isWasm,
2154
2159
(add DefaultRuntimeLibcallImpls, Int128RTLibcalls,
2155
- CompilerRTOnlyInt64Libcalls, __muloti4 ,
2160
+ CompilerRTOnlyInt64Libcalls, CompilerRTOnlyInt128Libcalls ,
2156
2161
emscripten_return_address)>;
0 commit comments