filename | test/sh4/trapa.s |
changeset | 533:9764673fd4a5 |
author | nkeynes |
date | Thu Dec 23 17:50:10 2010 +1000 (13 years ago) |
permissions | -rw-r--r-- |
last change | Clone iso_memory_stream_new() as iso_mem_stream_new(), since current versions of libisofs have made it unlinkable on linux |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/sh4/trapa.s Thu Dec 23 17:50:10 2010 +10001.3 @@ -0,0 +1,36 @@1.4 +.section .text1.5 +.include "sh4/inc.s"1.6 +1.7 +.global _test_trapa1.8 +_test_trapa:1.9 + start_test1.10 +1.11 +test_trapa_1:1.12 + add #1, r121.13 + expect_exc 0x000001601.14 + trapa #421.15 +1.16 +test_trapa_1_pc:1.17 + assert_exc_caught test_trapa_str_k test_trapa_1_pc1.18 +1.19 + mov.l test_trapa_tra, r11.20 + mov.l @r1, r21.21 + mov #42, r01.22 + shll r01.23 + shll r01.24 + cmp/eq r0, r21.25 + bt test_trapa_end1.26 + fail test_trapa_str_k1.27 + bra test_trapa_end1.28 + nop1.29 +1.30 +test_trapa_tra:1.31 + .long 0xFF0000201.32 +1.33 +test_trapa_end:1.34 + end_test test_trapa_str_k1.35 +1.36 +test_trapa_str_k:1.37 + .long test_trapa_str1.38 +test_trapa_str:1.39 + .string "TRAPA"
.