target-xtensa: test cross-page opcode

Alter cross-page TB test to also test cross-page opcode.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
Max Filippov 2014-12-14 08:23:52 +03:00
parent 01673a3401
commit 85d36377e4

View File

@ -641,7 +641,7 @@ test cross_page_tb
witlb a2, a3 witlb a2, a3
wdtlb a2, a3 wdtlb a2, a3
movi a2, 0x00007ffd movi a2, 0x00007ffc
movi a3, 20f movi a3, 20f
movi a4, 21f movi a4, 21f
sub a4, a4, a3 sub a4, a4, a3
@ -651,7 +651,7 @@ test cross_page_tb
addi a2, a2, 1 addi a2, a2, 1
addi a3, a3, 1 addi a3, a3, 1
1: 1:
movi a2, 0x00007ffd movi a2, 0x00007ffc
movi a3, 0x00008000 movi a3, 0x00008000
/* DTLB: OK, ITLB: OK */ /* DTLB: OK, ITLB: OK */
jx a2 jx a2
@ -668,10 +668,10 @@ test cross_page_tb
movi a3, 1 movi a3, 1
assert eq, a2, a3 assert eq, a2, a3
rsr a2, epc1 rsr a2, epc1
movi a3, 0x8000 movi a3, 0x7fff
assert eq, a2, a3 assert eq, a2, a3
rsr a2, excsave1 rsr a2, excsave1
movi a3, 0x00007ffd movi a3, 0x00007ffc
assert ne, a2, a3 assert ne, a2, a3
reset_ps reset_ps
@ -680,7 +680,7 @@ test cross_page_tb
movi a2, 0x0400000c /* PPN */ movi a2, 0x0400000c /* PPN */
movi a3, 0x00008000 /* VPN */ movi a3, 0x00008000 /* VPN */
wdtlb a2, a3 wdtlb a2, a3
movi a2, 0x00007ffd movi a2, 0x00007ffc
movi a3, 0x00008000 movi a3, 0x00008000
/* DTLB: FAIL, ITLB: OK */ /* DTLB: FAIL, ITLB: OK */
jx a2 jx a2
@ -689,10 +689,10 @@ test cross_page_tb
movi a3, 28 movi a3, 28
assert eq, a2, a3 assert eq, a2, a3
rsr a2, epc1 rsr a2, epc1
movi a3, 0x7ffd movi a3, 0x7ffc
assert eq, a2, a3 assert eq, a2, a3
rsr a2, excsave1 rsr a2, excsave1
movi a3, 0x00007ffd movi a3, 0x00007ffc
assert eq, a2, a3 assert eq, a2, a3
reset_ps reset_ps
@ -703,7 +703,7 @@ test cross_page_tb
witlb a2, a3 witlb a2, a3
movi a2, 0x04000003 /* PPN */ movi a2, 0x04000003 /* PPN */
wdtlb a2, a3 wdtlb a2, a3
movi a2, 0x00007ffd movi a2, 0x00007ffc
movi a3, 0x00008000 movi a3, 0x00008000
/* DTLB: OK, ITLB: FAIL */ /* DTLB: OK, ITLB: FAIL */
jx a2 jx a2
@ -712,10 +712,10 @@ test cross_page_tb
movi a3, 20 movi a3, 20
assert eq, a2, a3 assert eq, a2, a3
rsr a2, epc1 rsr a2, epc1
movi a3, 0x8000 movi a3, 0x7fff
assert eq, a2, a3 assert eq, a2, a3
rsr a2, excsave1 rsr a2, excsave1
movi a3, 0x00007ffd movi a3, 0x00007ffc
assert ne, a2, a3 assert ne, a2, a3
reset_ps reset_ps
@ -724,7 +724,7 @@ test cross_page_tb
movi a2, 0x0400000c /* PPN */ movi a2, 0x0400000c /* PPN */
movi a3, 0x00008000 /* VPN */ movi a3, 0x00008000 /* VPN */
wdtlb a2, a3 wdtlb a2, a3
movi a2, 0x00007ffd movi a2, 0x00007ffc
movi a3, 0x00008000 movi a3, 0x00008000
/* DTLB: FAIL, ITLB: FAIL */ /* DTLB: FAIL, ITLB: FAIL */
jx a2 jx a2
@ -733,10 +733,10 @@ test cross_page_tb
movi a3, 28 movi a3, 28
assert eq, a2, a3 assert eq, a2, a3
rsr a2, epc1 rsr a2, epc1
movi a3, 0x7ffd movi a3, 0x7ffc
assert eq, a2, a3 assert eq, a2, a3
rsr a2, excsave1 rsr a2, excsave1
movi a3, 0x00007ffd movi a3, 0x00007ffc
assert eq, a2, a3 assert eq, a2, a3
test_end test_end