filename | test/sh4/and.s |
changeset | 226:0eeeb25447d3 |
next | 231:a9e61a96a885 |
author | nkeynes |
date | Sat Sep 23 10:35:29 2006 +0000 (17 years ago) |
permissions | -rw-r--r-- |
last change | SH4 tests: Add tests for addc, addv, and |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/sh4/and.s Sat Sep 23 10:35:29 2006 +00001.3 @@ -0,0 +1,87 @@1.4 +.section .text1.5 +.include "sh4/inc.s"1.6 +!1.7 +! Test AND Rm,Rn operation1.8 +!1.9 +.global _test_and1.10 +_test_and:1.11 + start_test1.12 + mov.l r11, @-r151.13 + mov.l test_and_data_k, r111.14 +1.15 +test_and_loop:1.16 + mov.l test_and_data_end_k, r41.17 + cmp/eq r11, r41.18 + bt test_and_end1.19 + add #1, r121.20 +1.21 + clc1.22 + mov.l @r11+, r01.23 + mov.l @r11+, r11.24 + and r0, r11.25 + stc sr, r41.26 + mov.l @r11+, r21.27 + mov.l @r11+, r31.28 + cmp/eq r1, r21.29 + bt test_and_b1.30 + fail test_and_str_k1.31 + bra test_and_loop1.32 + nop1.33 +test_and_b:1.34 + ldc r4, sr1.35 + xor r0, r01.36 + add #1, r01.37 + and r0, r41.38 + cmp/eq r3, r41.39 + bt test_and_loop1.40 + fail test_and_str_k1.41 + bra test_and_loop1.42 + nop1.43 +1.44 +test_and_end:1.45 + end_test test_and_str_k1.46 +1.47 + .align 41.48 +test_and_data_k:1.49 + .long test_and_data1.50 +test_and_data:1.51 +test_and_data_1:1.52 + .long 0xFFFFFFFF1.53 + .long 0x000000001.54 + .long 0x000000001.55 + .long 0x000000001.56 +1.57 + .long 0x555555551.58 + .long 0xAAAAAAAA1.59 + .long 0x000000001.60 + .long 0x000000001.61 +1.62 + .long 0xFFFFFFFF1.63 + .long 0xA5A5A5A51.64 + .long 0xA5A5A5A51.65 + .long 0x000000001.66 +1.67 + .long 0xFFFFFFFF1.68 + .long 0xFFFFFFFF1.69 + .long 0xFFFFFFFF1.70 + .long 0x000000001.71 +1.72 + .long 0x123456781.73 + .long 0x987654321.74 + .long 0x103454301.75 + .long 0x000000001.76 +1.77 + .long 0x00FFFFFF1.78 + .long 0x987654321.79 + .long 0x007654321.80 + .long 0x000000001.81 +1.82 +test_and_data_end:1.83 + .align 41.84 +test_and_data_end_k:1.85 + .long test_and_data_end1.86 +test_and_str_k:1.87 + .long test_and_str1.88 +test_and_str:1.89 + .string "AND"1.90 +1.91 \ No newline at end of file
.