Search
lxdream.org :: lxdream/test/sh4/inc.s :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/inc.s
changeset 357:3592a10b3242
prev233:f8333b94f503
next555:309c97260912
author nkeynes
date Tue Feb 13 08:34:27 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Add tests for FLOAT and FTRC
Comment out user-mode exception test (broken)
file annotate diff log raw
1.1 --- a/test/sh4/inc.s Wed Sep 27 10:21:34 2006 +0000
1.2 +++ b/test/sh4/inc.s Tue Feb 13 08:34:27 2007 +0000
1.3 @@ -189,6 +189,25 @@
1.4 L2:
1.5 .endm
1.6
1.7 +.macro setpr
1.8 + sts fpscr, r0
1.9 + xor r1, r1
1.10 + add #8, r1
1.11 + shll16 r1
1.12 + or r1, r0
1.13 + lds r0, fpscr
1.14 +.endm
1.15 +
1.16 +.macro clrpr
1.17 + sts fpscr, r0
1.18 + xor r1, r1
1.19 + add #8, r1
1.20 + shll16 r1
1.21 + not r1, r1
1.22 + and r1, r0
1.23 + lds r0, fpscr
1.24 +.endm
1.25 +
1.26 .macro expect_exc code
1.27 LOCAL L1, L2, L3
1.28 mov.l L1, r3
.