ilinstr.c
1.25 KB
/************************************************************************
WHAT: RSP SCALAR UNIT BYPASS VERIFICATION TEST PROGRAM GENERATOR
SCCS: %W% %G%
PTLS: $Id: ilinstr.c,v 1.1.1.1 2002/10/29 08:07:08 blythe Exp $
ENGR: Evan Y. Wang
PROJ: Project Reality
(CR): 1994 Silicon Graphics, Inc.
************************************************************************/
#include <stdio.h>
#include <math.h>
#include "software.h"
#include "ilgen.h"
ITABLE I1Table[] = {
{ "\tvaddc\t$v%d,\t$v%d,\t$v%d\n",OP_VADD, ARG_VVV, 0, 0x01 },
{ "\tlqv\t$v%d,\t0($%d)\n", OP_LQV, ARG_VR, 0, 0x02 },
{ "\tmtc2\t$%d,\t$v%d\n", OP_MTC2, ARG_RV, 0, 0x04 },
{ "\tctc2\t$%d,\t$v0\n", OP_CTC2, ARG_R, 0, 0x08 },
{ "\tltv\t$v%d[0],\t0($%d)\n", OP_LTV, ARG_VR, 0, 0x10 },
};
int I1TableSize = sizeof(I1Table)/sizeof(I1Table[0]);
ITABLE I2Table[] = {
{ "\tvadd\t$v%d,\t$v%d,\t$v%d\n", OP_VADD, ARG_VVV, 0, 0xFF },
{ "\tsqv\t$v%d,\t0($%d)\n", OP_SQV, ARG_VR, 0, 0xFF },
{ "\tmfc2\t$%d,\t$v%d\n", OP_MFC2, ARG_RV, 0, 0xFF },
{ "\tcfc2\t$%d,\t$v0\n", OP_CFC2, ARG_R, 0, 0xFF },
{ "\tstv\t$v%d[0],\t0($%d)\n", OP_STV, ARG_VR, 0, 0xFF },
};
int I2TableSize = sizeof(I2Table)/sizeof(I2Table[0]);