1# sh testcase for mov.b @($imm4, $rm), r0 -*- Asm -*- 2# mach: all 3# as: -isa=shcompact 4# ld: -m shelf32 5 6 .include "compact/testutils.inc" 7 8 start 9 mov #30, r1 10 shll8 r1 11 # Store something there first. 12 mov #0, r0 13 or #170, r0 14 mov r0, r7 15 mov.b r0, @(3, r1) 16 # Load it back. 17 mov.b @(3, r1), r0 18 and #255, r0 19 cmp/eq r0, r7 20 bf wrong 21 22okay: 23 pass 24wrong: 25 fail 26