-
Notifications
You must be signed in to change notification settings - Fork 786
spec/f32.wast test 1603 fails with GCC 13 #5456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Might be worth trying santizers on that test (in both gcc and clang), perhaps there is undefined behavior that gcc uses. Or, building a debug build would also be useful to check to see if optimizations are involved. |
@kripken I'd be happy to try sanitizers on that test. Could you give me some pointers on how to invoke them? The issue remains present in 112 release. |
Sure, here is how CI builds with address sanitizer: binaryen/.github/workflows/ci.yml Lines 134 to 154 in 7c3a469
Basically add |
hitting the same issue with binaryen 112 or newer on Alpine edge, looks like a similar issue also happens with the corresponding max() call
maybe it's an issue with |
and, well, the same happens with the corresponding f64 functions |
FWIW this is no longer reproducible with binaryen 118 on current Fedora rawhide (GCC 14.1.1). |
Thanks for confirming @rathann , let's close this then. |
Fedora 39 (gcc 13.3.1) and 40 (gcc 14.1.1) builds passed as well. |
Binaryen 118 on Alpine with GCC 13.2.1 works as well |
Great! |
When running binaryen 111 test suite after building it with GCC 13 on x86_64 running Fedora rawhide, I get the following failure:
I have no idea why this is happening, especially since the previous test:
succeeds and differs only in argument order. Compiler bug perhaps?
NOTE: Successful compilation with GCC 13 requires a small patch adding explicit includes for
<cstdint>
tosrc/wat-lexer.h
, which I'll open a PR for soon.The text was updated successfully, but these errors were encountered: