OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [hwtests/] [looptest/] [mklooptest.c] - Blame information for rev 169

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 hellwig
/*
2
 * mklooptest.c -- generate loop test program
3
 */
4
 
5
 
6
#include <stdio.h>
7
#include <stdlib.h>
8
#include <string.h>
9
 
10
 
11
int main(void) {
12
  int i;
13
 
14
  printf("start:\n");
15
  for (i = 0; i < 100; i++) {
16
    printf("\tadd\t$1,$2,$3\n");
17
    printf("\tadd\t$1,$2,0x5555\n");
18
    printf("\tsub\t$4,$5,$6\n");
19
    printf("\tsub\t$4,$5,0xAAAA\n");
20
    printf("\tand\t$7,$8,$9\n");
21
    printf("\tand\t$7,$8,0x5555\n");
22
    printf("\tor\t$10,$11,$12\n");
23
    printf("\tor\t$10,$11,0xAAAA\n");
24
    printf("\txor\t$13,$14,$15\n");
25
    printf("\txor\t$13,$14,0x5555\n");
26
    printf("\txnor\t$16,$17,$18\n");
27
    printf("\txnor\t$16,$17,0xAAAA\n");
28
  }
29
  printf("\tj\tstart\n");
30
  return 0;
31
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.