Search
lxdream.org :: lxdream/test/sh4/xtrct.s
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/xtrct.s
changeset 393:5e5335b61373
author nkeynes
date Thu Dec 11 23:26:03 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Disable the generational translation cache - I've got no evidence that it
actually helps performance, and it simplifies things to get rid of it (in
particular, translated code doesn't have to worry about being moved now).
view annotate diff log raw
     1 .section .text
     2 .include "sh4/inc.s"
     4 .global _test_xtrct
     5 _test_xtrct:
     6 	start_test
     8 test_xtrct_1:
     9 	add #1, r12
    11 	mov.l test_xtrct_1_input_1, r3
    12 	mov.l test_xtrct_1_input_2, r4
    13 	mov r4, r5
    14 	xtrct r3, r4
    15 	xtrct r5, r3
    16 	mov.l test_xtrct_1_result_1, r0
    17 	mov.l test_xtrct_1_result_2, r1
    18 	cmp/eq r0, r4
    19 	bf test_xtrct_1_fail
    20 	cmp/eq r1, r3
    21 	bt test_xtrct_2
    22 test_xtrct_1_fail:
    23 	fail test_xtrct_str_k
    24 	bra test_xtrct_2
    25 	nop
    26 test_xtrct_1_input_1:
    27 	.long 0x12345678
    28 test_xtrct_1_input_2:	
    29 	.long 0x9ABCDEF0
    30 test_xtrct_1_result_1:
    31 	.long 0x56789ABC
    32 test_xtrct_1_result_2:
    33 	.long 0xDEF01234
    35 test_xtrct_2:
    36 	add #1, r12
    38 	mov.l test_xtrct_2_input, r3
    39 	xtrct r3, r3
    40 	mov.l test_xtrct_2_result, r4
    41 	cmp/eq r3, r3
    42 	bt test_xtrct_end
    43 	fail test_xtrct_str_k
    44 	bra test_xtrct_end
    45 	nop
    46 test_xtrct_2_input:
    47 	.long 0x2143546A
    48 test_xtrct_2_result:	
    49 	.long 0x546A2143
    51 test_xtrct_end:
    52 	end_test test_xtrct_str_k
    54 test_xtrct_str:
    55 	.string "XTRCT"
    57 .align 4	
    58 test_xtrct_str_k:	
    59 	.long test_xtrct_str
.