Skip to content

Commit 97199f6

Browse files
abmusseV8 LUCI CQ
authored andcommitted
aix: add work around for f16 type
AIX builds started to fail after this commit https://chromium.googlesource.com/v8/v8.git/+/d057564707d3a5df074b7f49a12a2f1e96638f94. Change-Id: I25a5c4ae3b4fe5c27a9fb9e35e2bcd2bbed40351 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5789180 Reviewed-by: Clemens Backes <[email protected]> Reviewed-by: Nico Hartmann <[email protected]> Commit-Queue: Clemens Backes <[email protected]> Cr-Commit-Position: refs/heads/main@{#95952}
1 parent e9256f2 commit 97199f6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/utils/utils.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
#if defined(V8_OS_AIX)
2929
#include <fenv.h> // NOLINT(build/c++11)
30+
31+
#include "src/wasm/float16.h"
3032
#endif
3133

3234
#ifdef _MSC_VER
@@ -814,6 +816,13 @@ T FpOpWorkaround(T input, T value) {
814816
}
815817
return value;
816818
}
819+
820+
template <>
821+
inline Float16 FpOpWorkaround(Float16 input, Float16 value) {
822+
float result = FpOpWorkaround(input.ToFloat32(), value.ToFloat32());
823+
return Float16::FromFloat32(result);
824+
}
825+
817826
#endif
818827

819828
V8_EXPORT_PRIVATE bool PassesFilter(base::Vector<const char> name,

0 commit comments

Comments
 (0)