//Original:/testcases/core/c_loopsetup_preg_div2_lc1/c_loopsetup_preg_div2_lc1.dsp // Spec Reference: loopsetup preg lc1 / 2 # mach: bfin .include "testutils.inc" start INIT_R_REGS 0; ASTAT = r0; P1 = 12; P2 = 14; P3 = 16; P4 = 18; P5 = 20; SP = 22; FP = 24; R0 = 0x05; R1 = 0x10; R2 = 0x20; R3 = 0x30; R4 = 0x40 (X); R5 = 0x50 (X); R6 = 0x60 (X); R7 = 0x70 (X); LSETUP ( start11 , end11 ) LC1 = P1 >> 1; start11: R0 += 1; R1 += -1; end11: R2 += 1; R3 += 1; LSETUP ( start12 , end12 ) LC1 = P2 >> 1; start12: R4 += 1; end12: R5 += -1; R3 += 1; LSETUP ( start13 , end13 ) LC1 = P3 >> 1; start13: R6 += 1; end13: R7 += -1; R3 += 1; CHECKREG r0, 0x0000000B; CHECKREG r1, 0x0000000A; CHECKREG r2, 0x00000026; CHECKREG r3, 0x00000033; CHECKREG r4, 0x00000047; CHECKREG r5, 0x00000049; CHECKREG r6, 0x00000068; CHECKREG r7, 0x00000068; R0 = 0x06; R1 = 0x10; R2 = 0x20; R3 = 0x30; R4 = 0x40 (X); R5 = 0x50 (X); R6 = 0x60 (X); R7 = 0x70 (X); LSETUP ( start14 , end14 ) LC1 = P4 >> 1; start14: R0 += 1; R1 += -1; end14: R2 += 1; R3 += 1; LSETUP ( start15 , end15 ) LC1 = P5 >> 1; start15: R4 += 1; end15: R5 += -1; R3 += 1; LSETUP ( start16 , end16 ) LC1 = SP >> 1; start16: R6 += 1; end16: R7 += -1; R3 += 1; CHECKREG r0, 0x0000000F; CHECKREG r1, 0x00000007; CHECKREG r2, 0x00000029; CHECKREG r3, 0x00000033; CHECKREG r4, 0x0000004A; CHECKREG r5, 0x00000046; CHECKREG r6, 0x0000006B; CHECKREG r7, 0x00000065; LSETUP ( start17 , end17 ) LC1 = FP >> 1; start17: R4 += 1; end17: R5 += -1; R3 += 1; CHECKREG r0, 0x0000000F; CHECKREG r1, 0x00000007; CHECKREG r2, 0x00000029; CHECKREG r3, 0x00000034; CHECKREG r4, 0x00000056; CHECKREG r5, 0x0000003A; CHECKREG r6, 0x0000006B; CHECKREG r7, 0x00000065; pass