Search
lxdream.org :: lxdream/test/sh4/ldcsr.s :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/ldcsr.s
changeset 822:6e0536758465
author nkeynes
date Sat Aug 23 12:08:01 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Mask off SR correctly when writing to it - this turns out to be important
in some cases
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/sh4/ldcsr.s Sat Aug 23 12:08:01 2008 +0000
1.3 @@ -0,0 +1,31 @@
1.4 +.section .text
1.5 +.include "sh4/inc.s"
1.6 +
1.7 +.global _test_ldcsr
1.8 +_test_ldcsr:
1.9 + start_test
1.10 +
1.11 +test_ldcsr_1:
1.12 + add #1, r12
1.13 +
1.14 + stc sr, r0
1.15 + mov #-1, r1
1.16 + ldc r1, sr
1.17 + stc sr, r2
1.18 + ldc r0, sr
1.19 + mov.l sr_mask, r3
1.20 + cmp/eq r2, r3
1.21 + bt test_ldcsr_end
1.22 + fail test_ldcsr_str_k
1.23 +
1.24 +test_ldcsr_end:
1.25 + end_test test_ldcsr_str_k
1.26 +
1.27 +test_ldcsr_str:
1.28 + .string "LDC Rn, SR"
1.29 +.align 4
1.30 +sr_mask:
1.31 + .long 0x700083F3
1.32 +test_ldcsr_str_k:
1.33 + .long test_ldcsr_str
1.34 +
1.35 \ No newline at end of file
.