Commit Graph

914 Commits

Author SHA1 Message Date
Julian Seward
f3841c8aae Rename these two test files to make their names a bit less cumbersome.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13935
2014-05-05 13:38:37 +00:00
Julian Seward
6199b0550b Add test cases for out-of-range argument handling for x87 instructions
FSIN, FCOS, FSINCOS and FPTAN.  Mozilla bug 995564.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13921
2014-04-30 22:51:47 +00:00
Julian Seward
d5cb000e92 Add a list of all the FP+SIMD insns, as a base from which to
generate test cases.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13918
2014-04-28 22:12:39 +00:00
Julian Seward
f80904ff97 Finish off and/or re-enable test cases for: vector integer comparison
instructions, and vector shift-by-immediates (Shr/Shl/Sar)
instructions.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13917
2014-04-27 12:03:37 +00:00
Philippe Waroquiers
9ba256ffb0 * New option --aspace-minaddr=<address> allows to (possibly) make
use of some more memory by decreasing the default value
  or solve some conflicts with system libraries by increasing the value.
  See user manual for details.

Note that the lowest accepted possible value is 0x1000, which is
the current value used by Macos in 32bits.
On linux, 0x10000 (64KB) seems to cause not much conflicts.

Default values are unchanged (i.e. are the same as when there
was no clo option).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13901
2014-04-20 14:20:37 +00:00
Philippe Waroquiers
8b7a52c4cb - The option "--vgdb-stop-at=event1,event2,..." allows the user
to ask GDB server to stop before program execution, at the end
  of the program execution and on Valgrind internal errors.

- A new monitor command "v.set hostvisibility" that allows GDB server
  to provide access to Valgrind internal host status/memory.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13900
2014-04-20 13:41:10 +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
Julian Seward
00cbf4454f Add tests for some variants of LD{1,2}/ST{1,2} that load or
store two registers.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13889
2014-04-03 23:01:24 +00:00
Julian Seward
4330b24498 Add tests for FCMEQ, FCMGE, FCMGT, FACGE, FACGT
(reg-vs-reg variants only)

Add tests for all TBL and TBX variants.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13888
2014-04-03 23:00:45 +00:00
Julian Seward
a88850e0c9 More test cases:
xtn,xtn2
ushr 8h, 8h, #imm



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13856
2014-03-07 22:54:19 +00:00
Julian Seward
1071f56d61 Add comprehensive testing for almost all supported load/store instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13850
2014-03-03 08:43:43 +00:00
Julian Seward
e0120ae24a Add many test cases from arm64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13848
2014-03-02 12:48:34 +00:00
Julian Seward
39acf83eb0 Update; document missing test cases.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13847
2014-03-01 11:27:59 +00:00
Julian Seward
f2c349eeee Add test cases for SIMD and FP instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13846
2014-03-01 11:27:18 +00:00
Julian Seward
6c400e5e0c Fixes form arm64-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13844
2014-03-01 11:21:45 +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
Tom Hughes
1175b7c1a3 Use pclose instead of fclose to close pipes opened with popen, which
also allows us to drop the loop that was supposed to give the child a
chance to exit as the pclose will wait properly for the child.

Fix from Ivo Raisr on BZ#331255


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13813
2014-02-17 22:44:52 +00:00
Tom Hughes
c8f66f8d4d Use sigjmp_buf with sig{set,long}jmp, not jmp_buf
Patch from Ivo Raisr on BZ#331257


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13812
2014-02-17 22:32:15 +00:00
Petar Jovanovic
b8c6f1c0a3 mips64: add missing file to EXTRA_DIST
Add missing cvm_lx_ins.stdout.exp-BE to EXTRA_DIST.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13811
2014-02-15 03:38:57 +00:00
Petar Jovanovic
b117eca6ed mips64: correct mistyped test name
Minor name changed in .vgtest file.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13809
2014-02-14 18:09:03 +00:00
Petar Jovanovic
544994d634 mips64: add tests for load indexed instructions
Tests that should be executed on MIPS64 platforms that support lwx, ldx
and lbux.

Relevant VEX change - r2819.

Patch by Zahid Anwar, with some changes.

Related to Bugzilla issue 326444. It closes this issue now.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13808
2014-02-14 17:50:42 +00:00
Petar Jovanovic
e65d1dafdf mips64: Add BE version of cvm_lx_ins.stdout.exp
Read-memory tests are endian sensitive.
Add BE version of cvm_lx_ins.stdout.exp that has been tested on
Cavium Octeon II in BE mode.

Related to Bugzilla issue 326444.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13805
2014-02-13 18:07:03 +00:00
Carl Love
49987d5c4a This commit is a fix for "Bug 330622 - Add test to regression suite for POWER
instruction: dcbzl" submitted by Anmol P. Paralkar <paralkar@freescale.com>

The patch adds the following files:

 none/tests/ppc64/data-cache-instructions.vgtest
 none/tests/ppc64/data-cache-instructions.c
 none/tests/ppc64/data-cache-instructions.stdout.exp
 none/tests/ppc64/data-cache-instructions.stderr.exp
 none/tests/ppc32/data-cache-instructions.stdout.exp
 none/tests/ppc32/data-cache-instructions.c
 none/tests/ppc32/data-cache-instructions.vgtest
 none/tests/ppc32/data-cache-instructions.stderr.exp
 tests/power_insn_available.c


The following files are modified:

 none/tests/ppc32/Makefile.am
 none/tests/ppc64/Makefile.am
 tests/Makefile.am





git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13791
2014-02-08 02:19:12 +00:00
Petar Jovanovic
1461dae691 mips64: Add tests that cover Cavium-specific load indexed instructions
Tests for lhux, lwux, and lbx for Cavium Octeon II.

Patch by Zahid Anwar, with changes.

Related to Bugzilla issue 326444.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13786
2014-01-31 12:49:22 +00:00
Carl Love
c2714c0d18 This patch by adrian.sendroiu@freescale.com fixes the lrmw and stmw
instructions.

The patch also adds ppc32 and ppc64 test cases for the instructions.

The patch is a fix for bugzilla 329956 "valgrind crashes when lmw/stmw instructions are used on ppc64".

The VEX code commit is 2802




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13780
2014-01-24 16:44:08 +00:00
Julian Seward
4c57e7d4d9 Add test cases for AArch64 integer instructions (not wired up).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13771
2014-01-12 13:12:11 +00:00
Mark Wielaard
bbf509b446 Add testcase for bug 328100 XABORT not implemented (VEX r2800).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13754
2013-12-10 09:31:18 +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
Christian Borntraeger
dd808ba8b0 add testcase for the rotate and (insert/or/and/xor) family of
instructions.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13711
2013-11-08 09:45:12 +00:00
Tom Hughes
9887050b08 Clear direction flag after tests on amd64. BZ#326983.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13709
2013-11-01 10:46:28 +00:00
Petar Jovanovic
e58b7c43e4 mips64: add missing headers to EXTRA_DIST
make dist will not copy header files if they are not explicitly listed
in EXTRA_DIST. This change adds missing header files from none/test/mips64.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13701
2013-10-27 16:10: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
Julian Seward
dbf9b63605 Update copyright dates (20XY-2012 ==> 20XY-2013)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13658
2013-10-18 14:27:36 +00:00
Julian Seward
682b7211e6 arm-linux only: make unwinding by stack scanning (a nasty hack)
be controllable from the command line.  Fixes (kind of) #289578.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13657
2013-10-18 13:21:26 +00:00
Julian Seward
ab319a7e24 Followup to r13652 (make the translation cache size be command-line
controllable): reduce MAX_N_SECTORS to 24, speed up Sector
initialisation, wording tweaks.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13655
2013-10-18 11:18:45 +00:00
Julian Seward
f967a860bd Add test cases for PCMPxSTRx cases 0x30 and 0x40. Pertains to #320998.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13654
2013-10-18 10:46:52 +00:00
Carl Love
30565b278a This commit adds testing support for the following instructions:
vaddcuq, vadduqm, vaddecuq, vaddeuqm,
  vsubcuq, vsubuqm, vsubecuq, vsubeuqm,
  vbpermq and vgbbd.

The completes adding the Power ISA 2.07 support.

Bugzilla 325816

VEX commit id 2790


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13653
2013-10-18 01:20:11 +00:00
Philippe Waroquiers
61b8b9617b Allow the user to dimension the translation cache
A previous commit had decreased to 6 (on android) and increased to 16
(other platforms) the nr of sectors in the translation cache.
This patch adds a command line option to let the user specify
the nr of sectors as e.g. 16 sectors might be a lot and cause
an out of memory for some workloads or might be too small for
huge executable or executables using a lot of shared libs.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13652
2013-10-18 00:08:20 +00:00
Julian Seward
52b882283e Connect up the xacq_xrel test to the build system. Also, make the
TSX configure test check for that the assembler can deal with 
xacquire and xrelease prefixes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13649
2013-10-16 08:53:07 +00:00
Christian Borntraeger
b550fd8e65 remove old broken testcase for s390
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13647
2013-10-15 19:10:11 +00:00
Carl Love
d143dd1f43 Power 8 support, phase 5
This commit adds the testcases for the following instructions:

  vpmsumb, vpmsumh, vpmsumw, vpmsumd, vpermxor, vcipher, vcipherlast,
  vncipher, vncipherlast, vsbox,
  vclzb, vclzw, vclzh, vclzd,
  vpopcntb, vpopcnth, vpopcntw, vpopcntd,
  vnand, vorc, veqv,
  vshasigmaw, vshasigmad,
  bcdadd, bcdsub

The VEX commit that added the support for the above instructions was 
commit 2789.

The patch is for Bugzilla 325628


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13646
2013-10-15 18:13:21 +00:00
Julian Seward
21e2ef83b2 A minimal test case for the parsing of XACQUIRE and XRELEASE prefixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13645
2013-10-15 11:37:16 +00:00
Dejan Jevtic
1a65c43997 mips64: Prevent testing swc1 and swxc1 with the uninitialized memory values on
big endian platrofms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13634
2013-10-11 06:05:24 +00:00
Carl Love
9a6c4d0a0b Adding the link for none/tests/ppc32/test_touch_tm.c that got missed on
commit 13630.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13633
2013-10-10 15:30:02 +00:00
Dejan Jevtic
eb65531207 mips64: Change the input values for FPU tests.
Change the input values so that the binary values
is representing exactly the same float values.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13632
2013-10-10 09:10:35 +00:00
Carl Love
8044c5ce56 Power PC, add the two privileged Transactional Memory instructions.
The initial Transactional Memory instruction patch did not include the two
privileged (OS) instructions treclaim and trechkpt. VEX commit 2784 added
the support for these two instructions.

This patch adds a touch test to make sure all of the POWER Transactional
memory instrutions are recognized by Valgrind.  All of the the Transactional
Memory instructions, with the exception of tbegin, are treated as NOPs in the
first implementation.  The tbegin instruction causes the transaction to fail
thus no additional Transactional Memory instructions on the successful
transaction path would be executed in a real program.  This test just makes
sure each instruction is actually recognized by Valgrind.

The patch if for Bugzilla 325751.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13630
2013-10-09 17:56:34 +00:00
Florian Krohm
a913e218e0 Followup to r13615. Conditional testcases need a prereq line in the
.vgtest file. This has sucked before and I keep forgetting about it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13617
2013-10-04 15:03:55 +00:00