File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ fn main() {
75
75
|| target. arch == "powerpc"
76
76
|| target. arch == "powerpc64"
77
77
|| target. arch == "powerpc64le"
78
+ || target. arch == "loongarch64"
78
79
|| ( target. arch == "x86" && !target. has_feature ( "sse" ) )
79
80
|| target. os == "windows"
80
81
// Linking says "error: function signature mismatch: __extendhfsf2" and seems to
Original file line number Diff line number Diff line change @@ -306,7 +306,11 @@ mod extend {
306
306
}
307
307
308
308
#[ cfg( all( f16_enabled, f128_enabled) ) ]
309
- #[ cfg( not( any( target_arch = "powerpc" , target_arch = "powerpc64" ) ) ) ]
309
+ #[ cfg( not( any(
310
+ target_arch = "powerpc" ,
311
+ target_arch = "powerpc64" ,
312
+ target_arch = "loongarch64"
313
+ ) ) ) ]
310
314
f_to_f ! {
311
315
extend,
312
316
f16 => f32 , Half => Single , __extendhfsf2, not( feature = "no-sys-f16" ) ;
@@ -336,7 +340,11 @@ mod trunc {
336
340
}
337
341
338
342
#[ cfg( all( f16_enabled, f128_enabled) ) ]
339
- #[ cfg( not( any( target_arch = "powerpc" , target_arch = "powerpc64" ) ) ) ]
343
+ #[ cfg( not( any(
344
+ target_arch = "powerpc" ,
345
+ target_arch = "powerpc64" ,
346
+ target_arch = "loongarch64"
347
+ ) ) ) ]
340
348
f_to_f ! {
341
349
trunc,
342
350
f32 => f16, Single => Half , __truncsfhf2, not( feature = "no-sys-f16" ) ;
You can’t perform that action at this time.
0 commit comments