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

i#3544: RV64: Port test common.getretaddr to RV64 #7169

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions suite/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6426,6 +6426,7 @@ if (RISCV64)
code_api|client.unregister
code_api|common.broadfun
code_api|common.hello
code_api|common.getretaddr
code_api|libutil.drconfig_test
code_api|libutil.frontend_test
# TODO i#3544: code_api|linux.eintr failed under QEMU
Expand Down
9 changes: 6 additions & 3 deletions suite/tests/common/getretaddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ GLOBAL_LABEL(FUNCNAME:)
ldr x30, [sp], #16
ret
# elif defined(RISCV64)
/* TODO i#3544: Port tests to RISC-V 64 */
ret
mv t0, ra
call next_instr
next_instr:
mv a0, ra
jr t0
# else
# error NYI
# endif
Expand All @@ -134,7 +137,7 @@ GLOBAL_LABEL(FUNCNAME:)
ldr x0, [x29, #8]
ret
# elif defined(RISCV64)
/* TODO i#3544: Port tests to RISC-V 64 */
ld a0, -8(fp)
ret
# else
# error NYI
Expand Down
5 changes: 3 additions & 2 deletions suite/tests/tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,9 @@ GLOBAL_LABEL(FUNCNAME:)
mov x0, x30 /* Replace first argument with return address. */
br x9 /* Tailcall to function pointer. */
#elif defined(RISCV64)
/* TODO i#3544: Port tests to RISC-V64 */
ret
mv t0, a0
mv a0, ra
jr t0
Copy link
Contributor

Choose a reason for hiding this comment

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

Add comments here

#else
# error NYI
#endif
Expand Down
Loading