Home | History | Annotate | Line # | Download | only in bfin
      1 //Original:/testcases/core/c_progctrl_jump_pcpr/c_progctrl_jump_pcpr.dsp
      2 // Spec Reference: progctrl jump pc+pr
      3 # mach: bfin
      4 
      5 .include "testutils.inc"
      6 	start
      7 
      8 
      9 INIT_R_REGS 0;
     10 
     11 ASTAT = r0;
     12 
     13  P2 = 0x0004;
     14 
     15 JMP:
     16  JUMP ( PC + P2 );
     17 // jump JMP;
     18 
     19 STOP:
     20 JUMP.S END;
     21 
     22 LAB1:
     23  P2 = 0x000c;
     24  R1 = 0x1111 (X);
     25 JUMP.S JMP;
     26 
     27 LAB2:
     28  P2 = 0x0014;
     29  R2 = 0x2222 (X);
     30 JUMP.S JMP;
     31 
     32 LAB3:
     33  P2 = 0x001c;
     34  R3 = 0x3333 (X);
     35 JUMP.S JMP;
     36 
     37 LAB4:
     38  P2 = 0x0024;
     39  R4 = 0x4444 (X);
     40 JUMP.S JMP;
     41 
     42 LAB5:
     43  P2 = 0x0002;
     44  R5 = 0x5555 (X);
     45 JUMP.S JMP;
     46 
     47 END:
     48 
     49 CHECKREG r0, 0x00000000;
     50 CHECKREG r1, 0x00001111;
     51 CHECKREG r2, 0x00002222;
     52 CHECKREG r3, 0x00003333;
     53 CHECKREG r4, 0x00004444;
     54 CHECKREG r5, 0x00005555;
     55 CHECKREG r6, 0x00000000;
     56 CHECKREG r7, 0x00000000;
     57 
     58 pass
     59