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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gen_or1k_isa/] [sources/] [gen_or1k_isa.c] - Diff between revs 1114 and 1295

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1114 Rev 1295
Line 1... Line 1...
/*
/*
 * $Log: not supported by cvs2svn $
 * $Log: not supported by cvs2svn $
 
 * Revision 1.10  2003/01/28 03:49:24  lampret
 
 * Added cvs log keywords
 
 *
 */
 */
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
 
 
Line 43... Line 46...
        struct or32_opcode *opcode;
        struct or32_opcode *opcode;
} info;
} info;
 
 
void transform_tex(char *input, char *output)
void transform_tex(char *input, char *output)
{
{
 
/*      printf("\n\ninput: %s\n", input); */
        while (*input != '\0') {
        while (*input != '\0') {
                if (*input == '[') {
                if (strncmp(input, "vector/floating-point", strlen("vector/floating-point")) == 0) {
 
                        strcpy(output, "general-purpose");
 
                        output += strlen("general-purpose");
 
                        input += strlen("vector/floating-point") - 1;
 
                } else if (strncmp(input, "vfr", 3) == 0) {
 
                        *output++ = 'r';
 
                        input += 2;
 
                } else if (*input == '[') {
                        *output++ = '{';
                        *output++ = '{';
                        *output++ = '[';
                        *output++ = '[';
                        *output++ = '}';
                        *output++ = '}';
                } else if (*input == ']') {
                } else if (*input == ']') {
                        *output++ = '{';
                        *output++ = '{';
Line 84... Line 95...
                } else
                } else
                        *output++ = *input;
                        *output++ = *input;
                input++;
                input++;
        }
        }
        *output = '\0';
        *output = '\0';
 
/*      printf("output: %s\n\n", output); */
}
}
void eliminate_slash(char *input, char *output)
void eliminate_slash(char *input, char *output)
{
{
        while (*input != '\0') {
        while (*input != '\0') {
                if (*input == '\\') {
                if (*input == '\\') {

powered by: WebSVN 2.1.0

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