URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gdb-6.8/] [pre-binutils-2.20.1-sync/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [sthil.cgs] - Rev 157
Go to most recent revision | Compare with Previous | Blame | View Log
# sh testcase for sthi.l $rm, $disp6, $rd -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64
.include "media/testutils.inc"
start
init:
pta wrong, tr0
movi 40, r0
shlli r0, 8, r0
movi 0x1020, r1
shlli r1, 8, r1
addi r1, 0x30, r1
shlli r1, 8, r1
addi r1, 0x40, r1
shlli r1, 8, r1
addi r1, 0x50, r1
shlli r1, 8, r1
addi r1, 0x60, r1
shlli r1, 8, r1
addi r1, 0x70, r1
shlli r1, 8, r1
addi r1, 0x80, r1
sthil1:
sthi.l r0, 0, r1
sthil2:
sthi.l r0, 1, r1
sthil3:
sthi.l r0, 2, r1
sthil4:
sthi.l r0, 3, r1
sthil5:
sthi.l r0, -1, r1
sthil6:
sthi.l r0, -2, r1
sthil7:
sthi.l r0, -3, r1
okay:
pass
wrong:
fail
Go to most recent revision | Compare with Previous | Blame | View Log