|
|
Power 6/32 Unix version 1.21
#include "fpp_defs.h"
/*****************************************************************************
*
* PIPELINE TEST #6 MONITOR
*
* This test will do:
*
* LDF(0) ADDF(y) STF CVLF(x) SUBF(0) STF
*
* where x is the fmacro1 CVLF data, and y is the expected result of the CVLF.
* This test verifies the CVLF after the STF and the SUBF after the CVLF.
*****************************************************************************/
pipe_6()
{
asm(".globl _pipeline_6_t");
asm("_pipeline_6_t:"); /* entry address */
if( (cycle == 1) && (prt_hdrs) ) /* print headers on 1st cycle */
{
writes(" PIPE_6 ");
}
subtest = 1;
pipe6_1(); /* data in REGs, no NOPs */
subtest++; /* increment subtest num */
pipe6_2(); /* data in REGs, 1 NOP */
subtest++; /* increment subtest num */
pipe6_3(); /* data in REGs, 2 NOPs */
subtest++; /* increment subtest num */
pipe6_4(); /* data in REGs, 3 NOPs */
subtest++; /* increment subtest num */
pipe6_5(); /* data in CACHE, no NOPs */
subtest++; /* increment subtest num */
pipe6_6(); /* data in CACHE, 1 NOP */
subtest++; /* increment subtest num */
pipe6_7(); /* data in CACHE, 2 NOPs */
subtest++; /* increment subtest num */
pipe6_8(); /* data in CACHE, 3 NOPs */
subtest++; /* increment subtest num */
pipe6_9(); /* data on STACK, no NOPs */
subtest++; /* increment subtest num */
pipe6_10(); /* data via FP no NOPs */
asm("jmp *return"); /* return to the test monitor */
}
/************************************************************************
*
* SUBTEST 1
* data in registers, no NO-OPs
*
************************************************************************/
pipe6_1()
{
force_loop = FALSE; /* clear the force_loop flag */
index = 0;
do
{
sgl_value_1 = cvlf_1_data[index].ld; /* get operand 1 */
sgl_expected = cvlf_1_data[index].exp; /* get expected results */
sgl_value_2 = 0; /* floating '0' */
/*
* If LOOP ON ERROR is set, this is the loop for this subtest.
* The force loop flag is set after the first error.
*/
asm("_pipe6_1_lp1:");
asm("movl _sgl_value_1,r4"); /* move the data to r4 */
asm("movl _sgl_value_2,r5"); /* move data to r5 */
asm("movl _sgl_expected,r6"); /* save the expected result*/
asm("ldf r5"); /* load a floating '0' */
asm("addf r6"); /* add the expected value */
asm("stf r7"); /* store the result */
asm("cvlf r4"); /* convert the operand */
asm("subf r5"); /* subtract a floating '0' */
asm("stf r8"); /* store the result */
if( force_loop )
asm("brb _pipe6_1_lp1");; /* loop on the error */
/*
* verify the results
*/
asm("movl r7,_sgl_st_acc"); /* get the 1st store value */
asm("movl r8,_sgl_value_6"); /* get the 2nd store value */
if( (sgl_st_acc != sgl_expected) || /* COMPARE the values */
(sgl_value_6 != sgl_expected) )
{
errcnt++; /* bump the error count */
if ( prt_error )
print_pipe6_er("Reg. Data, no NO-OPs");
if ( halt_flg ) /* halt on error? */
pipe6_er_hlt( subtest );
if ( loop_on_err ) {
force_loop = TRUE; /* set the force loop flag */
asm("jmp _pipe6_1_lp1"); /* and loop */
}
} /* end of compare error */
} while( index++ < max_cvlf_1_index );
} /* end of subtest 1 */
/************************************************************************
*
* SUBTEST 2
* data in registers, 1 NO-OP
*
************************************************************************/
pipe6_2()
{
force_loop = FALSE; /* clear the force_loop flag */
index = 0;
do
{
sgl_value_1 = cvlf_1_data[index].ld; /* get operand 1 */
sgl_expected = cvlf_1_data[index].exp; /* get expected results */
sgl_value_2 = 0x00000000; /* floating '0' */
/*
* If LOOP ON ERROR is set, this is the loop for this subtest.
* The force loop flag is set after the first error.
*/
asm("_pipe6_2_lp1:");
asm("movl _sgl_value_1,r4"); /* move the data to r4 */
asm("movl _sgl_value_2,r5"); /* move data to r5 */
asm("movl _sgl_expected,r6"); /* save the expected result*/
asm("ldf r5"); /* load a floating '0' */
asm("nop");
asm("addf r6"); /* add the expected value */
asm("nop");
asm("stf r7"); /* store the result */
asm("nop");
asm("cvlf r4"); /* convert the operand */
asm("nop");
asm("subf r5"); /* subtract a floating '0' */
asm("nop");
asm("stf r8"); /* store the result */
if( force_loop )
asm("brb _pipe6_2_lp1");; /* loop on the error */
/*
* verify the results
*/
asm("movl r7,_sgl_st_acc"); /* get the 1st store value */
asm("movl r8,_sgl_value_6"); /* get the 2nd store value */
if( (sgl_st_acc != sgl_expected) || /* COMPARE the values */
(sgl_value_6 != sgl_expected) )
{
errcnt++; /* bump the error count */
if ( prt_error )
print_pipe6_er("Reg. Data, 1 NO-OP");
if ( halt_flg ) /* halt on error? */
pipe6_er_hlt( subtest );
if ( loop_on_err ) {
force_loop = TRUE; /* set the force loop flag */
asm("jmp _pipe6_2_lp1"); /* and loop */
}
} /* end of compare error */
} while( index++ < max_cvlf_1_index );
} /* end of subtest 2 */
/************************************************************************
*
* SUBTEST 3
* data in registers, 2 NO-OPs
*
************************************************************************/
pipe6_3()
{
force_loop = FALSE; /* clear the force_loop flag */
index = 0;
do
{
sgl_value_1 = cvlf_1_data[index].ld; /* get operand 1 */
sgl_expected = cvlf_1_data[index].exp; /* get expected results */
sgl_value_2 = 0x00000000; /* floating '0' */
/*
* If LOOP ON ERROR is set, this is the loop for this subtest.
* The force loop flag is set after the first error.
*/
asm("_pipe6_3_lp1:");
asm("movl _sgl_value_1,r4"); /* move the data to r4 */
asm("movl _sgl_value_2,r5"); /* move data to r5 */
asm("movl _sgl_expected,r6"); /* save the expected result*/
asm("ldf r5"); /* load a floating '0' */
asm("nop");
asm("nop");
asm("addf r6"); /* add the expected value */
asm("nop");
asm("nop");
asm("stf r7"); /* store the result */
asm("nop");
asm("nop");
asm("cvlf r4"); /* convert the operand */
asm("nop");
asm("nop");
asm("subf r5"); /* subtract a floating '0' */
asm("nop");
asm("nop");
asm("stf r8"); /* store the result */
if( force_loop )
asm("brb _pipe6_3_lp1");; /* loop on the error */
/*
* verify the results
*/
asm("movl r7,_sgl_st_acc"); /* get the 1st store value */
asm("movl r8,_sgl_value_6"); /* get the 2nd store value */
if( (sgl_st_acc != sgl_expected) || /* COMPARE the values */
(sgl_value_6 != sgl_expected) )
{
errcnt++; /* bump the error count */
if ( prt_error )
print_pipe6_er("Reg. Data, 2 NO-OPs");
if ( halt_flg ) /* halt on error? */
pipe6_er_hlt( subtest );
if ( loop_on_err ) {
force_loop = TRUE; /* set the force loop flag */
asm("jmp _pipe6_3_lp1"); /* and loop */
}
} /* end of compare error */
} while( index++ < max_cvlf_1_index );
} /* end of subtest 3 */
/************************************************************************
*
* SUBTEST 4
* data in registers, 3 NO-OPs
*
************************************************************************/
pipe6_4()
{
force_loop = FALSE; /* clear the force_loop flag */
index = 0;
do
{
sgl_value_1 = cvlf_1_data[index].ld; /* get operand 1 */
sgl_expected = cvlf_1_data[index].exp; /* get expected results */
sgl_value_2 = 0x00000000; /* floating '0' */
/*
* If LOOP ON ERROR is set, this is the loop for this subtest.
* The force loop flag is set after the first error.
*/
asm("_pipe6_4_lp1:");
asm("movl _sgl_value_1,r4"); /* move the data to r4 */
asm("movl _sgl_value_2,r5"); /* move data to r5 */
asm("movl _sgl_expected,r6"); /* save the expected result*/
asm("ldf r5"); /* load a floating '0' */
asm("nop");
asm("nop");
asm("nop");
asm("addf r6"); /* add the expected value */
asm("nop");
asm("nop");
asm("nop");
asm("stf r7"); /* store the result */
asm("nop");
asm("nop");
asm("nop");
asm("cvlf r4"); /* convert the operand */
asm("nop");
asm("nop");
asm("nop");
asm("subf r5"); /* subtract a floating '0' */
asm("nop");
asm("nop");
asm("nop");
asm("stf r8"); /* store the result */
if( force_loop )
asm("brb _pipe6_4_lp1");; /* loop on the error */
/*
* verify the results
*/
asm("movl r7,_sgl_st_acc"); /* get the 1st store value */
asm("movl r8,_sgl_value_6"); /* get the 2nd store value */
if( (sgl_st_acc != sgl_expected) || /* COMPARE the values */
(sgl_value_6 != sgl_expected) )
{
errcnt++; /* bump the error count */
if ( prt_error )
print_pipe6_er("Reg. Data, 3 NO-OPs");
if ( halt_flg ) /* halt on error? */
pipe6_er_hlt( subtest );
if ( loop_on_err ) {
force_loop = TRUE; /* set the force loop flag */
asm("jmp _pipe6_4_lp1"); /* and loop */
}
} /* end of compare error */
} while( index++ < max_cvlf_1_index );
} /* end of subtest 4 */
/************************************************************************
*
* SUBTEST 5
* data in Cache, no NO-OPs
*
************************************************************************/
pipe6_5()
{
force_loop = FALSE; /* clear the force_loop flag */
index = 0;
do
{
sgl_value_1 = cvlf_1_data[index].ld; /* get operand 1 */
sgl_expected = cvlf_1_data[index].exp; /* get expected results */
sgl_value_2 = 0x00000000; /* floating '0' */
/*
* If LOOP ON ERROR is set, this is the loop for this subtest.
* The force loop flag is set after the first error.
*/
asm("_pipe6_5_lp1:");
asm("ldf _sgl_value_2"); /* load a floating '0' */
asm("addf _sgl_expected"); /* add the expected value */
asm("stf _sgl_st_acc"); /* store the result */
asm("cvlf _sgl_value_1"); /* convert the int operand */
asm("subf _sgl_value_2"); /* subtract a floating '0' */
asm("stf _sgl_value_6"); /* store the result */
if( force_loop )
asm("brb _pipe6_5_lp1");; /* loop on the error */
/*
* verify the results
*/
if( (sgl_st_acc != sgl_expected) || /* COMPARE the values */
(sgl_value_6 != sgl_expected) )
{
errcnt++; /* bump the error count */
if ( prt_error )
print_pipe6_er("Cache Data, no NO-OPs");
if ( halt_flg ) /* halt on error? */
pipe6_er_hlt( subtest );
if ( loop_on_err ) {
force_loop = TRUE; /* set the force loop flag */
asm("jmp _pipe6_5_lp1"); /* and loop */
}
} /* end of compare error */
} while( index++ < max_cvlf_1_index );
} /* end of subtest 5 */
/************************************************************************
*
* SUBTEST 6
* data in Cache, 1 NO-OP
*
************************************************************************/
pipe6_6()
{
force_loop = FALSE; /* clear the force_loop flag */
index = 0;
do
{
sgl_value_1 = cvlf_1_data[index].ld; /* get operand 1 */
sgl_expected = cvlf_1_data[index].exp; /* get expected results */
sgl_value_2 = 0x00000000; /* floating '0' */
/*
* If LOOP ON ERROR is set, this is the loop for this subtest.
* The force loop flag is set after the first error.
*/
asm("_pipe6_6_lp1:");
asm("ldf _sgl_value_2"); /* load a floating '0' */
asm("nop");
asm("addf _sgl_expected"); /* add the expected value */
asm("nop");
asm("stf _sgl_st_acc"); /* store the result */
asm("nop");
asm("cvlf _sgl_value_1"); /* convert the int operand */
asm("nop");
asm("subf _sgl_value_2"); /* subtract a floating '0' */
asm("nop");
asm("stf _sgl_value_6"); /* store the result */
if( force_loop )
asm("brb _pipe6_6_lp1");; /* loop on the error */
/*
* verify the results
*/
if( (sgl_st_acc != sgl_expected) || /* COMPARE the values */
(sgl_value_6 != sgl_expected) )
{
errcnt++; /* bump the error count */
if ( prt_error )
print_pipe6_er("Cache Data, 1 NO-OP");
if ( halt_flg ) /* halt on error? */
pipe6_er_hlt( subtest );
if ( loop_on_err ) {
force_loop = TRUE; /* set the force loop flag */
asm("jmp _pipe6_6_lp1"); /* and loop */
}
} /* end of compare error */
} while( index++ < max_cvlf_1_index );
} /* end of subtest 6 */
/************************************************************************
*
* SUBTEST 7
* data in Cache, 2 NO-OPs
*
************************************************************************/
pipe6_7()
{
force_loop = FALSE; /* clear the force_loop flag */
index = 0;
do
{
sgl_value_1 = cvlf_1_data[index].ld; /* get operand 1 */
sgl_expected = cvlf_1_data[index].exp; /* get expected results */
sgl_value_2 = 0x00000000; /* floating '0' */
/*
* If LOOP ON ERROR is set, this is the loop for this subtest.
* The force loop flag is set after the first error.
*/
asm("_pipe6_7_lp1:");
asm("ldf _sgl_value_2"); /* load a floating '0' */
asm("nop");
asm("nop");
asm("addf _sgl_expected"); /* add the expected value */
asm("nop");
asm("nop");
asm("stf _sgl_st_acc"); /* store the result */
asm("nop");
asm("nop");
asm("cvlf _sgl_value_1"); /* convert the int operand */
asm("nop");
asm("nop");
asm("subf _sgl_value_2"); /* subtract a floating '0' */
asm("nop");
asm("nop");
asm("stf _sgl_value_6"); /* store the result */
if( force_loop )
asm("brb _pipe6_7_lp1");; /* loop on the error */
/*
* verify the results
*/
if( (sgl_st_acc != sgl_expected) || /* COMPARE the values */
(sgl_value_6 != sgl_expected) )
{
errcnt++; /* bump the error count */
if ( prt_error )
print_pipe6_er("Cache Data, 2 NO-OPs");
if ( halt_flg ) /* halt on error? */
pipe6_er_hlt( subtest );
if ( loop_on_err ) {
force_loop = TRUE; /* set the force loop flag */
asm("jmp _pipe6_7_lp1"); /* and loop */
}
} /* end of compare error */
} while( index++ < max_cvlf_1_index );
} /* end of subtest 7 */
/************************************************************************
*
* SUBTEST 8
* data in Cache, 3 NO-OPs
*
************************************************************************/
pipe6_8()
{
force_loop = FALSE; /* clear the force_loop flag */
index = 0;
do
{
sgl_value_1 = cvlf_1_data[index].ld; /* get operand 1 */
sgl_expected = cvlf_1_data[index].exp; /* get expected results */
sgl_value_2 = 0x00000000; /* floating '0' */
/*
* If LOOP ON ERROR is set, this is the loop for this subtest.
* The force loop flag is set after the first error.
*/
asm("_pipe6_8_lp1:");
asm("ldf _sgl_value_2"); /* load a floating '0' */
asm("nop");
asm("nop");
asm("nop");
asm("addf _sgl_expected"); /* add the expected value */
asm("nop");
asm("nop");
asm("nop");
asm("stf _sgl_st_acc"); /* store the result */
asm("nop");
asm("nop");
asm("nop");
asm("cvlf _sgl_value_1"); /* convert the int operand */
asm("nop");
asm("nop");
asm("nop");
asm("subf _sgl_value_2"); /* subtract a floating '0' */
asm("nop");
asm("nop");
asm("nop");
asm("stf _sgl_value_6"); /* store the result */
if( force_loop )
asm("brb _pipe6_8_lp1");; /* loop on the error */
/*
* verify the results
*/
if( (sgl_st_acc != sgl_expected) || /* COMPARE the values */
(sgl_value_6 != sgl_expected) )
{
errcnt++; /* bump the error count */
if ( prt_error )
print_pipe6_er("Cache Data, 3 NO-OPs");
if ( halt_flg ) /* halt on error? */
pipe6_er_hlt( subtest );
if ( loop_on_err ) {
force_loop = TRUE; /* set the force loop flag */
asm("jmp _pipe6_8_lp1"); /* and loop */
}
} /* end of compare error */
} while( index++ < max_cvlf_1_index );
} /* end of subtest 8 */
/*****************************************************************************
*
* SUBTEST 9
* data on the stack, no NO-OPs
*
*****************************************************************************/
pipe6_9()
{
asm("moval (r13),_pre_event_fp"); /* save the frame pointer */
asm("moval (r14),_pre_event_sp"); /* save the stack pointer */
force_loop = FALSE; /* clear the force_loop flag */
index = 0;
do
{
sgl_value_1 = cvlf_1_data[index].ld; /* get operand 1 */
sgl_expected = cvlf_1_data[index].exp; /* get expected results */
sgl_value_2 = 0x00000000; /* floating '0' */
asm("moval _pointer_data,_sgl_value_4");/* init / final SP value */
/*
* If LOOP ON ERROR is set, this is the loop for this subtest.
* The force loop flag is set after the first error.
*/
asm("_pipe6_9_lp1:");
asm("moval _pointer_data,r14"); /* set the stack pointer */
asm("movl _sgl_value_2,-(r14)"); /* push a floating '0' */
asm("movl _sgl_value_1,-(r14)"); /* push the operand */
asm("movl _sgl_expected,-(r14)"); /* push the expected result*/
asm("movl _sgl_value_2,-(r14)"); /* push a floating '0' */
/*
* now pop the data off the stack
*/
asm("ldf (r14)+"); /* load the '0' value */
asm("addf (r14)+"); /* add the expected result */
asm("stf r5"); /* store the result */
asm("cvlf (r14)+"); /* convert the integer op */
asm("subf (r14)+"); /* subtract a floating '0' */
asm("stf r6"); /* store the result */
if( force_loop )
asm("brb _pipe6_9_lp1");; /* loop on the error */
/*
* verify the results
*/
asm("movl r5,_sgl_st_acc"); /* get the 1st store value */
asm("movl r6,_sgl_value_6"); /* get the 2nd store value */
asm("moval (r14),_sgl_value_5"); /* save the stack pointer */
if( (sgl_st_acc != sgl_expected) || /* verify the results... */
(sgl_value_6 != sgl_expected) ||
(sgl_value_5 != sgl_value_4) ) /* ... and the final SP */
{
asm("movl _pre_event_fp,r13"); /* restore frame pointer */
asm("movl _pre_event_sp,r14"); /* restore stack pointer */
errcnt++; /* bump the error count */
if ( prt_error ) {
print_pipe4_er("POP data from the STACK");
writes("final Stack Pointer = ");
write32h( sgl_value_5 );
writes(", expected SP = ");
write32h( sgl_value_4 );
writes("\n");
}
if ( halt_flg ) /* halt on error? */
pipe6_er_hlt( subtest );
if ( loop_on_err ) {
force_loop = TRUE; /* set the force loop flag */
asm("jmp _pipe6_9_lp1"); /* and loop */
}
} /* end of compare error */
} while( index++ < max_cvlf_1_index );
asm("movl _pre_event_fp,r13"); /* restore the frame pointer */
asm("movl _pre_event_sp,r14"); /* restore the stack pointer */
} /* end of subtest 9 */
/******************************************************************************
*
* SUBTEST 10
* get data via indexed FRAME pointer
*
* ADDR INDEX DATA
* pointer_data 4 <the 1st STF result goes here>
* pointer_data-4 3 <the 2nd STF result goes here>
* pointer_data-8 2 <integer operand>
* pointer_data-12 1 <floating '0'>
* pointer_data-16 0 <floating operand> ( point FP here )
*
******************************************************************************/
pipe6_10()
{
asm("moval (r13),_pre_event_fp"); /* save the frame pointer */
asm("moval (r14),_pre_event_sp"); /* save the stack pointer */
force_loop = FALSE; /* clear the force_loop flag */
index = 0;
do
{
sgl_value_1 = cvlf_1_data[index].ld; /* get operand 1 */
sgl_expected = cvlf_1_data[index].exp; /* get expected results */
sgl_value_2 = 0x00000000; /* floating '0' */
asm("moval _pointer_data,_sgl_value_4"); /* get store data's addr */
sgl_value_4 -= 8; /* decrement it by 8 (bytes)*/
asm("movl _sgl_value_1,*_sgl_value_4"); /* set the integer op. */
sgl_value_4 -= 4; /* decrement it by 4 (bytes)*/
asm("movl _sgl_value_2,*_sgl_value_4"); /* set the floating '0' */
sgl_value_4 -= 4; /* get FRAME PTR address */
asm("movl _sgl_expected,*_sgl_value_4"); /* set the floating op. */
/*
* If LOOP ON ERROR is set, this is the loop for this subtest.
* The force loop flag is set after the first error.
*/
asm("_pipe6_10_lp1:");
asm("movl _sgl_value_4,r13"); /* set the FRAME POINTER */
asm("movl $1,r1"); /* r1 index = 1 ( '0' ) */
asm("movl $2,r2"); /* r2 index = 2 (int. op.) */
asm("movl $3,r3"); /* r3 index = 3 (2nd store) */
asm("movl $4,r4"); /* r4 index = 4 (1st store) */
asm("clrl r5"); /* r5 index = 0 (sgl. op.) */
asm("ldf (r13)[r1]"); /* load a '0' (indx=1) */
asm("addf (r13)[r5]"); /* add the operand (indx=0) */
asm("stf (r13)[r4]"); /* 1st store (indx=4) */
asm("cvlf (r13)[r2]"); /* convert the int (indx=2) */
asm("subf (r13)[r1]"); /* subtract a '0' (indx=1) */
asm("stf (r13)[r3]"); /* 2nd store (indx=3) */
if( force_loop )
asm("brb _pipe6_10_lp1");; /* loop on the error */
/*
* verify the results
*/
sgl_st_acc = pointer_data; /* save 1st stored value */
asm("moval _pointer_data,_sgl_value_5"); /* get addr of 1st stf */
sgl_value_5 -= 4; /* decrement by 4 (bytes) */
asm("movl *_sgl_value_5,_sgl_value_6"); /* save 2nd store value */
asm("moval (r13),_sgl_value_5"); /* save the frame pointer */
if( (sgl_st_acc != sgl_expected) || /* verify the results... */
(sgl_value_6 != sgl_expected) ||
(sgl_value_5 != sgl_value_4) ) /* ... and the final FP */
{
asm("movl _pre_event_fp,r13"); /* restore frame pointer */
asm("movl _pre_event_sp,r14"); /* restore stack pointer */
errcnt++; /* bump the error count */
if ( prt_error ) {
print_pipe6_er("indexed FP addressing");
writes("final Frame Pointer = ");
writeh( sgl_value_5 );
writes(", expected FP = ");
writeh( sgl_value_4 );
writes("\n");
}
if ( halt_flg ) /* halt on error? */
pipe6_er_hlt( subtest );
if ( loop_on_err ) {
force_loop = TRUE; /* set the force loop flag */
asm("jmp _pipe6_10_lp1"); /* and loop */
}
} /* end of compare error */
} while( index++ < max_cvlf_1_index );
asm("movl _pre_event_fp,r13"); /* restore the frame pointer */
asm("movl _pre_event_sp,r14"); /* restore the stack pointer */
} /* end of subtest 10 */
/******************************************************************************
*
*
* print an error in the following form
*
* operand 1 = xxxxxxxx, 1st store = xxxxxxxx, data index = dd
* operand 2 = xxxxxxxx, 2nd store = xxxxxxxx
* expected Acc = xxxxxxxx
*
******************************************************************************/
print_pipe6_er(msg)
char *msg;
{
writes("\n"); /* start a new print line */
writes("cycle: ");
writed( cycle );
writes(" test ");
writed( test_no );
writes(" (Pipe 6), subtest ");
writed( subtest );
writes(" error - ");
writes( msg );
writec('\n');
writes(" LDF(0.0), ADDF(op1), STF, CVLF(op2), SUBF(0.0), STF\n");
writes("operand 1 = ");
write32h( sgl_expected );
writes(", 1st store = ");
write32h( sgl_st_acc );
writes(", data index = ");
writed( index );
writec('\n');
writes("operand 2 = ");
write32h( sgl_value_1 );
writes(", 2nd store = ");
write32h( sgl_value_6 );
writec('\n');
writes(" expected Acc = ");
write32h( sgl_expected );
writec('\n');
}
/******************************************************************************
*
* HALT ON ERROR ROUTINE
*
* halt with the necessary information saved in the registers
*
******************************************************************************/
pipe6_er_hlt( subtest )
int subtest;
{
asm("movl _test_no,r0"); /* r0 = test number */
asm("movl _subtest,r1"); /* r1 = subtest number */
asm("movl $1,r2"); /* r2 = error code */
asm("movl _cycle,r3"); /* r3 = cycle count */
asm("movl _sgl_expected,r4"); /* r4 = 1st operand */
asm("movl _sgl_value_1,r5"); /* r5 = 2nd operand */
asm("movl _sgl_st_acc,r6"); /* r6 = 1st word stored */
asm("movl _sgl_value_6,r7"); /* r6 = 2nd word stored */
asm("movl _sgl_expected,r8"); /* r8 = sgl expected */
asm("movl _index,r9"); /* r9 = data index */
asm("movl _sgl_value_2,r10"); /* r10 = floating zero */
if( subtest == 9 ) {
asm("movl _sgl_value_5,r11"); /* r11= final SP value */
asm("movl _sgl_value_4,r12"); /* r12= expected SP value */
} else
if( subtest == 10 ) {
asm("movl _sgl_value_5,r11"); /* r11= final FP value */
asm("movl _sgl_value_4,r12"); /* r12= expected FP value */
};
asm(".globl _pipe6_1_hlt");
asm("_pipe6_1_hlt:"); /* PC after the halt */
asm("halt"); /* HALT ... */
} /* end of halt on error */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.