URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [not.cgs] - Rev 840
Compare with Previous | Blame | View Log
# sh testcase for not $rm64, $rn64 -*- Asm -*-
# mach: all
# as: -isa=shcompact
# ld: -m shelf32
.include "compact/testutils.inc"
start
.global not
not:
mov #0, r0
or #192, r0
not r0, r1
mov #0, r0
or #255, r0
shll8 r0
or #255, r0
shll8 r0
or #255, r0
shll8 r0
or #63, r0
cmp/eq r0, r1
bf wrong
ones:
mov #0, r1
not r1, r2
mov #0, r0
or #255, r0
shll8 r0
or #255, r0
shll8 r0
or #255, r0
shll8 r0
or #255, r0
cmp/eq r0, r2
bf wrong
okay:
pass
wrong:
fail