filename | test/sh4/subv.s |
changeset | 1083:34895c8bab20 |
author | nkeynes |
date | Fri Dec 02 18:18:04 2011 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | SH4 shadow-mode tweaks - Fix exceptions generated by the translator to account for the excepting instruction(s) in the cycle counts. - Compare floating point regs bitwise rather than with FP comparisons (otherwise can fail due to nan != nan) - Dump the translated block when we abort with an inconsistency |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/sh4/subv.s Fri Dec 02 18:18:04 2011 +10001.3 @@ -0,0 +1,106 @@1.4 +.section .text1.5 +.include "sh4/inc.s"1.6 +1.7 +.global _test_subv1.8 +_test_subv:1.9 + start_test1.10 + mov.l r11, @-r151.11 + mov.l test_subv_data_k, r111.12 +1.13 +test_subv_loop:1.14 + mov.l test_subv_data_end_k, r41.15 + cmp/eq r11, r41.16 + bt test_subv_end1.17 + add #1, r121.18 +1.19 + clc1.20 + mov.l @r11+, r01.21 + mov.l @r11+, r11.22 + subv r0, r11.23 + stc sr, r41.24 + mov.l @r11+, r21.25 + mov.l @r11+, r31.26 + cmp/eq r1, r21.27 + bt test_subv_b1.28 + fail test_subv_str_k1.29 + bra test_subv_loop1.30 + nop1.31 +test_subv_b:1.32 + ldc r4, sr1.33 + xor r0, r01.34 + add #1, r01.35 + and r0, r41.36 + cmp/eq r3, r41.37 + bt test_subv_loop1.38 + fail test_subv_str_k1.39 + bra test_subv_loop1.40 + nop1.41 +1.42 +test_subv_end:1.43 + mov.l @r15+, r111.44 + end_test test_subv_str_k1.45 +1.46 + .align 41.47 +test_subv_data_k:1.48 + .long test_subv_data1.49 +test_subv_data:1.50 +test_subv_data_1:1.51 + .long 0x000000001.52 + .long 0x000000001.53 + .long 0x000000001.54 + .long 0x000000001.55 +1.56 + .long 0x0000000F1.57 + .long 0x7FFFFFFF1.58 + .long 0x7FFFFFF01.59 + .long 0x000000001.60 +1.61 + .long 0x0000000F1.62 + .long 0xFFFFFFFF1.63 + .long 0xFFFFFFF01.64 + .long 0x000000001.65 +1.66 + .long 0xFFFFFFF01.67 + .long 0xFFFFFFE01.68 + .long 0xFFFFFFF01.69 + .long 0x000000001.70 +1.71 + .long 0x000000401.72 + .long 0x000000201.73 + .long 0xFFFFFFE01.74 + .long 0x000000001.75 +1.76 + .long 0xFFFFFF801.77 + .long 0xFFFFFFB21.78 + .long 0x000000321.79 + .long 0x000000001.80 +1.81 + .long 0x000000011.82 + .long 0x800000001.83 + .long 0x7FFFFFFF1.84 + .long 0x000000011.85 +1.86 + .long 0xFFFFFFFF1.87 + .long 0x7FFFFFFF1.88 + .long 0x800000001.89 + .long 0x000000011.90 +1.91 + .long 0x987654321.92 + .long 0x30ECA8641.93 + .long 0x987654321.94 + .long 0x000000011.95 +1.96 + .long 0x432143211.97 + .long 0x864286421.98 + .long 0x432143211.99 + .long 0x000000011.100 +1.101 +test_subv_data_end:1.102 + .align 41.103 +test_subv_data_end_k:1.104 + .long test_subv_data_end1.105 +test_subv_str_k:1.106 + .long test_subv_str1.107 +test_subv_str:1.108 + .string "SUBV"1.109 +1.110 \ No newline at end of file
.