1# sh testcase for lds.l @${rn}+, fpscr -*- Asm -*- 2# mach: all 3# as: -isa=shcompact 4# ld: -m shelf32 5 6 .include "compact/testutils.inc" 7 8 start 9 10 mov #40, r0 11 shll8 r0 12 # save address for later examination. 13 mov r0, r1 14 15 # Build up a distinctive bit pattern. 16 mov #1, r2 17 shll8 r2 18 add #12, r2 19 shll8 r2 20 add #85, r2 21 shll8 r2 22 add #170, r2 23 # Store it in memory. 24 mov.l r2, @r0 25 26 lds.l @r0+, fpscr 27 28check: 29 # Read it back. 30 sts fpscr, r3 31 cmp/eq r2, r3 32 bf wrong 33 34inc: 35 # Test for proper post-increment. 36 add #4, r1 37 cmp/eq r0, r1 38 bf wrong 39 40okay: 41 pass 42wrong: 43 fail 44