URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 33 |
# sh testcase for movca.l r0, @$rn -*- Asm -*-
|
# sh testcase for movca.l r0, @$rn -*- Asm -*-
|
# mach: all
|
# mach: all
|
# as: -isa=shcompact
|
# as: -isa=shcompact
|
# ld: -m shelf32
|
# ld: -m shelf32
|
|
|
.include "compact/testutils.inc"
|
.include "compact/testutils.inc"
|
|
|
start
|
start
|
|
|
.global movcal
|
.global movcal
|
movcal:
|
movcal:
|
mov #1, r0
|
mov #1, r0
|
rotr r0
|
rotr r0
|
add #128, r0
|
add #128, r0
|
mov #40, r1
|
mov #40, r1
|
shll8 r1
|
shll8 r1
|
movca.l r0, @r1
|
movca.l r0, @r1
|
|
|
# Load the word back in.
|
# Load the word back in.
|
mov.l @r1, r3
|
mov.l @r1, r3
|
cmp/eq r0, r3
|
cmp/eq r0, r3
|
bf wrong
|
bf wrong
|
|
|
okay:
|
okay:
|
pass
|
pass
|
wrong:
|
wrong:
|
fail
|
fail
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.