Search
lxdream.org :: lxdream/test/sh4/bf.s :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/bf.s
changeset 231:a9e61a96a885
prev228:70adc8ffa8d1
next872:a3041742bb7d
author nkeynes
date Tue Sep 26 11:05:38 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add BT, BT/S, CMP/EQ, CMP/GE, CMP/GT, CMP/HI, CMP/HS tests
Add general slot-illegal exception test
file annotate diff log raw
1.1 --- a/test/sh4/bf.s Mon Sep 25 11:13:56 2006 +0000
1.2 +++ b/test/sh4/bf.s Tue Sep 26 11:05:38 2006 +0000
1.3 @@ -42,6 +42,7 @@
1.4 fail test_bf_str_k
1.5 bra test_bf_4
1.6 nop
1.7 +
1.8 test_bf_4: ! Test branch not taken w/ delay
1.9 add #1, r12
1.10 setc
1.11 @@ -74,19 +75,63 @@
1.12 bt test_bf_6
1.13 fail test_bf_str_k
1.14
1.15 -test_bf_6:
1.16 +test_bf_6: ! Test back-branch taken w/ delay
1.17 + add #1, r12
1.18 + clc
1.19 + xor r0, r0
1.20 + bra test_bf_6_b
1.21 + nop
1.22 + fail test_bf_str_k
1.23 + bra test_bf_7
1.24 + nop
1.25 + add #1, r13
1.26 +test_bf_6_c:
1.27 + mov #1, r1
1.28 + cmp/eq r0, r1
1.29 + bt test_bf_7
1.30 + fail test_bf_str_k
1.31 + bra test_bf_7
1.32 + nop
1.33 + fail test_bf_str_k
1.34 + bra test_bf_7
1.35 + nop
1.36 + add #1, r13
1.37 +test_bf_6_b:
1.38 + nop
1.39 + bf/s test_bf_6_c
1.40 + add #1, r0
1.41 + fail test_bf_str_k
1.42 + bra test_bf_7
1.43 + nop
1.44 +
1.45 +test_bf_7:
1.46 add #1, r12
1.47 expect_exc 0x000001A0 ! BF is slot illegal
1.48 -test_bf_6_exc:
1.49 - bra test_bf_6_b
1.50 - bf test_bf_6_b
1.51 - assert_exc_caught test_bf_str_k test_bf_6_exc
1.52 +test_bf_7_exc:
1.53 + bra test_bf_7_b
1.54 + bf test_bf_7_b
1.55 + assert_exc_caught test_bf_str_k test_bf_7_exc
1.56 + bra test_bf_8
1.57 + nop
1.58 +test_bf_7_b:
1.59 +test_bf_7_c:
1.60 + fail test_bf_str_k
1.61 +
1.62 +test_bf_8:
1.63 + add #1, r12
1.64 + expect_exc 0x000001A0 ! BF/S is slot illegal
1.65 +test_bf_8_exc:
1.66 + bra test_bf_8_b
1.67 + bf/s test_bf_8_b
1.68 + nop
1.69 + assert_exc_caught test_bf_str_k test_bf_8_exc
1.70 bra test_bf_end
1.71 nop
1.72 -test_bf_6_b:
1.73 -test_bf_6_c:
1.74 +test_bf_8_b:
1.75 +test_bf_8_c:
1.76 fail test_bf_str_k
1.77 -
1.78 +
1.79 +
1.80 test_bf_end:
1.81 end_test test_bf_str_k
1.82
.