Skip to content
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

Update testsuite and implement table64 #2418

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

sbc100
Copy link
Member

@sbc100 sbc100 commented May 13, 2024

See WebAssembly/memory64#51

Includes a work around for #2388

@sbc100 sbc100 requested review from keithw and dschuff May 13, 2024 18:47
@sbc100 sbc100 force-pushed the update_testsuite_table64 branch 7 times, most recently from 2e01072 to 2449a08 Compare May 14, 2024 20:15
@sbc100
Copy link
Member Author

sbc100 commented May 14, 2024

PTAL!

The workaround for #2388 can be replaced by #2389 later I think.

@sbc100
Copy link
Member Author

sbc100 commented May 15, 2024

Gentle ping..

src/c-writer.cc Outdated
snprintf(buf, sizeof(buf), "%.17g", Bitcast<double>(f64_bits));
// Append .0 to if sprint didn't include a decimal point.
// Works around https://github.com/WebAssembly/wabt/issues/2422
if (!strchr(buf, '.') && !strchr(buf, '+')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'+'?

Copy link
Member Author

@sbc100 sbc100 May 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This avoids adding .0 to constants that look like 1e+20

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but that has a . already, do you mean like 1e-100?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to look for e instead, and added a comment.

@keithw
Copy link
Member

keithw commented May 15, 2024

I am totally swamped right now but will get to this asap (probably Friday evening). Sorry for delay.

@sbc100 sbc100 enabled auto-merge (squash) May 15, 2024 22:07
Copy link
Member

@dschuff dschuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you update the commit message to also cover what's happening with the tests (e.g. EH etc)

src/c-writer.cc Outdated Show resolved Hide resolved
@sbc100
Copy link
Member Author

sbc100 commented May 15, 2024

can you update the commit message to also cover what's happening with the tests (e.g. EH etc)

Oops, good catch I didn't actually mean to delete those files. I took care of that already in #2416

@sbc100 sbc100 merged commit 44837a7 into main May 15, 2024
18 checks passed
@sbc100 sbc100 deleted the update_testsuite_table64 branch May 15, 2024 23:02
@@ -77,7 +77,8 @@ class TypeChecker {
Result EndBrTable();
Result OnCall(const TypeVector& param_types, const TypeVector& result_types);
Result OnCallIndirect(const TypeVector& param_types,
const TypeVector& result_types);
const TypeVector& result_types,
const Limits& table_limits);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does OnReturnCallIndirect need the same modification?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most likely. I guess the test suite is lacking there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants