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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [src/] [sparc.md] - Diff between revs 4 and 252

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

Rev 4 Rev 252
Line 895... Line 895...
        } else if (suffix == F && size == 8) {
        } else if (suffix == F && size == 8) {
                double d = v.d;
                double d = v.d;
                unsigned *p = (unsigned *)&d;
                unsigned *p = (unsigned *)&d;
                print(".word 0x%x\n.word 0x%x\n", p[swap], p[!swap]);
                print(".word 0x%x\n.word 0x%x\n", p[swap], p[!swap]);
        } else if (suffix == P)
        } else if (suffix == P)
                print(".word 0x%x\n", (unsigned)v.p);
                print(".word 0x%lx\n", (unsigned long)v.p);
        else if (size == 1)
        else if (size == 1)
                print(".byte 0x%x\n", (unsigned)((unsigned char)(suffix == I ? v.i : v.u)));
                print(".byte 0x%x\n", (unsigned)((unsigned char)(suffix == I ? v.i : v.u)));
        else if (size == 2)
        else if (size == 2)
                print(".half 0x%x\n", (unsigned)((unsigned short)(suffix == I ? v.i : v.u)));
                print(".half 0x%x\n", (unsigned)((unsigned short)(suffix == I ? v.i : v.u)));
        else if (size == 4)
        else if (size == 4)

powered by: WebSVN 2.1.0

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