'xb gentest' to generate test binaries on Windows.

This commit is contained in:
Ben Vanik 2015-05-12 21:40:44 -07:00
parent c00ded9fbc
commit a72dc93b92
92 changed files with 1149 additions and 1495 deletions

3
.gitmodules vendored
View File

@ -19,3 +19,6 @@
[submodule "third_party/flatbuffers"]
path = third_party/flatbuffers
url = https://github.com/google/flatbuffers.git
[submodule "third_party/binutils-ppc-cygwin"]
path = third_party/binutils-ppc-cygwin
url = https://github.com/benvanik/binutils-ppc-cygwin

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_add.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_add_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_addc.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_addc_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_adde.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_adde_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_addic.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_addic_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_addme.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_addme_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_addze.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_addze_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_cntlzd.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_cntlzd_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_cntlzw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_cntlzw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_divd.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_divd_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_divdu.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_divdu_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_divw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_divw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_divwu.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_divwu_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_eqv.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_eqv_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_fabs.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_fabs_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_fnabs.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_fnabs_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_fsel.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_fsel_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_lvexx.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_lvebx_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_lvl.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_lvl_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_lvr.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_lvr_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_lvsl.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_lvsl_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_lvsr.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_lvsr_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_mulhd.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_mulhd_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_mulhdu.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_mulhdu_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_mulhw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_mulhw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_mulhwu.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_mulhwu_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_mulld.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_mulld_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_mulli.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_mulli_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_mullw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_mullw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_neg.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_neg_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_nor.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_nor_cr_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_ori.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_ori_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_rldicl.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_rldicl_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_rldicr.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_rldicr_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_rlwimi.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_rlwimi>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_rlwinm.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_rlwinm_extrwi>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_rlwnm.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_rlwnm_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_sld.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_sld_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_slw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_slw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_srad.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_srad_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_sradi.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_sradi_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_sraw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_sraw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_srawi.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_srawi_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_srd.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_srd_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_srw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_srw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_stvew.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_stvew_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_stvl.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_stvl_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_stvr.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_stvr_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_subf.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_subf_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_subfc.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_subfc_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_subfe.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_subfe_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_subfic.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_subfic_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_subfme.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_subfme_one_ca_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_subfze.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_subfze_one_ca_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vaddshs.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vaddshs_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vadduhm.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vadduhm_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vcfsx.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vcfsx_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vcmpxxfp.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vcmpxxfp_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vctsxs.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vctsxs_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vmrghb.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vmrghb_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vmrghh.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vmrghh_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vmrghw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vmrghw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vmrglb.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vmrglb_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vmrglh.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vmrglh_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vmrglw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vmrglw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vperm.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vperm_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vpermwi128.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vpermwi128_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vpkd3d128.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vpkd3d128_d3dcolor_invalid_0>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vpkshss.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vpkshss_0>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vpkswss.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vpkswss_0>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vrfin.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vrfin_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vrlimi128.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vrlimi128_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vsel.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vsel_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vslb.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vslb_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vsldoi.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vsldoi_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vslh.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vslh_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vslw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vslw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vspltb.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vspltb_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vsplth.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vsplth_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vspltisb.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vspltisb_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vspltish.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vspltish_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vspltisw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vspltisw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vspltw.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vspltw_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vsubshs.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vsubshs_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vsubuhm.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vsubuhm_1>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vupkd3d128.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vupkd3d128_d3dcolor>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vupkhsh.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vupkhsh_0>:

View File

@ -1,7 +1,3 @@
/vagrant/src/xenia/cpu/frontend/test/bin//instr_vupklsh.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vupklsh_0>:

View File

@ -1,66 +0,0 @@
#!/bin/sh
set -e
THIS_SCRIPT_DIR=$( cd "$( dirname "$0" )" && pwd )
BINUTILS=$THIS_SCRIPT_DIR/../../../../../third_party/binutils/bin/
PPC_AS=$BINUTILS/powerpc-none-elf-as
PPC_LD=$BINUTILS/powerpc-none-elf-ld
PPC_OBJDUMP=$BINUTILS/powerpc-none-elf-objdump
PPC_NM=$BINUTILS/powerpc-none-elf-nm
BIN=$THIS_SCRIPT_DIR/bin/
if [ -d "$BIN" ]; then
rm -f $BIN/*.o
rm -f $BIN/*.dis
rm -f $BIN/*.bin
rm -f $BIN/*.map
else
mkdir -p $BIN
fi
SRCS=$THIS_SCRIPT_DIR/*.s
for SRC in $SRCS
do
SRC_NAME=$(basename $SRC)
OBJ_FILE=$BIN/${SRC_NAME%.*}.o
$PPC_AS \
-a64 \
-be \
-mregnames \
-mpower7 \
-maltivec \
-mvsx \
-mvmx128 \
-R \
-o $OBJ_FILE \
$SRC
$PPC_OBJDUMP \
--adjust-vma=0x100000 \
-Mpower7 \
-Mvmx128 \
-D \
-EB \
$OBJ_FILE \
> $BIN/${SRC_NAME%.*}.dis
$PPC_LD \
-A powerpc:common64 \
-melf64ppc \
-EB \
-nostdlib \
--oformat binary \
-Ttext 0x100000 \
-e 0x100000 \
-o $BIN/${SRC_NAME%.*}.bin \
$OBJ_FILE
$PPC_NM \
--numeric-sort \
$OBJ_FILE \
> $BIN/${SRC_NAME%.*}.map
done

1
third_party/binutils-ppc-cygwin vendored Submodule

@ -0,0 +1 @@
Subproject commit 6f3f15db908d339472db7be450f7c58bb71545cc

View File

@ -4,3 +4,5 @@ mainline binutils: https://sourceware.org/ml/binutils/2007-03/msg00366.html
You can find a snapshot of 2.24 here:
http://mirrors.kernel.org/sourceware/binutils/releases/binutils-2.24.tar.gz
Build on cygwin with: `bash -x -o igncr build.sh`

62
xb.bat
View File

@ -92,6 +92,10 @@ ECHO.
ECHO xb build [--checked OR --debug OR --release] [--force]
ECHO Initializes dependencies and prepares build environment.
ECHO.
ECHO xb gentest
ECHO Generates test binaries (under src/xenia/cpu/frontend/test/bin/).
ECHO Run after modifying test .s files.
ECHO.
ECHO xb test [--checked OR --debug OR --release] [--continue]
ECHO Runs automated tests. Tests must have been built with `xb build`.
ECHO.
@ -257,6 +261,64 @@ ENDLOCAL & SET _RESULT=0
GOTO :eof
REM ============================================================================
REM xb gentest
REM ============================================================================
:perform_gentest
SETLOCAL EnableDelayedExpansion
ECHO Generating test binaries...
SET BINUTILS=third_party\binutils-ppc-cygwin
SET PPC_AS=%BINUTILS%\powerpc-none-elf-as.exe
SET PPC_LD=%BINUTILS%\powerpc-none-elf-ld.exe
SET PPC_OBJDUMP=%BINUTILS%\powerpc-none-elf-objdump.exe
SET PPC_NM=%BINUTILS%\powerpc-none-elf-nm.exe
SET TEST_SRC=src\xenia\cpu\frontend\test\
SET TEST_BIN=%TEST_SRC%\bin
IF NOT EXIST %TEST_BIN% (mkdir %TEST_BIN%)
SET ANY_ERRORS=0
PUSHD %TEST_SRC%
FOR %%G in (*.s) DO (
ECHO ^> generating %%~nG...
POPD
SET SRC_FILE=%TEST_SRC%\%%G
SET SRC_NAME=%%~nG
SET OBJ_FILE=%TEST_BIN%\!SRC_NAME!.o
%PPC_AS% -a64 -be -mregnames -mpower7 -maltivec -mvsx -mvmx128 -R -o !OBJ_FILE! !SRC_FILE!
IF !ERRORLEVEL! NEQ 0 (
SET ANY_ERRORS=1
)
%PPC_OBJDUMP% --adjust-vma=0x100000 -Mpower7 -Mvmx128 -D -EB !OBJ_FILE! > %TEST_BIN%\!SRC_NAME!.dis.tmp
IF !ERRORLEVEL! NEQ 0 (
SET ANY_ERRORS=1
)
REM Eat the first 4 lines to kill the file path that'll differ across machines.
MORE +4 %TEST_BIN%\!SRC_NAME!.dis.tmp > %TEST_BIN%\!SRC_NAME!.dis
DEL %TEST_BIN%\!SRC_NAME!.dis.tmp
%PPC_LD% -A powerpc:common64 -melf64ppc -EB -nostdlib --oformat binary -Ttext 0x100000 -e 0x100000 -o %TEST_BIN%\!SRC_NAME!.bin !OBJ_FILE!
IF !ERRORLEVEL! NEQ 0 (
SET ANY_ERRORS=1
)
%PPC_NM% --numeric-sort !OBJ_FILE! > %TEST_BIN%\!SRC_NAME!.map
IF !ERRORLEVEL! NEQ 0 (
SET ANY_ERRORS=1
)
PUSHD %TEST_SRC%
)
POPD
IF %ANY_ERRORS% NEQ 0 (
ECHO.
ECHO ERROR: failed to build one or more tests
ENDLOCAL & SET _RESULT=1
GOTO :eof
)
ENDLOCAL & SET _RESULT=0
GOTO :eof
REM ============================================================================
REM xb test
REM ============================================================================