filename | test/sh4/rot.s |
changeset | 396:0738dbc01d95 |
author | nkeynes |
date | Wed Nov 14 10:18:21 2007 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Add portugese and german translations (thanks to GT and TK) |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/sh4/rot.s Wed Nov 14 10:18:21 2007 +00001.3 @@ -0,0 +1,171 @@1.4 +.section .text1.5 +.include "sh4/inc.s"1.6 +1.7 +.global _test_rot1.8 +_test_rot:1.9 + start_test1.10 +1.11 +test_rotl_1:1.12 + add #1, r121.13 +1.14 + mov.l test_rotl_1_input, r31.15 + mov.l test_rotl_1_result, r41.16 + clrt1.17 + rotl r31.18 + bf test_rotl_1_fail1.19 + cmp/eq r3, r41.20 + bt test_rotl_21.21 +test_rotl_1_fail:1.22 + fail test_rot_str_k1.23 + bra test_rotl_21.24 + nop1.25 +test_rotl_1_input:1.26 + .long 0x94E123231.27 +test_rotl_1_result:1.28 + .long 0x29C246471.29 +1.30 +test_rotl_2:1.31 + add #1, r121.32 + mov.l test_rotl_2_input, r31.33 + mov.l test_rotl_2_result, r41.34 + sett1.35 + rotl r31.36 + bt test_rotl_2_fail1.37 + cmp/eq r3, r41.38 + bt test_rotcl_11.39 +test_rotl_2_fail:1.40 + fail test_rot_str_k1.41 + bra test_rotcl_11.42 + nop1.43 +test_rotl_2_input:1.44 + .long 0x29C246461.45 +test_rotl_2_result:1.46 + .long 0x53848C8C1.47 +1.48 +1.49 +test_rotcl_1:1.50 + add #1, r121.51 +1.52 + mov.l test_rotcl_1_input, r31.53 + mov.l test_rotcl_1_result, r41.54 + clrt1.55 + rotcl r31.56 + bf test_rotcl_1_fail1.57 + cmp/eq r3, r41.58 + bt test_rotcl_21.59 +test_rotcl_1_fail:1.60 + fail test_rot_str_k1.61 + bra test_rotcl_21.62 + nop1.63 +test_rotcl_1_input:1.64 + .long 0x94E123231.65 +test_rotcl_1_result:1.66 + .long 0x29C246461.67 +1.68 +test_rotcl_2:1.69 + add #1, r121.70 + mov.l test_rotcl_2_input, r31.71 + mov.l test_rotcl_2_result, r41.72 + sett1.73 + rotcl r31.74 + bt test_rotcl_2_fail1.75 + cmp/eq r3, r41.76 + bt test_rotr_11.77 +test_rotcl_2_fail:1.78 + fail test_rot_str_k1.79 + bra test_rotr_11.80 + nop1.81 +test_rotcl_2_input:1.82 + .long 0x29C246461.83 +test_rotcl_2_result:1.84 + .long 0x53848C8D1.85 +1.86 +test_rotr_1:1.87 + add #1, r121.88 +1.89 + mov.l test_rotr_1_input, r31.90 + mov.l test_rotr_1_result, r41.91 + clrt1.92 + rotr r31.93 + bf test_rotr_1_fail1.94 + cmp/eq r3, r41.95 + bt test_rotr_21.96 +test_rotr_1_fail:1.97 + fail test_rot_str_k1.98 + bra test_rotr_21.99 + nop1.100 +test_rotr_1_input:1.101 + .long 0x94E123231.102 +test_rotr_1_result:1.103 + .long 0xCA7091911.104 +1.105 +test_rotr_2:1.106 + add #1, r121.107 + mov.l test_rotr_2_input, r31.108 + mov.l test_rotr_2_result, r41.109 + sett1.110 + rotr r31.111 + bt test_rotr_2_fail1.112 + cmp/eq r3, r41.113 + bt test_rotcr_11.114 +test_rotr_2_fail:1.115 + fail test_rot_str_k1.116 + bra test_rotcr_11.117 + nop1.118 +test_rotr_2_input:1.119 + .long 0xC27091921.120 +test_rotr_2_result:1.121 + .long 0x613848C91.122 +1.123 +1.124 +test_rotcr_1:1.125 + add #1, r121.126 +1.127 + mov.l test_rotcr_1_input, r31.128 + mov.l test_rotcr_1_result, r41.129 + clrt1.130 + rotcr r31.131 + bf test_rotcr_1_fail1.132 + cmp/eq r3, r41.133 + bt test_rotcr_21.134 +test_rotcr_1_fail:1.135 + fail test_rot_str_k1.136 + bra test_rotcr_21.137 + nop1.138 +test_rotcr_1_input:1.139 + .long 0x94E123231.140 +test_rotcr_1_result:1.141 + .long 0x4A7091911.142 +1.143 +test_rotcr_2:1.144 + add #1, r121.145 + mov.l test_rotcr_2_input, r31.146 + mov.l test_rotcr_2_result, r41.147 + sett1.148 + rotcr r31.149 + bt test_rotcr_2_fail1.150 + cmp/eq r3, r41.151 + bt test_rot_end1.152 +test_rotcr_2_fail:1.153 + fail test_rot_str_k1.154 + bra test_rot_end1.155 + nop1.156 +test_rotcr_2_input:1.157 + .long 0xC27091921.158 +test_rotcr_2_result:1.159 + .long 0xE13848C91.160 +1.161 +1.162 +1.163 +1.164 +1.165 +test_rot_end:1.166 + end_test test_rot_str_k1.167 +1.168 +test_rot_str:1.169 + .string "ROT"1.170 +1.171 +.align 41.172 +test_rot_str_k:1.173 + .long test_rot_str1.174 +1.175 \ No newline at end of file
.