Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/sim/testsuite/cr16/popret3.cgs

18 lines
207 B
Text
Raw Normal View History

2023-03-06 14:48:14 +01:00
# cr16 testcase for popret RA insns.
# mach: cr16
.include "testutils.inc"
start
.global popret3
popret3:
movd $0x1006, (sp)
movd $ok, (ra)
lshd $-1, (ra)
stord (ra), 0x1006
popret RA
ok:
pass