1 1.1 christos # cr16 testcase for push count reg RA 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 push1 9 1.1 christos push1: 10 1.1 christos movd $0x100a, (sp) 11 1.1 christos movd $0xabcd, (ra) 12 1.1 christos movw $0x2f50, r5 13 1.1 christos movw $0x107e, r6 14 1.1 christos movw $0x35ed, r7 15 1.1 christos push $3,r5,RA 16 1.1 christos 17 1.1 christos loadw 0x1000, r3 18 1.1 christos cmpw r3,r5 19 1.1 christos beq ok1 20 1.1 christos br not_ok 21 1.1 christos not_ok: 22 1.1 christos fail 23 1.1 christos ok1: 24 1.1 christos loadw 0x1002, r3 25 1.1 christos cmpw r3,r6 26 1.1 christos beq ok2 27 1.1 christos br not_ok 28 1.1 christos ok2: 29 1.1 christos loadw 0x1004, r3 30 1.1 christos cmpw r3,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 loadd 0x1006, (r3,r2) 36 1.1 christos cmpd (r3,r2), (ra) 37 1.1 christos beq ok4 38 1.1 christos br not_ok 39 1.1 christos 40 1.1 christos ok4: 41 1.1 christos pass 42