1 1.1 christos # cr16 testcase for loadmp count 2 1.1 christos # mach(): cr16 3 1.1 christos 4 1.1 christos .include "testutils.inc" 5 1.1 christos 6 1.1 christos start 7 1.1 christos 8 1.1 christos .global loadmp 9 1.1 christos loadmp: 10 1.1 christos movd $0x1000, (r1,r0) 11 1.1 christos movw $0x12, r2 12 1.1 christos storw r2, 0x1000 13 1.1 christos movw $0x34, r3 14 1.1 christos storw r3, 0x1002 15 1.1 christos movw $0x56, r4 16 1.1 christos storw r4, 0x1004 17 1.1 christos movw $0x78, r5 18 1.1 christos storw r5, 0x1006 19 1.1 christos 20 1.1 christos loadmp $4 21 1.1 christos 22 1.1 christos cmpw $0x12,r2 23 1.1 christos beq ok1 24 1.1 christos not_ok: 25 1.1 christos fail 26 1.1 christos ok1: 27 1.1 christos cmpw $0x34,r3 28 1.1 christos beq ok2 29 1.1 christos br not_ok 30 1.1 christos ok2: 31 1.1 christos cmpw $0x56,r4 32 1.1 christos beq ok3 33 1.1 christos br not_ok 34 1.1 christos ok3: 35 1.1 christos cmpw $0x78,r5 36 1.1 christos beq ok4 37 1.1 christos br not_ok 38 1.1 christos ok4: 39 1.1 christos pass 40 1.1 christos 41