filename | test/sh4/ldcsr.s |
changeset | 822:6e0536758465 |
author | nkeynes |
date | Sat Aug 23 12:08:01 2008 +0000 (15 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 +00001.2 +++ b/test/sh4/ldcsr.s Sat Aug 23 12:08:01 2008 +00001.3 @@ -0,0 +1,31 @@1.4 +.section .text1.5 +.include "sh4/inc.s"1.6 +1.7 +.global _test_ldcsr1.8 +_test_ldcsr:1.9 + start_test1.10 +1.11 +test_ldcsr_1:1.12 + add #1, r121.13 +1.14 + stc sr, r01.15 + mov #-1, r11.16 + ldc r1, sr1.17 + stc sr, r21.18 + ldc r0, sr1.19 + mov.l sr_mask, r31.20 + cmp/eq r2, r31.21 + bt test_ldcsr_end1.22 + fail test_ldcsr_str_k1.23 +1.24 +test_ldcsr_end:1.25 + end_test test_ldcsr_str_k1.26 +1.27 +test_ldcsr_str:1.28 + .string "LDC Rn, SR"1.29 +.align 41.30 +sr_mask:1.31 + .long 0x700083F31.32 +test_ldcsr_str_k:1.33 + .long test_ldcsr_str1.34 +1.35 \ No newline at end of file
.