filename | test/sh4/shld.s |
changeset | 364:d738f6883d4a |
author | nkeynes |
date | Fri Feb 24 21:11:58 2012 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Add preprocessing support to genglsl |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/sh4/shld.s Fri Feb 24 21:11:58 2012 +10001.3 @@ -0,0 +1,127 @@1.4 +.section .text1.5 +.include "sh4/inc.s"1.6 +!1.7 +! Test SHAD/SHLD operation1.8 +!1.9 +.global _test_shld1.10 +_test_shld:1.11 + start_test1.12 + mov.l r11, @-r151.13 + mov.l r10, @-r151.14 +1.15 +test_shld_1:1.16 + mov #8, r111.17 + mova test_shld_data, r01.18 + mov r0, r101.19 +1.20 +test_shld_1_loop1:1.21 + add #1, r121.22 + mov.l @r10+, r21.23 + mov.l @r10+, r31.24 + mov.l @r10+, r41.25 + shld r3, r21.26 + cmp/eq r2, r41.27 + bt test_shld_1_ok1.28 + fail test_shld_str_k1.29 +test_shld_1_ok:1.30 + dt r111.31 + bf test_shld_1_loop11.32 +1.33 +test_shad_1: ! Same again, but using shad1.34 + mov #8, r111.35 + mova test_shad_data, r01.36 + mov r0, r101.37 +1.38 +test_shad_1_loop1:1.39 + add #1, r121.40 + mov.l @r10+, r21.41 + mov.l @r10+, r31.42 + mov.l @r10+, r41.43 + shad r3, r21.44 + cmp/eq r2, r41.45 + bt test_shad_1_ok1.46 + fail test_shld_str_k1.47 +test_shad_1_ok:1.48 + dt r111.49 + bf test_shad_1_loop11.50 +1.51 +test_shld_end:1.52 + mov.l @r15+, r101.53 + mov.l @r15+, r111.54 + end_test test_shld_str_k1.55 +1.56 +test_shld_data:1.57 + .long 0x123456781.58 + .long 01.59 + .long 0x123456781.60 +1.61 + .long 0xA8B9CADB1.62 + .long 0x000000101.63 + .long 0xCADB00001.64 +1.65 + .long 0x8A9BACBD1.66 + .long 0xFFFFFFF01.67 + .long 0x00008A9B1.68 +1.69 + .long 0x7A9BACBD1.70 + .long 0xFFFFFFF01.71 + .long 0x00007A9B1.72 +1.73 + .long 0x7891ACDC1.74 + .long 0x800000001.75 + .long 0x000000001.76 +1.77 + .long 0x8719C0101.78 + .long 0x800000001.79 + .long 0x000000001.80 +1.81 + .long 0x7891ACDF1.82 + .long 0x7FFFFFFF1.83 + .long 0x800000001.84 +1.85 + .long 0x8719C01E1.86 + .long 0x000000FF1.87 + .long 0x000000001.88 +1.89 +test_shad_data:1.90 + .long 0x123456781.91 + .long 01.92 + .long 0x123456781.93 +1.94 + .long 0xA8B9CADB1.95 + .long 0x000000101.96 + .long 0xCADB00001.97 +1.98 + .long 0x8A9BACBD1.99 + .long 0xFFFFFFF01.100 + .long 0xFFFF8A9B1.101 +1.102 + .long 0x7A9BACBD1.103 + .long 0xFFFFFFF01.104 + .long 0x00007A9B1.105 +1.106 + .long 0x7891ACDC1.107 + .long 0x800000001.108 + .long 0x000000001.109 +1.110 + .long 0x8719C0101.111 + .long 0x800000001.112 + .long 0xFFFFFFFF1.113 +1.114 + .long 0x7891ACDF1.115 + .long 0x7FFFFFFF1.116 + .long 0x800000001.117 +1.118 + .long 0x8719C01E1.119 + .long 0x000000FF1.120 + .long 0x000000001.121 +1.122 +test_shld_data_end:1.123 + .align 41.124 +test_shld_data_end_k:1.125 + .long test_shld_data_end1.126 +test_shld_str_k:1.127 + .long test_shld_str1.128 +test_shld_str:1.129 + .string "SHLD"1.130 +1.131 \ No newline at end of file
.