Commit Graph

30 Commits

Author SHA1 Message Date
Petar Jovanovic
7abdec37ee mips32: minor improvements to vfp test
Remove wrong use of early-clobber constraints.
Some formatting/codestyle changes added too.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15822
2016-03-07 14:31:48 +00:00
Petar Jovanovic
6cf07e70a5 mips32: minor modification to MoveIns test
While no issues have been reported with this test example, it was
misusing early-clobber constraints and missing some real constraints
on the other side. Fixing it now.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15805
2016-02-23 17:39:04 +00:00
Petar Jovanovic
b84bfd4325 mips32: add two missing exp files in EXTRA_DIST
MoveIns.stdout.exp-mips32r2-BE and MoveIns.stdout.exp-mips32r2-LE have not
been included in EXTRA_DIST. Adding it now.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15803
2016-02-23 15:41:38 +00:00
Petar Jovanovic
da8925d486 mips32: add tests for mfhc1 and mthc1 instructions
Add tests for mfhc1 and mthc1 instructions and (two) new exp files.
Also, minor formatting changes throughout the test file.

This is related to VEX change r3211.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15801
2016-02-22 16:29:40 +00:00
Dejan Jevtic
a383b110f9 mips32: According to the glibc bug 5044 (https://sourceware.org/bugzilla/show_bug.cgi?id=5044)
until the glibc version 2.17 printf hadn't respected the rounding mode for decimal
output. Because of change in glibc printf function we need to change our
expected output file for none/tests/mips32/FPUarithmetic test.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13894
2014-04-11 11:59:11 +00:00
Dejan Jevtic
d8caebf893 mips32: Add tests for mips32 floating point compare instructions.
Tests that are testing mips instructions c.cond.s and c.cond.d have been added in none/tests/mips32.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13839
2014-02-25 15:26:52 +00:00
Dejan Jevtic
3d1369a6e0 mips32: Support for 64bit FPU on MIPS32 platforms.
Tests for 64bit FPU instructions on MIPS32 platforms.
Some mips instructions can cause SIGILL (Illegal instruction),
so we need to add SIGILL signal and a proper handler for that signal.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13817
2014-02-19 11:57:22 +00:00
Dejan Jevtic
c8fdf5eb67 mips32: Fix typo.
Fix some typo error and some errors in tests that was discovered while running Valgrind on MIPS/Android.
In some cases initial FCSR value wasn't being set properly.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13746
2013-12-05 14:05:25 +00:00
Dejan Jevtic
b4adb1bc50 mips32/64: Test case for VEX r2799.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13713
2013-11-14 15:45:26 +00:00
Dejan Jevtic
8eec882079 mips32: Change the tests values so that the result is
the same on all mips32 platforms. Add extra cases in 
vbit-test for mips32.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13687
2013-10-23 14:07:15 +00:00
Dejan Jevtic
007794399e mips32: Delete unused empty files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13685
2013-10-23 13:08:10 +00:00
Dejan Jevtic
ea9cf28a1f mips32: Change the input values for round test.
Change the input values so that the binary value
is representing exactly the same float value.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13576
2013-09-24 07:00:46 +00:00
Dejan Jevtic
91d5bb2015 mips32/mips64: tests for FCSR.
Change the existing tests to print the value of the FCSR
register after the mips fpu instruction is executed.
Add tests that are testing the value of FCSR register.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13560
2013-09-18 10:08:23 +00:00
Petar Jovanovic
567ed9419a mips32/mips64: rename mips32_features to mips_features
As this file is now detecting mips64/Cavium boards, we are renaming it to
reflect that. The functional change is that mips_features now can detect
Cavium board and allow Cavium-specific tests to be run.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13551
2013-09-15 22:49:01 +00:00
Dejan Jevtic
63d3dd8351 mips32/mips64: Add tests for lwl and lwr for mips32 and mips64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13526
2013-09-02 15:35:12 +00:00
Dejan Jevtic
7ad5daf816 mips32: Delete unnecessary exp files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13497
2013-08-15 13:48:28 +00:00
Dejan Jevtic
47e3a1b8a7 mips32/mips64: Fix compiler warnings.
Fix some compiler warnings when compiling Valgrind for mips32/mips64.
Clean up exp files for mips32 BE and LE.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13496
2013-08-15 13:37:29 +00:00
Dejan Jevtic
59dcfad1a0 mips32: Add test cases for for mips32 DSP instruction set.
Add test cases for mips32 DSP and DSP revision 2 ASE.
Correctly model SHLL_S.PH on MIPS32.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13479
2013-08-02 15:39:58 +00:00
Petar Jovanovic
3aa005ea1c mips32: add missing exp file for Bug#320057
r13450 misses the exp file.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13452
2013-07-15 10:16:09 +00:00
Petar Jovanovic
302ca71a6a mips32: another VG_(am_get_advisory) needs non-single-page-size adjustment
Another mmap issue in which another VG_(am_get_advisory) needs adjustment
wrapper for cases when (VKI_SHMLBA > VKI_PAGE_SIZE) and argument is
VKI_MAP_SHARED.

Fix by DejanJ for Bug #320057.
Issue and the test case by Vasile Floroiu.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13450
2013-07-12 15:32:27 +00:00
Petar Jovanovic
45e740c563 mips: define allexec files as soft links
This change is a follow up to r13385. It removes physical copies of the
allexec c-files in none/tests/mips32/ and none/tests/mips64/ and defines
them as soft-links to a common file like other arches do.

Credits to Philippe for noticing it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13388
2013-05-11 22:23:27 +00:00
Petar Jovanovic
ee3a906b26 mips: extending the existing test for INS and EXT instructions
Follow up to r2715 in VEX in which we fix INS instruction for lsb = 0.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13380
2013-04-27 01:34:05 +00:00
Petar Jovanovic
00d404c557 mips: additional test case for fix in VEX r2648
Test program that triggers different corner cases related to position of
branch instruction and max size of a translation block (60 instructions).
Fix for these issues has been submitted in r2648.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13248
2013-01-20 18:27:39 +00:00
Petar Jovanovic
d38c7c3e17 Add a proper support for several MIPS instructions that generate SigFPE.
Add support to properly handle TEQ, ADD and SUB instructions that generate
exceptions on MIPS platforms. A SignalException test for MIPS32 has also been
added, so we can cover more cases.

This resolves:

none/tests/faultstatus
gdbserver_tests/mcsignopass
gdbserver_tests/mcsigpass


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13059
2012-10-19 14:45:17 +00:00
Florian Krohm
a59c1512ac Remove .deps directory.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12909
2012-08-28 18:37:40 +00:00
Petar Jovanovic
27fdf23181 Conditionally execute tests depending on revision of MIPS architecture.
Support has been added to the tests for MIPS32 revision 1. Previously, all the
tests had to be compiled for MIPS32r2 platforms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12751
2012-07-16 14:07:47 +00:00
Petar Jovanovic
d69863ecfe Initializing destination reg for MoveIns test for MIPS.
The test none/tests/mips32/MoveIns.c did not initialize destination register,
and that is important for movn.s and movn.d instructions. This improves the
test as we will get the same stdout with different compilers and options now.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12661
2012-06-22 13:44:04 +00:00
Petar Jovanovic
bbd17f7c33 Adjusting the svn:executable property on none/tests/mips32/filter_stderr.
vg_regtest failed on MIPS as filter_stderr was not an executable.
MIPS port is currently tracked as bug #270777.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12625
2012-06-09 01:56:58 +00:00
Julian Seward
ffa1330fce mips32-linux port: add missing (empty) stderr.exp files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12619
2012-06-07 11:38:40 +00:00
Julian Seward
4a56838b89 Merge in a port for mips32-linux, by Petar Jovanovic and Dejan Jevtic,
mips-valgrind@rt-rk.com, Bug 270777.
    
Valgrind: new non-test files for mips32-linux.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12618
2012-06-07 09:32:40 +00:00