Search
lxdream.org :: lxdream/test/sh4/addv.s
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/addv.s
changeset 231:a9e61a96a885
prev226:0eeeb25447d3
author nkeynes
date Tue Sep 26 11:05:38 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add BT, BT/S, CMP/EQ, CMP/GE, CMP/GT, CMP/HI, CMP/HS tests
Add general slot-illegal exception test
file annotate diff log raw
nkeynes@226
     1
.section .text
nkeynes@226
     2
.include "sh4/inc.s"
nkeynes@226
     3
nkeynes@226
     4
.global _test_addv
nkeynes@226
     5
_test_addv:
nkeynes@226
     6
	start_test
nkeynes@226
     7
	mov.l r11, @-r15
nkeynes@226
     8
	mov.l test_addv_data_k, r11
nkeynes@226
     9
	
nkeynes@226
    10
test_addv_loop:
nkeynes@226
    11
	mov.l test_addv_data_end_k, r4
nkeynes@226
    12
	cmp/eq r11, r4
nkeynes@226
    13
	bt test_addv_end
nkeynes@226
    14
	add #1, r12
nkeynes@226
    15
nkeynes@226
    16
	clc
nkeynes@226
    17
	mov.l @r11+, r0
nkeynes@226
    18
	mov.l @r11+, r1
nkeynes@226
    19
	addv r0, r1
nkeynes@226
    20
	stc sr, r4
nkeynes@226
    21
	mov.l @r11+, r2
nkeynes@226
    22
	mov.l @r11+, r3
nkeynes@226
    23
	cmp/eq r1, r2
nkeynes@226
    24
	bt test_addv_b
nkeynes@226
    25
	fail test_addv_str_k
nkeynes@226
    26
	bra test_addv_loop
nkeynes@226
    27
	nop
nkeynes@226
    28
test_addv_b:
nkeynes@226
    29
	ldc r4, sr
nkeynes@226
    30
	xor r0, r0
nkeynes@226
    31
	add #1, r0
nkeynes@226
    32
	and r0, r4
nkeynes@226
    33
	cmp/eq r3, r4
nkeynes@226
    34
	bt test_addv_loop
nkeynes@226
    35
	fail test_addv_str_k
nkeynes@226
    36
	bra test_addv_loop
nkeynes@226
    37
	nop
nkeynes@226
    38
nkeynes@226
    39
test_addv_end:
nkeynes@231
    40
	mov.l @r15+, r11
nkeynes@226
    41
	end_test test_addv_str_k
nkeynes@226
    42
nkeynes@226
    43
	.align 4	
nkeynes@226
    44
test_addv_data_k:
nkeynes@226
    45
	.long test_addv_data
nkeynes@226
    46
test_addv_data:
nkeynes@226
    47
test_addv_data_1:
nkeynes@226
    48
	.long 0x00000000
nkeynes@226
    49
	.long 0x00000000
nkeynes@226
    50
	.long 0x00000000
nkeynes@226
    51
	.long 0x00000000
nkeynes@226
    52
nkeynes@226
    53
	.long 0x7FFFFFF0
nkeynes@226
    54
	.long 0x0000000F
nkeynes@226
    55
	.long 0x7FFFFFFF
nkeynes@226
    56
	.long 0x00000000
nkeynes@226
    57
	
nkeynes@226
    58
	.long 0xFFFFFFF0
nkeynes@226
    59
	.long 0x0000000F
nkeynes@226
    60
	.long 0xFFFFFFFF
nkeynes@226
    61
	.long 0x00000000
nkeynes@226
    62
nkeynes@226
    63
	.long 0xFFFFFFF0
nkeynes@226
    64
	.long 0xFFFFFFF0
nkeynes@226
    65
	.long 0xFFFFFFE0
nkeynes@226
    66
	.long 0x00000000
nkeynes@226
    67
nkeynes@226
    68
	.long 0xFFFFFFE0
nkeynes@226
    69
	.long 0x00000040
nkeynes@226
    70
	.long 0x00000020
nkeynes@226
    71
	.long 0x00000000
nkeynes@226
    72
nkeynes@226
    73
	.long 0x00000032
nkeynes@226
    74
	.long 0xFFFFFF80
nkeynes@226
    75
	.long 0xFFFFFFB2
nkeynes@226
    76
	.long 0x00000000
nkeynes@226
    77
nkeynes@226
    78
	.long 0x7FFFFFFF
nkeynes@226
    79
	.long 0x00000001
nkeynes@226
    80
	.long 0x80000000
nkeynes@226
    81
	.long 0x00000001
nkeynes@226
    82
nkeynes@226
    83
	.long 0x80000000
nkeynes@226
    84
	.long 0xFFFFFFFF
nkeynes@226
    85
	.long 0x7FFFFFFF
nkeynes@226
    86
	.long 0x00000001
nkeynes@226
    87
nkeynes@226
    88
	.long 0x98765432
nkeynes@226
    89
	.long 0x98765432
nkeynes@226
    90
	.long 0x30ECA864
nkeynes@226
    91
	.long 0x00000001
nkeynes@226
    92
nkeynes@226
    93
	.long 0x43214321
nkeynes@226
    94
	.long 0x43214321
nkeynes@226
    95
	.long 0x86428642
nkeynes@226
    96
	.long 0x00000001
nkeynes@226
    97
	
nkeynes@226
    98
test_addv_data_end:	
nkeynes@226
    99
	.align 4
nkeynes@226
   100
test_addv_data_end_k:
nkeynes@226
   101
	.long test_addv_data_end	
nkeynes@226
   102
test_addv_str_k:
nkeynes@226
   103
	.long test_addv_str
nkeynes@226
   104
test_addv_str:
nkeynes@226
   105
	.string "ADDV"
nkeynes@226
   106
	
.