Search
lxdream.org :: lxdream/test/sh4/ldc.s
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/ldc.s
changeset 823:8a592668322f
prevtest/sh4/ldcsr.s@822:6e0536758465
next976:e57a25d9eb7d
author nkeynes
date Sun Aug 24 01:40:58 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Mask fpscr correctly as well while we're in there
view annotate diff log raw
     1 .section .text
     2 .include "sh4/inc.s"
     4 .global _test_ldc
     5 _test_ldc:
     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_ldsfpscr_1
    19 	fail test_ldc_str_k
    21 test_ldsfpscr_1:
    22 	add #1,r12
    23 	sts fpscr, r0
    24 	mov #-1, r1
    25 	lds r1, fpscr
    26 	sts fpscr, r2
    27 	lds r0, fpscr
    28 	mov.l fpscr_mask, r3
    29 	cmp/eq r2, r3
    30 	bt test_ldc_end
    31 	fail test_ldc_str_k
    33 test_ldc_end:
    34 	end_test test_ldc_str_k
    36 test_ldc_str:
    37 	.string "LDC/S"
    38 .align 4
    39 sr_mask:
    40 	.long 0x700083F3
    41 fpscr_mask:
    42 	.long 0x003FFFFF
    43 test_ldc_str_k:	
    44 	.long test_ldc_str
.