URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [ldxw.cgs] - Rev 840
Compare with Previous | Blame | View Log
# sh testcase for ldx.w $rm, $rn, $rd -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64
.include "media/testutils.inc"
start
ldxw1:
movi 20, r3
shlli r3, 8, r3
movi 0, r4
ldx.w r3, r4, r0
ldxw2:
movi 20, r3
shlli r3, 8, r3
movi 2, r4
ldx.w r3, r4, r0
ldxw3:
movi 20, r3
shlli r3, 8, r3
movi -2, r4
ldx.w r3, r4, r0
okay:
pass