jr.c 782 Bytes
/****************************************************************
  WHAT: RSP SCALAR UNIT Jxx INSTRUCTION TEST GENERATOR
  SCCS: @(#)jr.c	1.1 03 Aug 1994
  FILE:	jr.c
   WHO:	Project Reality - Evan Y. Wang
   (C):	1994 Silicon Graphics, Inc.
 ****************************************************************/
#include <stdio.h>
#include "software.h"
#include "gen.h"
#include "suregre.h"

#define	MAX_TCS	MAX_JR_TCS

#define GenCase()	fprintf(outp,JRTempl,CurTcNo,ip->name,rA,rT)

/*			   ChkJR(  n,Op,   rA,   rT); */
PRIVATE	char *JRTempl = "\tChkJR(%2d,%s,r%-2d,r%-2d)\n";

int JrGen(outp, ip)
    FILE *outp;
    I_TABLE *ip;
{
    int r = rT;

    do {
	FILE_SPLIT {
	    GenCase();
	    UpdRegID();
	}
    } while (CurTcNo++, r != rT);
    return CurTcNo = 0;

}   /* JGen */