2 # Generate test result data for xstormy16 GAS testing.
3 # It is intended to be run in the testsuite source directory.
5 # Syntax: build.sh /path/to/build/gas
8 if [ ! -x ..
/gas
/as-new
] ; then
9 echo "Usage: $0 [/path/to/gas/build]"
17 if [ ! -x $BUILD/as-new
] ; then
18 echo "$BUILD is not a gas build directory"
22 # Put results here, so we preserve the existing set for comparison.
29 $BUILD/as-new
${1}.s
-o a.out
31 echo "#objdump: -dr" >>${1}.d
32 echo "#name: $1" >>${1}.d
33 $BUILD/..
/binutils
/objdump
-dr a.out |
sed -e 's/(/\\(/g' -e 's/)/\\)/g' -e 's/\$/\\$/g' -e 's/\[/\\\[/g' -e 's/\]/\\\]/g' -e 's/[+]/\\+/g' -e 's/[.]/\\./g' -e 's/[*]/\\*/g' |
sed -e 's/^.*file format.*$/.*: +file format .*/' >>${1}.d
37 # Now come all the testcases.
41 add r0,#some_external_symbol
44 # Finally, generate the .d file.