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/] [mulsl.cgs] - Rev 223
Compare with Previous | Blame | View Log
# sh testcase for muls.l $rm, $rn, $rd -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64
.include "media/testutils.inc"
start
.global mulsl
init:
pta wrong, tr0
mulsl1:
movi 0, r0
muls.l r0, r0, r1
bnei r1, 0, tr0
mulsl2:
movi 0, r0
movi 1, r1
muls.l r0, r1, r2
bnei r2, 0, tr0
mulsl3:
movi 1, r0
movi 0, r1
muls.l r0, r1, r2
bnei r2, 0, tr0
mulsl4:
movi 1, r0
movi 1, r1
muls.l r0, r1, r2
bnei r2, 1, tr0
mulsl5:
movi 2, r0
movi 9, r1
muls.l r0, r1, r2
bnei r2, 18, tr0
mulsl6:
movi 2, r0
movi -9, r1
muls.l r0, r1, r2
bnei r2, -18, tr0
okay:
pass
wrong:
fail