Commit Graph

829 Commits

Author SHA1 Message Date
Florian Krohm
07b6da4bbb Fix EXTRA_DIST. Add dummy .exp file to satisfy the consistency checker
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12904
2012-08-28 00:38:47 +00:00
Florian Krohm
16690f1ef5 s390: Add testcase for the ecag insn. Based on patch by
Divya Vyas (divyvyas@linux.vnet.ibm.com). Update opcode list.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12903
2012-08-26 19:05:06 +00:00
Julian Seward
b9d41417b1 Add tests for MOVBE in 32 bit mode. See 304867. (Ambroz Bizjak,
ambrop7@gmail.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12889
2012-08-23 23:42:46 +00:00
Julian Seward
213bf1ccbc Add test cases for QDADD and QDSUB. See #305199. (Mans Rullgard,
mans@mansr.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12888
2012-08-23 20:58:08 +00:00
Philippe Waroquiers
15493bb541 Implement --vex-iropt-register-updates=sp-at-mem-access
Option sp-at-mem-access can be used by tools which do not
need an up to date BP and IP at each mem access.
It is needed however to have SP up to date at each memory
access, as an up to date SP is needed to grow the stack in
m_signals.c

Tools massif, cachegrind and callgrind are using sp-at-mem-access
as default.
None tool could also use sp-at-mem-access but default is kept
to unwindregs-at-mem-access (similar to memcheck, drd, helgrind, exp-sgcheck).

exp-dhat, exp-bbv, lackey have not been looked at to see if they
could make use of sp-at-mem-access.

Validated on x86, amd64, ppc64 and s390x.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12872
2012-08-14 22:28:31 +00:00
Christian Borntraeger
8ebc7597b2 wire up testcase
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12860
2012-08-08 07:54:47 +00:00
Christian Borntraeger
bae94d70af Add a testcase for floating point <-> signed conversion that
actually checks the condition code of the conversion instruction
(most programs dont do that)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12859
2012-08-08 07:50:10 +00:00
Julian Seward
fae30e8323 Add a couple of useful examples to the --help text for
--soname-synonyms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12855
2012-08-07 14:46:34 +00:00
Florian Krohm
1f238b89bb Add prerequisites.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12854
2012-08-06 18:37:17 +00:00
Florian Krohm
f1d7df01e1 Add a testcase for the cu41 insn. Update opcode list, NEWS and bugstatus.
#289839 is finally fixed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12851
2012-08-06 00:10:53 +00:00
Julian Seward
7fd108bdb0 Update expected outputs following r12843.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12844
2012-08-05 16:10:55 +00:00
Julian Seward
4a3633e266 Update copyright dates to include 2012.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12843
2012-08-05 15:46:46 +00:00
Florian Krohm
76a9da7830 Add testcases for the cu14 insn. Update opcode table.
Part of fixing #289839.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12837
2012-08-05 03:02:43 +00:00
Bart Van Assche
972305fc0c none/tests/amd64/movbe: Run this test only if the movbe executable has been built
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12827
2012-08-04 05:26:23 +00:00
Florian Krohm
4c4dcca7d8 Fix a cut'n paste error. One byte was uninitialised. Now fixed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12826
2012-08-04 03:29:22 +00:00
Florian Krohm
61c62a503d Simplify.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12823
2012-08-03 21:50:11 +00:00
Florian Krohm
c0b36ade5b Fix testcase. Iterating over an array of invalid insns to test them all
does not work, as conversion will stop at the first invalid character.
So... need to loop over them.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12822
2012-08-03 20:28:21 +00:00
Bart Van Assche
a36fc3e178 none/tests/amd64/avx-1: Make it explicit that this test uses the vpclmulqdq instruction
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12821
2012-08-03 19:37:02 +00:00
Florian Krohm
ebc9830bb1 Add testcases for cu12. Update opcode table.
Part of fixing #289839.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12820
2012-08-03 18:37:26 +00:00
Philippe Waroquiers
36ca11463d Remove --vex-iropt-precise-memory-exns, implement --vex-iropt-register-updates
* Option --vex-iropt-precise-memory-exns has been removed.
  It is replaced by --vex-iropt-register-updates which accepts
  3 values : 'unwindregs-at-mem-access' (replacing
  --vex-iropt-precise-memory-exns=no), 'allregs-at-mem-access'
  (replacing --vex-iropt-precise-memory-exns=yes)
  and a new value 'allregs-at-each-insn'.
  'allregs-at-each-insn' allows the Valgrind gdbserver to always
  show up to date values to GDB.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12809
2012-08-01 22:03:12 +00:00
Julian Seward
63da47e2c2 Add test cases for "VCVT.F32.{S,U}32 S[d], S[d], #frac_bits"
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12808
2012-08-01 22:01:05 +00:00
Philippe Waroquiers
d045b4236a Implement --redzone-size and --core-redzone-size
* For tools replacing the malloc library (e.g. Memcheck, Helgrind, ...),
  the option --redzone-size=<number> allows to control the padding 
  blocks (redzones) added before and after each client allocated block.
  Smaller redzones decrease the memory needed by Valgrind. Bigger
  redzones increase the chance to detect blocks overrun or underrun.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12807
2012-07-31 22:17:28 +00:00
Florian Krohm
3630d97fcf Testcases for CU42. Part of fixing bugzilla #289839.
Update opcode table.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12804
2012-07-28 22:20:03 +00:00
Florian Krohm
793d6da89c Fix error message in testcase
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12801
2012-07-28 20:39:51 +00:00
Bart Van Assche
e1927cde20 none/tests/amd64/Makefile.am: Uses not only AVX instructions but PCLMULQDQ too
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12795
2012-07-28 11:13:47 +00:00
Petar Jovanovic
ae2aec93f0 MIPS specific exp-out for none/tests/async-sigs.
MIPS has different signal values, so it has to have its own expected output for
the tests that deal with signal values.
This fixes (false) failure in none/tests/async-sigs.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12791
2012-07-27 16:25:32 +00:00
Bart Van Assche
e9a1dc1962 none/tests/amd64/pcmpstr64: Update expected output after r12780
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12788
2012-07-26 06:49:38 +00:00
Florian Krohm
2d5ecc012c Due to s390's dealings with invalid insns we need to do two things
- advance the guest_IA to the next insn after raising the signal
- adjusting the address in a complaint to point to the failing insn
  (after guest_IA has been advanced)
Update testcases .exp files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12787
2012-07-26 02:41:31 +00:00
Josef Weidendorfer
d09681ca70 Additions to PCMPxSTRx tests to check fix for bug 303963.
Some tests used movdqa triggering a seg fault. Use movdqu instead.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12780
2012-07-25 09:49:26 +00:00
Florian Krohm
58e19c0bd3 Fix testcase and update results.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12779
2012-07-24 20:37:50 +00:00
Florian Krohm
068a951cf7 Update expected results.
This is the companion patch to VEX r2444 which backs out the special
handling for the 00 opcode.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12776
2012-07-23 18:05:52 +00:00
Florian Krohm
da2bfe57dc Add testcases for CU24. Part of fixing #289839.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12771
2012-07-21 17:42:54 +00:00
Florian Krohm
21c67106a6 Add testcases for CU21. Update opcode table.
WRT the memcheck test: the good news is we get all the complaints
we want. The bad news is:
- the line numbers from within do_cu21 are off
- there are 2 complaints when attempting to convert from
  an uninitialised input buffer instead of one. One of them has a 
  completely bogus line number.

Possibly due to bad debug info?  Let's see what happens on machines
with more recent GCCs. 


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12765
2012-07-20 00:17:16 +00:00
Florian Krohm
c57d56c01b Add macros for "convert unicode" insns.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12764
2012-07-19 23:29:06 +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
Julian Seward
57c1e52b2d Add tests for MOVBE -- an Intel-Atom-only instruction
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12750
2012-07-16 08:23:26 +00:00
Julian Seward
b3d96945ad Add expected outputs for VCMPNGESS. Should have been included in r12745.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12748
2012-07-14 19:47:32 +00:00
Julian Seward
3823586a6f Add test case for VCMPNGESS.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12745
2012-07-14 14:31:44 +00:00
Julian Seward
73bed921ca Add tests for SMMUL{R}, both ARM and Thumb encodings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12733
2012-07-11 16:58:59 +00:00
Julian Seward
e08776c783 RM: Implement QADD and QSUB (valgrind side fixes). Fixes #286917.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12727
2012-07-11 13:20:58 +00:00
Bart Van Assche
e744067f88 none/tests/ifunc: Only run this test if the "ifunc" executable has been built
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12722
2012-07-07 06:13:55 +00:00
Philippe Waroquiers
831cddf0a1 fix 303127 Power test suite fixes for frsqrte, vrefp, and vrsqrtefp instructions
The frsqrte and vrefp instructions produce an approximate result.
According to the ISA document for the POWER processor, the result will
vary in its precision for different processor implementations.  This patch
fixes the masks to be applied to the results to remove the variability
in the results.  The expected output files are also updated to reflect the
change in the result given the new masking of the result.

patch from Carl Love <cel@us.ibm.com>



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12720
2012-07-06 22:52:09 +00:00
Philippe Waroquiers
2254b8ab60 fix 303116 - Add support for the POWER instruction popcntb (Valgrind side)
patch from carll@us.ibm.com


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12719
2012-07-06 21:59:03 +00:00
Philippe Waroquiers
4160fb96ff fix 302918 Enable testing of the vmaddfp and vnsubfp instructions in the testsuite
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12718
2012-07-06 21:42:14 +00:00
Florian Krohm
1a6f7a0371 Add testcase from bugzilla #301204.
Testcase by Chantry Xavier (shiningxc@gmail.com).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12715
2012-07-05 21:21:37 +00:00
Florian Krohm
c01fe34536 Add new .exp file to EXTRA_DIST
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12706
2012-07-03 20:45:00 +00:00
Florian Krohm
bd406e6073 Yet another exp file for dash (0.5.7-2ubuntu2).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12705
2012-07-03 18:43:40 +00:00
Florian Krohm
a9d7ff4340 Update exp file (should have been part of r12701).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12703
2012-07-03 13:58:59 +00:00
Julian Seward
430d9f537a Finalise the expected output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12675
2012-06-25 07:55:53 +00:00
Julian Seward
9fa38b2fce Improve testing of AVX FP comparisons.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12674
2012-06-25 07:52:47 +00:00