filename | test/sh4/cmpstr.s |
changeset | 364:d738f6883d4a |
author | nkeynes |
date | Sun Jul 20 11:37:47 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Commit testta changes for sort-dma tests |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/sh4/cmpstr.s Sun Jul 20 11:37:47 2008 +00001.3 @@ -0,0 +1,72 @@1.4 +.section .text1.5 +.include "sh4/inc.s"1.6 +!1.7 +! Test cmp/xx1.8 +1.9 +.global _test_cmpstr1.10 +_test_cmpstr:1.11 + start_test1.12 + mov.l r11, @-r151.13 + mov.l r10, @-r151.14 +1.15 +test_cmpstr_1: ! CMP/STR r2,r21.16 + add #1, r121.17 + mova test_cmpstr_str, r01.18 + cmp/str r0, r01.19 + bt test_cmpstr_21.20 + fail test_cmpstr_str_k1.21 +1.22 +test_cmpstr_2:1.23 + mova test_cmpstr_data, r01.24 + mov r0, r111.25 + mov #6, r101.26 +1.27 +test_cmpstr_2_loop:1.28 + add #1, r121.29 + mov.l @r11+, r21.30 + mov.l @r11+, r31.31 + mov.l @r11+, r41.32 + cmp/str r2, r31.33 + movt r01.34 + cmp/eq r0, r41.35 + bt test_cmpstr_2_ok1.36 + fail test_cmpstr_str_k1.37 +test_cmpstr_2_ok:1.38 + dt r101.39 + bf test_cmpstr_2_loop1.40 +1.41 +test_cmpstr_end:1.42 + mov.l @r15+, r101.43 + mov.l @r15+, r111.44 + end_test test_cmpstr_str_k1.45 +1.46 +test_cmpstr_data:1.47 + .long 0x818283841.48 + .long 0x828384851.49 + .long 0x000000001.50 +1.51 + .long 0x010403021.52 + .long 0x020103041.53 + .long 0x000000011.54 +1.55 + .long 0xAA55AA551.56 + .long 0x55AA55AA1.57 + .long 0x000000001.58 +1.59 + .long 0x123456781.60 + .long 0x123456781.61 + .long 0x000000011.62 +1.63 + .long 0xABCD01DC1.64 + .long 0xABCD01DD1.65 + .long 0x000000011.66 +1.67 + .long 0x120034231.68 + .long 0x123423001.69 + .long 0x000000011.70 +1.71 +test_cmpstr_str_k:1.72 + .long test_cmpstr_str1.73 +test_cmpstr_str:1.74 + .string "CMP/STR"1.75 +1.76 \ No newline at end of file
.