Search
lxdream.org :: lxdream/test/sh4/ldcsr.s
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 (13 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
view annotate diff log raw
     1 .section .text
     2 .include "sh4/inc.s"
     4 .global _test_ldcsr
     5 _test_ldcsr:
     6 	start_test
     8 test_ldcsr_1:
     9 	add #1, r12
    11 	stc sr, r0
    12 	mov #-1, r1
    13 	ldc r1, sr
    14 	stc sr, r2
    15 	ldc r0, sr
    16 	mov.l sr_mask, r3
    17 	cmp/eq r2, r3
    18 	bt test_ldcsr_end
    19 	fail test_ldcsr_str_k
    21 test_ldcsr_end:
    22 	end_test test_ldcsr_str_k
    24 test_ldcsr_str:
    25 	.string "LDC Rn, SR"
    26 .align 4
    27 sr_mask:
    28 	.long 0x700083F3
    29 test_ldcsr_str_k:	
    30 	.long test_ldcsr_str
.