xref: /openbmc/qemu/tests/tcg/mips/user/ase/msa/README (revision 19735c83)
1*88e34ac0SAleksandar MarkovicThe tests in subdirectories of this directory are supposed to be compiled for
2*88e34ac0SAleksandar Markovicmips64el MSA-enabled CPU (I6400, I6500), using an appropriate MIPS toolchain.
3*88e34ac0SAleksandar MarkovicFor example:
4*88e34ac0SAleksandar Markovic
5*88e34ac0SAleksandar Markovic/opt/img/bin/mips-img-linux-gnu-gcc <source file>                  \
6*88e34ac0SAleksandar Markovic-EL -static -mabi=64 -march=mips64r6 -mmsa  -o <executable file>
7*88e34ac0SAleksandar Markovic
8*88e34ac0SAleksandar MarkovicThey are to be executed using QEMU user mode, using command line:
9*88e34ac0SAleksandar Markovic
10*88e34ac0SAleksandar Markovicmips64el-linux-user/qemu-mips64el -cpu I6400 <executable file>
11*88e34ac0SAleksandar Markovic
12*88e34ac0SAleksandar MarkovicHelper scripts test_msa_compile.sh and test_msa_run.sh are also
13*88e34ac0SAleksandar Markovicprovided. This is an example of compilation and execution of all
14*88e34ac0SAleksandar MarkovicMSA tests:
15*88e34ac0SAleksandar Markovic
16*88e34ac0SAleksandar Markoviccd <QEMU root directory>
17*88e34ac0SAleksandar Markoviccd tests/tcg/mips/user/ase/msa
18*88e34ac0SAleksandar Markovic
19*88e34ac0SAleksandar Markovic./test_msa_compile.sh
20*88e34ac0SAleksandar Markovic./test_msa_run.sh
21