URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [ori.cgs] - Rev 828
Go to most recent revision | Compare with Previous | Blame | View Log
# sh testcase for ori $rm, $imm10, $rd -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64
.include "media/testutils.inc"
start
init:
pta wrong, tr0
or1:
movi 0, r0
ori r0, 0, r1
bnei r1, 0, tr0
or2:
movi 0, r0
ori r0, 1, r2
bnei r2, 1, tr0
or3:
movi 1, r0
ori r0, 0, r2
bnei r2, 1, tr0
or4:
movi 1, r0
ori r0, 1, r1
bnei r1, 1, tr0
or5:
movi 1, r0
shlli r0, 63, r0
ori r0, 1, r2
okay:
pass
wrong:
fail
Go to most recent revision | Compare with Previous | Blame | View Log