Skip to content

cranelift: Add some libcalls to test interpret#7320

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
afonso360:interpret-libcalls
Oct 21, 2023
Merged

cranelift: Add some libcalls to test interpret#7320
alexcrichton merged 1 commit intobytecodealliance:mainfrom
afonso360:interpret-libcalls

Conversation

@afonso360
Copy link
Contributor

👋 Hey,

This is a follow up to one of @alexcrichton 's comments in #7203, where he found some fuzzing issues with RISC-V. I'm still investigating those, but this solves one of them.

Fuzzgen can currently generate a number of libcalls, these also need to be given a handler when building the interpreter. We currently have that in the fuzzgen interpreter, but don't have an equivalent in test interpret, so when copying a failing clif case from fuzzgen it's possible to get a second error if the testcase references some libcall.

I've been currently just stripping out libcalls from failing clif cases, but probably should have addressed this a while ago.

This adds the same libcalls that we have in the fuzzer, it might be worth having a default interpreter implementation in cranelift-interpreter that adds these, not entirely sure.

@afonso360 afonso360 requested review from a team as code owners October 21, 2023 13:51
@afonso360 afonso360 requested review from fitzgen and removed request for a team October 21, 2023 13:51
@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Oct 21, 2023
@alexcrichton alexcrichton added this pull request to the merge queue Oct 21, 2023
Merged via the queue into bytecodealliance:main with commit 9bb6b1b Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants