filename | test/sh4/excslot.s |
changeset | 358:65043a8f5785 |
prev | 357:3592a10b3242 |
author | nkeynes |
date | Mon Dec 21 08:23:54 2009 +1000 (14 years ago) |
permissions | -rw-r--r-- |
last change | Fix symbol output in 64-bit disassembly Add sh4_translate_dump_block(pc) function |
file | annotate | diff | log | raw |
1.1 --- a/test/sh4/excslot.s Tue Feb 13 08:34:27 2007 +00001.2 +++ b/test/sh4/excslot.s Mon Dec 21 08:23:54 2009 +10001.3 @@ -169,16 +169,39 @@1.4 .word 0xFFFD1.5 assert_exc_caught test_slot_str_k test_slot_17_pc1.7 +test_slot_18: ! "Undefined (FPU disabled)" 0xFFFD1.8 + add #1, r121.9 + stc sr, r01.10 + xor r1, r11.11 + add #32, r11.12 + shll2 r11.13 + shll8 r11.14 + or r0, r11.15 + ldc r1, sr1.16 + expect_exc 0x000001A01.17 +test_slot_18_pc:1.18 + bsr test_slot_fail1.19 + .word 0xFFFD1.20 + assert_exc_caught test_slot_str_k test_slot_18_pc1.21 + stc sr, r01.22 + xor r1, r11.23 + add #32, r11.24 + shll2 r11.25 + shll8 r11.26 + not r1, r11.27 + and r0, r11.28 + ldc r1, sr1.29 +1.30 !1.31 ! Ok now the privilege tests. These should raise SLOT_ILLEGAL when executed1.32 ! in a delay slot (otherwise it's GENERAL_ILLEGAL)1.34 -test_slot_18: ! LDC Rn, SPC in user mode1.35 +test_slot_19: ! LDC Rn, SPC in user mode1.36 ! add #1, r121.37 ! expect_exc 0x000001A01.38 ! stc spc, r41.39 ! usermode1.40 -!test_slot_18_pc:1.41 +!test_slot_19_pc:1.42 ! bsr test_slot_fail1.43 ! ldc r4, spc1.44 ! systemmode
.