summaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/builtins/patches/fp_compare-fix.patch
blob: 9658c642b76893bab8dfe8004ab09fcf53a451eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/builtins/fp_compare_impl.inc b/lib/builtins/fp_compare_impl.inc
index f883338..6ff4051 100644
--- a/lib/builtins/fp_compare_impl.inc
+++ b/lib/builtins/fp_compare_impl.inc
@@ -12,7 +12,7 @@
 // functions. We need to ensure that the return value is sign-extended in the
 // same way as GCC expects (since otherwise GCC-generated __builtin_isinf
 // returns true for finite 128-bit floating-point numbers).
-#if defined(__aarch64__) || defined(__arm64ec__)
+#if defined(__aarch64__) || defined(__arm64ec__) || defined(__wasm64__)
 // AArch64 GCC overrides libgcc_cmp_return to use int instead of long.
 typedef int CMP_RESULT;
 #elif __SIZEOF_POINTER__ == 8 && __SIZEOF_LONG__ == 4