@@ -459,7 +459,6 @@ def __multi3 : RuntimeLibcallImpl<MUL_I128>;
459
459
460
460
def __mulosi4 : RuntimeLibcallImpl<MULO_I32>;
461
461
def __mulodi4 : RuntimeLibcallImpl<MULO_I64>;
462
- def __muloti4 : RuntimeLibcallImpl<MULO_I128>;
463
462
464
463
def __divqi3 : RuntimeLibcallImpl<SDIV_I8>;
465
464
def __divhi3 : RuntimeLibcallImpl<SDIV_I16>;
@@ -935,6 +934,12 @@ def calloc : RuntimeLibcallImpl<CALLOC>;
935
934
936
935
} // End let IsDefault = true
937
936
937
+ //--------------------------------------------------------------------
938
+ // compiler-rt, not available for most architectures
939
+ //--------------------------------------------------------------------
940
+
941
+ def __muloti4 : RuntimeLibcallImpl<MULO_I128>;
942
+
938
943
//--------------------------------------------------------------------
939
944
// Define implementation other libcalls
940
945
//--------------------------------------------------------------------
@@ -1036,7 +1041,7 @@ defvar Int128RTLibcalls = [
1036
1041
];
1037
1042
1038
1043
// Only available in compiler-rt
1039
- defvar CompilerRTOnlyInt128Libcalls = [
1044
+ defvar CompilerRTOnlyInt64Libcalls = [
1040
1045
__mulodi4
1041
1046
];
1042
1047
@@ -1057,7 +1062,7 @@ defvar DefaultRuntimeLibcallImpls =
1057
1062
!listremove(
1058
1063
!listremove(
1059
1064
!listremove(AllDefaultRuntimeLibcallImpls, Int128RTLibcalls),
1060
- CompilerRTOnlyInt128Libcalls ),
1065
+ CompilerRTOnlyInt64Libcalls ),
1061
1066
DefaultRuntimeLibcallImpls_f80),
1062
1067
DefaultRuntimeLibcallImpls_ppcf128);
1063
1068
@@ -2130,5 +2135,5 @@ def isWasm : RuntimeLibcallPredicate<"TT.isWasm()">;
2130
2135
def WasmSystemLibrary
2131
2136
: SystemRuntimeLibrary<isWasm,
2132
2137
(add DefaultRuntimeLibcallImpls, Int128RTLibcalls,
2133
- CompilerRTOnlyInt128Libcalls ,
2138
+ CompilerRTOnlyInt64Libcalls, __muloti4 ,
2134
2139
emscripten_return_address)>;
0 commit comments