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

Enable spectest on riscv64 #2843

Merged
merged 7 commits into from
Dec 4, 2023
Merged

Enable spectest on riscv64 #2843

merged 7 commits into from
Dec 4, 2023

Conversation

no1wudi
Copy link
Collaborator

@no1wudi no1wudi commented Dec 1, 2023

else {
val = (int32)((intptr_t)symbol_addr + (intptr_t)reloc_addend);
}
/* Already handled in R_RISCV_PCREL_HI20 */
Copy link
Contributor

Choose a reason for hiding this comment

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

R_RISCV_PCREL_HI20 doesn't equal to R_RISCV_PCREL_LO12_I, why not need to handle R_RISCV_PCREL_LO12_I here?

Copy link
Collaborator Author

@no1wudi no1wudi Dec 1, 2023

Choose a reason for hiding this comment

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

This is a little trick to reuse the code for both R_RISCV_CALL/R_RISCV_CALL_PLT/R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I handled in line 373.

Copy link
Contributor

Choose a reason for hiding this comment

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

But this branch only break, it does nothing, it is really strange. Should we add case R_RISCV_PCREL_LO12_I after case R_RISCV_PCREL_HI20 to reuse the code, and then update some code in that handling accordingly?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Essential check added here

tests/wamr-test-suites/spec-test-script/runtest.py Outdated Show resolved Hide resolved
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
@no1wudi
Copy link
Collaborator Author

no1wudi commented Dec 4, 2023

Copy link
Contributor

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

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

LGTM

@wenyongh wenyongh merged commit 453a29a into bytecodealliance:main Dec 4, 2023
383 checks passed
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
Fix relocation issues on riscv and update test scripts and CI to enable
test spec cases on riscv QEMU.
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.

2 participants