Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/sim/testsuite/frv/stqu.cgs
2023-03-06 14:48:14 +01:00

35 lines
757 B
Text

# frv testcase for stqu $GRk,@($GRi,$GRj)
# mach: frv
# as(frv): -mcpu=frv
.include "testutils.inc"
start
.global stqu
stqu:
set_mem_limmed 0xbeef,0xdead,sp
inc_gr_immed -4,sp
set_mem_limmed 0xdead,0xbeef,sp
inc_gr_immed -4,sp
set_mem_limmed 0xdead,0xdead,sp
inc_gr_immed -4,sp
set_mem_limmed 0xbeef,0xbeef,sp
set_gr_gr sp,gr20
inc_gr_immed -4,sp
set_gr_immed 4,gr7
set_gr_limmed 0xbeef,0xdead,gr8
set_gr_limmed 0xdead,0xbeef,gr9
set_gr_limmed 0xdead,0xdead,gr10
set_gr_limmed 0xbeef,0xbeef,gr11
stqu gr8,@(sp,gr7)
test_gr_gr sp,gr20
test_mem_limmed 0xbeef,0xdead,sp
inc_gr_immed 4,sp
test_mem_limmed 0xdead,0xbeef,sp
inc_gr_immed 4,sp
test_mem_limmed 0xdead,0xdead,sp
inc_gr_immed 4,sp
test_mem_limmed 0xbeef,0xbeef,sp
pass