1 1.1 christos # cr16 testcase for pop count reg insns. 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 pop2 9 1.1 christos pop2: 10 1.1 christos movd $0x1000, (sp) 11 1.1 christos movw $0x2f50, r3 12 1.1 christos storw r3, 0x1000 13 1.1 christos movw $0x107e, r3 14 1.1 christos storw r3, 0x1002 15 1.1 christos movw $0x35ec, r3 16 1.1 christos storw r3, 0x1004 17 1.1 christos 18 1.1 christos pop $3,r5 19 1.1 christos 20 1.1 christos cmpw $0x2f50,r5 21 1.1 christos beq ok1 22 1.1 christos br not_ok 23 1.1 christos not_ok: 24 1.1 christos fail 25 1.1 christos ok1: 26 1.1 christos cmpw $0x107e,r6 27 1.1 christos beq ok2 28 1.1 christos br not_ok 29 1.1 christos ok2: 30 1.1 christos cmpw $0x35ec,r7 31 1.1 christos beq ok3 32 1.1 christos br not_ok 33 1.1 christos 34 1.1 christos ok3: 35 1.1 christos pass 36