Commit Graph

1046 Commits

Author SHA1 Message Date
Julian Seward
039cf7d64d arm64: enable test cases for:
uqshrn{2}, sqrshrun{2}, sqshrun{2} (vector, imm)
sqxtn{2}, uqxtn{2}, sqxtun{2} (vector and scalar)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14257
2014-08-11 13:59:49 +00:00
Carl Love
0689c096e5 This commit is for Bugzilla 334836. The Bugzilla contains patch 3 of 3
to add PPC64 LE support.  The other two patches can be found in Bugzillas
334384 and 334834.  Note, there are no VEX changes in this patch.


PP64 Little Endian test case fixes.

This patch adds new LE and BE expect files where needed.  In other
cases, the test was fixed to run correctly on LE and BE using based on
testing to see which platform is being used.

Where practical, the test cases have been changed so that the output
produced for BE	 and LE will be identical.  The test cases that require
a major rewrite to make the output identical for BE and LE simply
had an additional expect file added.

Signed-off-by: Carl Love <carll@us.ibm.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14240
2014-08-07 23:49:27 +00:00
Julian Seward
a6f286d17d Enable tests for: sq{r}dmulh (scalar vs elem, vector vs elem),
sqshl, uqshl, sqrshl, uqrshl (reg) (vector and scalar).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14231
2014-08-04 08:11:33 +00:00
Julian Seward
ef338c8739 Enable test cases for:
{sqdmlal,sqdmlsl,sqdmull}{d_s_s[],s_h_h[]}
{sqdmlal,sqdmlsl,sqdmull}{d_s_s,s_h_h}
{sqdmlal,sqdmlsl,sqdmull}{2d_(2s_2s)/(4s_4s), 4s_(4h_4h)/(8h_8h)}
sqrdmulh 4s,2s,8h,4h (vector)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14180
2014-07-22 09:28:52 +00:00
Julian Seward
be6732dc77 Enable tests for: sqneg, {u,s}q{add,sub} (scalar),
{sqdmlal,sqdmlsl,sqdmull} (vector x element).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14177
2014-07-21 09:20:53 +00:00
Mark Wielaard
93ad03c5bb Omit frame pointer also for main in ppc ldst_multiple test.
Other functions already explicitly omitted the frame pointer. Also
do that for main to prevent gcc 4.8.2 complaining:

 ldst_multiple.c: In function ‘main’:
 ldst_multiple.c:180:5: error: frame pointer required, but reserved
  int main(void)
      ^
 ldst_multiple.c:31:18: note: for ‘r31’
  register HWord_t r31 asm("r31");

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14173
2014-07-17 13:29:43 +00:00
Julian Seward
c7447dcad0 add test cases for "LD1/ST1 (multiple 1-elem structs to/from 2 regs,
post index)" (16b only)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14162
2014-07-15 11:09:51 +00:00
Julian Seward
5a254c7950 arm64: enable test cases for:
{sli,sri} (vector & scalar), sqabs (vector & scalar)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14152
2014-07-11 12:06:24 +00:00
Julian Seward
26296e07c9 Enable test cases for: shll #imm, shrn #imm, rshrn #imm,
{smlal,umlal,smlsl,umlsl,smull,umull} (elem)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14148
2014-07-10 14:23:16 +00:00
Julian Seward
3aa62684fd arm64:
Add support for checking FPSR.QC effects of each instruction.
Implement: sadalp uadalp saddlp uaddlp saddlv uaddlv saddw{2} uaddw{2}
ssubw{2} usubw{2} shadd uhadd shsub uhsub sqadd uqadd sqsub uqsub
smaxp umaxp sminp uminp



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14121
2014-06-30 07:35:19 +00:00
Julian Seward
86e47e554c Enable test cases for: sabal uabal sabdl uabdl saddl uaddl ssubl usubl
smlal umlal smlsl umlsl smull umull


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14119
2014-06-28 12:22:22 +00:00
Bart Van Assche
175075e035 Make none/tests/filter_ioctl_moans executable
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14117
2014-06-28 07:39:47 +00:00
Bart Van Assche
980d6c2a8c Make moans about unknown ioctls more informative (#336772)
This is a slightly modified version of a patch from Ivo Raisr <ivosh@ivosh.net>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14116
2014-06-28 07:18:33 +00:00
Julian Seward
5e2364ac36 Enable test cases for: rev32, rev64, saba, uaba, sabd, uabd.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14115
2014-06-27 10:44:14 +00:00
Julian Seward
8fc646a429 arm64: add/enable testcases:
pmul, pmull, rbit, rev16,
LD1/ST1 (multiple 1-elem structs to/from 3 regs, no offset)
LD3/ST3 (multiple 3-elem structs to/from 3/regs, post index)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14110
2014-06-26 12:40:54 +00:00
Bart Van Assche
9214c37d49 Rename --defaultsupp into --default-suppressions as requested by Julian
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14090
2014-06-24 05:08:21 +00:00
Julian Seward
5f9fc28e82 Enable more test cases:
ins (vec[], vec[])
mla, mls, mul (vec, vec, vec[])
various more movi/mvni cases
not 16b/8b



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14083
2014-06-23 09:10:20 +00:00
Bart Van Assche
44c59fd7ea Make none/tests/cmdline[12] pass again
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14082
2014-06-22 11:13:47 +00:00
Julian Seward
b79c843632 Enable/enhance test cases for: dup_{d_d[], s_s[], h_h[], b_b[]}, ext
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14054
2014-06-19 22:21:28 +00:00
Julian Seward
1a1ee7a2c7 Enable test cases for: orr_{8h,4h}_imm8_shifted,
orr_{4s,2s}_imm8_shifted, bic_{8h,4h}_imm8_shifted,
bic_{4s,2s}_imm8_shifted, cls_std6_std6, cm{eq,ge,gt,hi,hs,tst}_d_d_d,
cm{ge,gt,le,lt}_d_d_zero, cnt_{16,8}b_{16,8}b




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14052
2014-06-19 14:22:20 +00:00
Julian Seward
1cf00e8338 Enable test cases for instructions implemented today.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14042
2014-06-15 21:56:28 +00:00
Philippe Waroquiers
ceaa5b2efe This patch implements the support needed for stacktraces
showing inlined function calls.
See 278972 valgrind stacktraces and suppression do not handle inlined function call debuginfo

Reading the inlined dwarf call info is activated using the new clo
  --read-inline-info=yes
Default is currently no but an objective is to optimise the performance
and memory in order to possibly set it on by default.
(see below discussion about performances).

Basically, the patch provides the following pieces:
1. Implement a new dwarf3 reader that reads the inlined call info
2. Some performance improvements done for this new parser, and
   on some common code between the new parser and the var info parser.
3. Use the parsed inlined info to produce stacktrace showing inlined calls
4. Use the parsed inlined info in the suppression matching and suppression generation
5. and of course, some reg tests

1. new dwarf3 reader:
---------------------
Two options were possible: add the reading of the inlined info
in the current var info dwarf reader, or add a 2nd reader.
The 2nd approach was preferred, for the following reasons:
The var info reader is slow, memory hungry and quite complex.
Having a separate parsing phase for the inlined information
is simpler/faster when just reading the inlined info.
Possibly, a single parser would be faster when using both
--read-var-info=yes and --read-inline-info=yes.
However, var-info being extremely memory/cpu hungry, it is unlikely
to be used often, and having a separate parsing for inlined info
does in any case make not much difference.
(--read-var-info=yes is also now less interesting thanks to commit
r13991, which provides a fast and low memory "reasonable" location
for an address).

The inlined info parser reads the dwarf info to make calls
to priv_storage.h ML_(addInlInfo).

2. performance optimisations
----------------------------
* the abbrev cache has been improved in revision r14035.
* The new parser skips the non interesting DIEs
  (the var-info parser has no logic to skip uninteresting DIEs).
* Some other minor perf optimisation here and there.
In total now, on a big executable, 15 seconds CPU are needed to
create the inlined info (on my slow x86 pentium).

With regards to memory, the dinfo arena:
with inlined info: 172281856/121085952  max/curr mmap'd
without          : 157892608/106721280  max/curr mmap'd,
So, basically, inlined information costs about 15Mb of memory for
my big executable (compared to first version of the patch, this is
already using less memory, thanks to the strpool deduppoolalloc.
The needed memory can probably be decreased somewhat more.

3. produce better stack traces
------------------------------
VG_(describe_IP) has a new argument InlIPCursor *iipc which allows
to describe inlined function calls by doing repetitive calls 
to describe_IP. See pub_tool_debuginfo.h for a description.

4. suppression generation and matching
--------------------------------------
* suppression generation now also uses an InlIPCursor *iipc
  to generate a line for each inlined fn call.

* suppression matching: to allow suppression matching to
match one IP to several function calls in a suppression entry,
the 'inputCompleter' object (that allows to lazily generate
function or object names for a stacktrace when matching 
an error with a suppression) has been generalised a little bit
more to also lazily generate the input sequence.
VG_(generic_match) has been updated so as to be more generic
with respect to the input completer : when providing an
input completer, VG_(generic_match) does not need anymore
to produce/compute any input itself : this is all delegated
to the input completer.

5. various regtests
-------------------
to test stack traces with inlined calls, and suppressions
of (some of) these errors using inlined fn calls matching.


Work still to do:
-----------------
* improve parsing performance
* improve the memory overhead.
* handling the directory name for files of the inlined function calls is not yet done.
  (probably implies to refactor some code)
* see if m_errormgr.c *offsets arrays cannot be managed via xarray



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14036
2014-06-15 15:42:20 +00:00
Julian Seward
cc3cafc37a Add test cases for LD1R (single structure, replicate).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14032
2014-06-14 18:06:14 +00:00
Florian Krohm
5caf0bf724 Fix the cleanup: line to avoid an error message in case the
file does not exist.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14027
2014-06-12 15:37:15 +00:00
Julian Seward
36bf1f4d67 Add test cases for FMUL 2d_2d_d[], 4s_4s_s[], 2s_2s_s[].
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14026
2014-06-12 13:16:43 +00:00
Julian Seward
d4751b4053 Add tests for movi_4s_#imm8,lsl8 and ushr_d_d_#imm.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14025
2014-06-12 10:13:44 +00:00
Julian Seward
37f5b9dd14 Enable test for movi_{16b,8b}_#imm8.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14021
2014-06-10 22:53:01 +00:00
Julian Seward
db7b04599f Fix out-of-range constants for some 32 bit insns, presumably tolerated
by older assembler versions but not newer ones.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13996
2014-06-04 21:55:16 +00:00
Julian Seward
548a0d2d60 Add test cases for ADC/ADCS/SBC/SBCS. Pertains to #335496.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13995
2014-06-04 13:13:05 +00:00
Dejan Jevtic
f1b4547420 mips64: Tests for Cavium MIPS Octeon Atomic and Count Instructions.
Tests for instructions:
baddu, pop, dpop, saa, saad, laa, laad, lai, laid, lad, ladd, law, lawd,
las, lasd, lac, lacd


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13994
2014-06-04 11:36:21 +00:00
Julian Seward
72190b60c1 Make each test disable-able, and enable tests of instructions that are
currently supported.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13993
2014-06-04 11:20:18 +00:00
Julian Seward
66a38e23e3 Add test cases for PCMPxSTRx cases 0x0E, 0x34, 0x14, and reformat some
of the associated switch statements.  Pertains to #326469, #327639,
#328878 respectively.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13986
2014-05-21 14:43:11 +00:00
Julian Seward
5bd3d910c3 Add more test cases: trn1, trn2, uzp1, uzp2, zip1, zip2, urecpe, ursqrte.
This completes the test cases for the SIMD integer instructions.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13970
2014-05-15 12:18:17 +00:00
Julian Seward
099e255374 Add more test cases: sqrshrn, uqrshrn, sqshrn, uqshrn, sqrshrun,
sqshrun, sqshl, uqshl, sqshlu, sqxtn, uqxtn, sqxtun, srhadd, urhadd,
sshl, ushl, shl, sshr, ushr, ssra, usra, srshl, urshl, srshr, urshr,
srsra, ursra, suqadd, usqadd.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13969
2014-05-15 11:55:56 +00:00
Julian Seward
1866af3dac Add more test cases: sqdmulh, sqrdmulh, sqshl, uqshl, sqrshl, uqrshl,
sqrshrn, uqrshrn, sqshrn, uqshrn, sqrshrun, sqshrun.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13968
2014-05-15 08:22:34 +00:00
Julian Seward
02f1067f35 Add tests for VFPv4 VFMA/VMFS. Pertains to #331057.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13967
2014-05-15 00:12:36 +00:00
Julian Seward
c388df8977 Followup to r13958: add reg-trash lists to inline assembly in
TESTINSTPCMISALIGNED TESTINSTPCMISALIGNED_DWORDOUT
TESTINSTPCMISALIGNED_2OUT and nice up the the indentation a bit.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13960
2014-05-13 16:15:56 +00:00
Julian Seward
61a0ca0857 Thumb encoding: add test case for assertion failure caused by
"ldr.w pc, [reg, #imm]".  See #333428.  (dimitry@google.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13959
2014-05-13 15:55:00 +00:00
Julian Seward
f6d56584b4 Thumb encoding: add test cases for misaligned loads of the form
LD Rt, [Rn +/- #imm12]  when Rn == PC
See #333145.  (dimitry@google.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13958
2014-05-13 14:45:54 +00:00
Julian Seward
b6ac3b9da4 Add more test cases: shll, shrn, rshrn, sli, sri, smaxp, umaxp, sminp,
uminp, smlal, umlal, smlsl, umlsl, smull, umull, sqabs, sqneg, sqadd,
uqadd, sqsub, uqsub, sqdmlal, sqdmlsl, sqdmull, sqrdmulh.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13956
2014-05-13 09:34:54 +00:00
Mark Wielaard
a07285e393 Add test for MPX instructions and bnd prefix. Bug #333666.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13948
2014-05-09 11:41:46 +00:00
Julian Seward
75219a52db Add more test cases: mul, mvni, not, pmul, pmull, rbit, rev16/32/64,
saba, uaba, sabal, uabal, sabd, uabd, sabdl, uabdl, sadalp, uadalp,
saddl, uaddl, ssubl, usubl, saddlp, uaddlp, saddlv, uaddlv, saddw,
uaddw, ssubw, usubw, shadd, uhadd, shsub, uhsub.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13946
2014-05-09 09:36:56 +00:00
Julian Seward
4862771a72 Add more test cases: ext, ins, mla, mls, movi.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13945
2014-05-08 22:19:16 +00:00
Julian Seward
1506d16ee3 Enable test cases for SMULH.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13940
2014-05-07 09:44:55 +00:00
Julian Seward
a7635e5b92 Fill in some SIMD integer test cases.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13937
2014-05-06 14:46:44 +00:00
Julian Seward
ec17e57156 Big reorganisation:
* add lane type descriptors, to be used by the random data
  generators -- as-yet unused

* move existing tests into new groupings, and rename some of
  them to be more consistent with the new notation.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13936
2014-05-06 09:30:29 +00:00
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