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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [gas/] [testsuite/] [lib/] [dotest] - Diff between revs 816 and 818

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 818
#!/bin/sh
#!/bin/sh
# ad hoc debug tool
# ad hoc debug tool
x=$1
x=$1
y=$2
y=$2
xout=`basename $x`.xxx.$$
xout=`basename $x`.xxx.$$
yout=`basename $x`.yyy.$$
yout=`basename $x`.yyy.$$
mkdir $xout
mkdir $xout
mkdir $yout
mkdir $yout
for i in *.s
for i in *.s
do
do
        echo Testing $i...
        echo Testing $i...
        object=`basename $i .s`.o
        object=`basename $i .s`.o
        $x $i -o $xout/$object
        $x $i -o $xout/$object
        $y $i -o $yout/$object
        $y $i -o $yout/$object
# if they cmp, we're ok.  Otherwise we have to look closer.
# if they cmp, we're ok.  Otherwise we have to look closer.
        if (cmp $xout/$object $yout/$object)
        if (cmp $xout/$object $yout/$object)
        then
        then
                echo $i is ok.
                echo $i is ok.
        else
        else
                if (doobjcmp $xout/$object $yout/$object)
                if (doobjcmp $xout/$object $yout/$object)
                then
                then
                        echo Not the same but objcmp ok.
                        echo Not the same but objcmp ok.
                else
                else
                        exit 1
                        exit 1
                fi
                fi
        fi
        fi
        echo
        echo
done
done
rm -rf $xout $yout
rm -rf $xout $yout
exit 0
exit 0
# EOF
# EOF
 
 

powered by: WebSVN 2.1.0

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