]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
13 years agoAdd support for the SIOCSHWTSTAMP ioctl, based on a patch
Tom Hughes [Wed, 11 Jul 2012 14:33:10 +0000 (14:33 +0000)] 
Add support for the SIOCSHWTSTAMP ioctl, based on a patch
from Arseny Solokha. Fixes BZ#296792.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12730

13 years agoNote 286917 fix.
Julian Seward [Wed, 11 Jul 2012 14:28:13 +0000 (14:28 +0000)] 
Note 286917 fix.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12729

13 years agoWire up dup3 on arm. Fixes BZ#299629.
Tom Hughes [Wed, 11 Jul 2012 13:54:04 +0000 (13:54 +0000)] 
Wire up dup3 on arm. Fixes BZ#299629.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12728

13 years agoRM: Implement QADD and QSUB (valgrind side fixes). Fixes #286917.
Julian Seward [Wed, 11 Jul 2012 13:20:58 +0000 (13:20 +0000)] 
RM: Implement QADD and QSUB (valgrind side fixes).  Fixes #286917.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12727

13 years agoARM: Implement QADD and QSUB. Fixes #286917.
Julian Seward [Wed, 11 Jul 2012 13:19:10 +0000 (13:19 +0000)] 
ARM: Implement QADD and QSUB.  Fixes #286917.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2424

13 years agoAdd support for the CDROM_GET_CAPABILITY ioctl based on patch
Tom Hughes [Wed, 11 Jul 2012 12:02:06 +0000 (12:02 +0000)] 
Add support for the CDROM_GET_CAPABILITY ioctl based on patch
from Nick Black. Fixes BZ#302827.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12726

13 years agoNote 290006 fixage.
Julian Seward [Wed, 11 Jul 2012 00:06:35 +0000 (00:06 +0000)] 
Note 290006 fixage.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12725

13 years agoAdd Iop_CmpEQ16x8 to the set of known dependency-breakers. Fixes #290006.
Julian Seward [Tue, 10 Jul 2012 21:41:01 +0000 (21:41 +0000)] 
Add Iop_CmpEQ16x8 to the set of known dependency-breakers.  Fixes #290006.
(Alexey Samsonov, samsonov@google.com)

git-svn-id: svn://svn.valgrind.org/vex/trunk@2423

13 years agoComment/formatting only change, to clarify semantics w.r.t.
Julian Seward [Tue, 10 Jul 2012 16:41:46 +0000 (16:41 +0000)] 
Comment/formatting only change, to clarify semantics w.r.t.
relationship between guards and return temporaries from dirty helper
calls.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2422

13 years agoremove 302800 (bug invalid and/or covered by --soname-synonyms)
Philippe Waroquiers [Sat, 7 Jul 2012 15:53:26 +0000 (15:53 +0000)] 
remove 302800 (bug invalid and/or covered by --soname-synonyms)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12724

13 years agoremove 301204 (already in NEWS fixed section)
Philippe Waroquiers [Sat, 7 Jul 2012 15:44:06 +0000 (15:44 +0000)] 
remove 301204 (already in NEWS fixed section)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12723

13 years agonone/tests/ifunc: Only run this test if the "ifunc" executable has been built
Bart Van Assche [Sat, 7 Jul 2012 06:13:55 +0000 (06:13 +0000)] 
none/tests/ifunc: Only run this test if the "ifunc" executable has been built

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12722

13 years ago295590 Helgrind: Assertion 'cvi->nWaiters > 0' failed when cond var being waited...
Philippe Waroquiers [Fri, 6 Jul 2012 23:38:24 +0000 (23:38 +0000)] 
295590  Helgrind: Assertion 'cvi->nWaiters > 0' failed when cond var being waited upon destroyed
* when cond var is destroyed, in the PRE, report an error if nwaiters > 0.
* when cond_wait succeeds, get the cond var but do not create one in helgrind
  (it must exist if cond_wait was done).
  Report an error if cond not found (assuming this is caused by a destroy
  done while the thread was cond_wait-ing).
* added a test

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12721

13 years agofix 303127 Power test suite fixes for frsqrte, vrefp, and vrsqrtefp instructions
Philippe Waroquiers [Fri, 6 Jul 2012 22:52:09 +0000 (22:52 +0000)] 
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

13 years agofix 303116 - Add support for the POWER instruction popcntb (Valgrind side)
Philippe Waroquiers [Fri, 6 Jul 2012 21:59:03 +0000 (21:59 +0000)] 
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

13 years agofix 303116 Add support for the POWER instruction popcntb (VEX part)
Philippe Waroquiers [Fri, 6 Jul 2012 21:56:53 +0000 (21:56 +0000)] 
fix 303116  Add support for the POWER instruction popcntb (VEX part)
patch from carll@us.ibm.com

git-svn-id: svn://svn.valgrind.org/vex/trunk@2421

13 years agofix 302918 Enable testing of the vmaddfp and vnsubfp instructions in the testsuite
Philippe Waroquiers [Fri, 6 Jul 2012 21:42:14 +0000 (21:42 +0000)] 
fix 302918 Enable testing of the vmaddfp and vnsubfp instructions in the testsuite

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12718

13 years agoEnhance the check for ifunc compatibility testing.
Florian Krohm [Fri, 6 Jul 2012 09:17:29 +0000 (09:17 +0000)] 
Enhance the check for ifunc compatibility testing.
Make sure the executable can be linked.
As observed with gcc 4.4.5 and binutils 2.20.1

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12717

13 years agoFix use of AC_LANG_SOURCE for ifunc attribute testing.
Florian Krohm [Fri, 6 Jul 2012 08:26:37 +0000 (08:26 +0000)] 
Fix use of AC_LANG_SOURCE for ifunc attribute testing.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12716

13 years agoMake the IR sanity checker complain about dirty helpers that return
Florian Krohm [Thu, 5 Jul 2012 22:05:42 +0000 (22:05 +0000)] 
Make the IR sanity checker complain about dirty helpers that return
a value and are executed under a condition. That case is not handled
properly and will cause asserts down the road. As pointed out by Julian.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2420

13 years agoAdd testcase from bugzilla #301204.
Florian Krohm [Thu, 5 Jul 2012 21:21:37 +0000 (21:21 +0000)] 
Add testcase from bugzilla #301204.
Testcase by Chantry Xavier (shiningxc@gmail.com).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12715

13 years agoImprove behaviour of mempool redzone checking if user does not follow the manual...
Philippe Waroquiers [Thu, 5 Jul 2012 21:11:12 +0000 (21:11 +0000)] 
Improve behaviour of mempool redzone checking if user does not follow the manual (297911)
User is supposed to mark the superblock(s) of a mempool as noaccess.
As Valgrind objective is to find bugs for users which are doing bugs, let's even
find (some) bugs if the user has a bug in the bug detection code.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12714

13 years agodrd/tests/filter_stderr: Remove a space and two backslashes
Bart Van Assche [Thu, 5 Jul 2012 16:21:49 +0000 (16:21 +0000)] 
drd/tests/filter_stderr: Remove a space and two backslashes

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12713

13 years agoFinish initial triaging pass.
Julian Seward [Thu, 5 Jul 2012 13:26:07 +0000 (13:26 +0000)] 
Finish initial triaging pass.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12712

13 years agoAllow an IFunc symbol to be merged with a non-IFunc symbol that
Tom Hughes [Thu, 5 Jul 2012 09:42:31 +0000 (09:42 +0000)] 
Allow an IFunc symbol to be merged with a non-IFunc symbol that
represents the underlying resolver function. Fixes BZ#301204.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12711

13 years agofix 302709 valgrind for ARM needs extra tls support for android emulator
Philippe Waroquiers [Wed, 4 Jul 2012 21:59:29 +0000 (21:59 +0000)] 
fix 302709 valgrind for ARM needs extra tls support for android emulator

Allow Valgrind to run on android emulator.
+ added README.android_emulator giving some details about versions used.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12710

13 years agoCommit results of triagery so far.
Julian Seward [Wed, 4 Jul 2012 20:30:47 +0000 (20:30 +0000)] 
Commit results of triagery so far.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12709

14 years agodrd/tests/tc04_free_lock: Use drd/tests/filter_stderr
Bart Van Assche [Wed, 4 Jul 2012 10:43:12 +0000 (10:43 +0000)] 
drd/tests/tc04_free_lock: Use drd/tests/filter_stderr

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12708

14 years agoIncluding additional header file to syswrap-linux.c to see VG_(get_SP).
Petar Jovanovic [Tue, 3 Jul 2012 21:02:42 +0000 (21:02 +0000)] 
Including additional header file to syswrap-linux.c to see VG_(get_SP).

Removing a warning of 'implicit declaration of function vgPlain_get_SP' when
compiled for MIPS. Done by including an appropriate header file.
Also, minor style issue correction for  #define PSRAn_BE(n,s,t,a) macro.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12707

14 years agoAdd new .exp file to EXTRA_DIST
Florian Krohm [Tue, 3 Jul 2012 20:45:00 +0000 (20:45 +0000)] 
Add new .exp file to EXTRA_DIST

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12706

14 years agoYet another exp file for dash (0.5.7-2ubuntu2).
Florian Krohm [Tue, 3 Jul 2012 18:43:40 +0000 (18:43 +0000)] 
Yet another exp file for dash (0.5.7-2ubuntu2).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12705

14 years agoUpdated list of ignored files
Florian Krohm [Tue, 3 Jul 2012 14:03:49 +0000 (14:03 +0000)] 
Updated list of ignored files

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12704

14 years agoUpdate exp file (should have been part of r12701).
Florian Krohm [Tue, 3 Jul 2012 13:58:59 +0000 (13:58 +0000)] 
Update exp file (should have been part of r12701).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12703

14 years agodrd/tests: Make the expected output match the actual output
Bart Van Assche [Tue, 3 Jul 2012 07:53:34 +0000 (07:53 +0000)] 
drd/tests: Make the expected output match the actual output

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12702

14 years agoAdd command line flag --trace-notabove which I've found handy.
Florian Krohm [Mon, 2 Jul 2012 21:13:34 +0000 (21:13 +0000)] 
Add command line flag --trace-notabove which I've found handy.
There are 4 cases now:
(1) Neither --trace-notbelow nor --trace-notabove are given
    No superblocks are traced (same behaviour as before)
(2) --trace-notbelow=YY is given
    Superblocks in interval [YY ... ] are traced. (same behaviour as before)
(3) --trace-notabove=XX is given
    Superblocks in interval [0 ... XX] are traced.
(4) Both --trace-notbelow=YY and --trace-notabove=XX are given
    Superblocks in the interval [XX..YY] are traced

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12701

14 years agodrd/tests: Follow-up for r12690
Bart Van Assche [Mon, 2 Jul 2012 18:47:44 +0000 (18:47 +0000)] 
drd/tests: Follow-up for r12690

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12700

14 years agoFinal round of moving fixed bugs from 3_7_BUGSTATUS to NEWS.
Florian Krohm [Mon, 2 Jul 2012 15:03:29 +0000 (15:03 +0000)] 
Final round of moving fixed bugs from 3_7_BUGSTATUS to NEWS.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12699

14 years agoMove more fixed bugs from 3_7_BUGSTATUS to NEWS.
Florian Krohm [Mon, 2 Jul 2012 12:14:00 +0000 (12:14 +0000)] 
Move more fixed bugs from 3_7_BUGSTATUS to NEWS.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12698

14 years agoRemoved some bugs that were marked invalid. I did not move them to NEWS
Florian Krohm [Sun, 1 Jul 2012 21:55:13 +0000 (21:55 +0000)] 
Removed some bugs that were marked invalid. I did not move them to NEWS
because I don't think we want to report those.
Moved some more from 3_7_BUGSTATUS to NEWS because they are marked as FIXED
in Bugzilla.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12697

14 years agoRemove some more entries from 3_7_BUGSTATUS that were already in NEWS.
Florian Krohm [Sun, 1 Jul 2012 21:24:53 +0000 (21:24 +0000)] 
Remove some more entries from 3_7_BUGSTATUS that were already in NEWS.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12696

14 years agomove the mips port bug entry from 3_7_BUGSTATUS.txt to NEWS
Philippe Waroquiers [Sun, 1 Jul 2012 20:35:26 +0000 (20:35 +0000)] 
move the mips port bug entry from 3_7_BUGSTATUS.txt to NEWS

Note: a paragraph in PLATFORM CHANGES section of NEWS indicating
the addition of the MIPS port (and some details) would be good
(as this is a major change).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12695

14 years agoMove one more fixed bug from 3_7_BUGSTATUS.txt to NEWS.
Philippe Waroquiers [Sun, 1 Jul 2012 20:31:43 +0000 (20:31 +0000)] 
Move one more fixed bug from 3_7_BUGSTATUS.txt to NEWS.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12694

14 years agoMove some fixed bugs from 3_7_BUGSTATUS.txt to NEWS.
Philippe Waroquiers [Sun, 1 Jul 2012 20:06:04 +0000 (20:06 +0000)] 
Move some fixed bugs from 3_7_BUGSTATUS.txt to NEWS.
Removed some bugs from 3_7_BUGSTATUS.txt that were already in NEWS.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12693

14 years agoUpdate with header lines for all reported bugs so far.
Julian Seward [Sat, 30 Jun 2012 20:38:44 +0000 (20:38 +0000)] 
Update with header lines for all reported bugs so far.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12692

14 years agoDon't be spooked by DW_TAG_{structure,class,union}_type that has only
Julian Seward [Sat, 30 Jun 2012 20:21:58 +0000 (20:21 +0000)] 
Don't be spooked by DW_TAG_{structure,class,union}_type that has only
a DW_AT_declaration but no name.  Just make up a name and add the
type.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12691

14 years agodrd/tests: Rework r12662 as suggested by Florian Krohm
Bart Van Assche [Sat, 30 Jun 2012 18:00:08 +0000 (18:00 +0000)] 
drd/tests: Rework r12662 as suggested by Florian Krohm

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12690

14 years agoAdd a text file giving a top-level summary of all bugs reported since
Julian Seward [Sat, 30 Jun 2012 16:51:00 +0000 (16:51 +0000)] 
Add a text file giving a top-level summary of all bugs reported since
3.7.0 was released, that have not been fixed.  (Old habits die hard!)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12689

14 years agoUpdate following some bug triaging.
Julian Seward [Sat, 30 Jun 2012 16:44:45 +0000 (16:44 +0000)] 
Update following some bug triaging.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12688

14 years agoGetting rid of the warnings about incompatible pointer types on MIPS.
Petar Jovanovic [Sat, 30 Jun 2012 02:43:29 +0000 (02:43 +0000)] 
Getting rid of the warnings about incompatible pointer types on MIPS.

vki_signalfn_t has been incorrectly defined in vki-mips32-linux.h, and that
caused warnings elsewhere.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12687

14 years agoRemoving the warning about defined yet unused function on MIPS.
Petar Jovanovic [Sat, 30 Jun 2012 02:12:13 +0000 (02:12 +0000)] 
Removing the warning about defined yet unused function on MIPS.

Getting rid of the warning for the function handler_unsup_insn which is not
used on MIPS.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12686

14 years agoIncrease allowed size of a back-trace to 500 frames.
Florian Krohm [Fri, 29 Jun 2012 21:20:52 +0000 (21:20 +0000)] 
Increase allowed size of a back-trace to 500 frames.
This limit is large enough for all practical purposes. It exists
only to sanity check the value specified with --num-callers.
Be frugal in record_ExeContext_wrk and only allocate on the stack
as many frames as needed.
Testcase included.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12685

14 years ago* add folding rules for CmpNE32(x,x) and CmpEQ32(x,x),
Julian Seward [Fri, 29 Jun 2012 16:26:17 +0000 (16:26 +0000)] 
* add folding rules for CmpNE32(x,x) and CmpEQ32(x,x),
  apparently popular on ARM

* make the printer-outer of missed opportunities be controllable
  by --vex-iropt-verbosity=, and make it not cause sameIRExprs
  to assert

(Should be 2 separate commits really)

git-svn-id: svn://svn.valgrind.org/vex/trunk@2419

14 years agoFold some long lines (formatting-only change).
Julian Seward [Fri, 29 Jun 2012 15:36:44 +0000 (15:36 +0000)] 
Fold some long lines (formatting-only change).

git-svn-id: svn://svn.valgrind.org/vex/trunk@2418

14 years agoAdd folding rules for
Julian Seward [Fri, 29 Jun 2012 15:33:09 +0000 (15:33 +0000)] 
Add folding rules for
CmpEQ32x4 V256to64_0 V256to64_1 V256to64_2 V256to64_3

git-svn-id: svn://svn.valgrind.org/vex/trunk@2417

14 years agoGenerate type-correct IR (always a good thing :-) when instrumenting
Julian Seward [Fri, 29 Jun 2012 15:29:37 +0000 (15:29 +0000)] 
Generate type-correct IR (always a good thing :-) when instrumenting
256 bit stores with --undef-value-errors=no.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12684

14 years agoAdd a new IRConst kind -- V256 -- containing an abbreviated vector
Julian Seward [Fri, 29 Jun 2012 15:28:24 +0000 (15:28 +0000)] 
Add a new IRConst kind -- V256 -- containing an abbreviated vector
immediate with 1 bit per byte, in the style of V128.  This is so we
can actually write constants of type V256, which is necessary for some
Memcheck instrumentation of 256 bit primops.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2416

14 years agoAdd some constant folding rules for V128 and V256 types.
Julian Seward [Fri, 29 Jun 2012 14:44:44 +0000 (14:44 +0000)] 
Add some constant folding rules for V128 and V256 types.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2415

14 years agoUpdated.
Florian Krohm [Fri, 29 Jun 2012 14:23:22 +0000 (14:23 +0000)] 
Updated.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12683

14 years agoRemove an extraneous "extern".
Julian Seward [Thu, 28 Jun 2012 19:29:01 +0000 (19:29 +0000)] 
Remove an extraneous "extern".

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12682

14 years agoFix inline assembly for the "lfiwax" insn test. #302536.
Julian Seward [Thu, 28 Jun 2012 18:40:43 +0000 (18:40 +0000)] 
Fix inline assembly for the "lfiwax" insn test.  #302536.
(Carl Love, carll@us.ibm.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12681

14 years agoAdding README.mips to distribution documents.
Petar Jovanovic [Thu, 28 Jun 2012 09:58:05 +0000 (09:58 +0000)] 
Adding README.mips to distribution documents.

Small change to dist-docs.xml to include README.mips.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12680

14 years agoUse multiple processors to build these tests.
Julian Seward [Thu, 28 Jun 2012 09:12:58 +0000 (09:12 +0000)] 
Use multiple processors to build these tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12679

14 years agoAdding README.mips to EXTRA_DIST in Makefile.am.
Petar Jovanovic [Wed, 27 Jun 2012 16:07:30 +0000 (16:07 +0000)] 
Adding README.mips to EXTRA_DIST in Makefile.am.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12678

14 years agoCalculate the size of vki_elf_gregset_t via operator sizeof on MIPS platforms.
Petar Jovanovic [Wed, 27 Jun 2012 14:14:26 +0000 (14:14 +0000)] 
Calculate the size of vki_elf_gregset_t via operator sizeof on MIPS platforms.

The value VKI_ELF_NGREG is now defined with the the help of operator sizeof.
Incorrect size triggered an assertion in the file coredump-elf.c.
The issue was reported as coredump problem at:
https://bugs.kde.org/show_bug.cgi?id=270777

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12677

14 years agoComment-only change re findSSECmpOp.
Julian Seward [Wed, 27 Jun 2012 10:27:13 +0000 (10:27 +0000)] 
Comment-only change re findSSECmpOp.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2414

14 years agoAdding README.mips to Valgrind root directory.
Petar Jovanovic [Tue, 26 Jun 2012 11:30:18 +0000 (11:30 +0000)] 
Adding README.mips to Valgrind root directory.

The file lists supported platforms and tools, and it gives suggestions how to
use configure options depending on platform and toolchain.
Previously, these instructions were available at:
https://bugs.kde.org/show_bug.cgi?id=270777.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12676

14 years agoEnable AVX by default, on processors that support it.
Julian Seward [Mon, 25 Jun 2012 07:58:53 +0000 (07:58 +0000)] 
Enable AVX by default, on processors that support it.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2413

14 years agoFinalise the expected output.
Julian Seward [Mon, 25 Jun 2012 07:55:53 +0000 (07:55 +0000)] 
Finalise the expected output.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12675

14 years agoImprove testing of AVX FP comparisons.
Julian Seward [Mon, 25 Jun 2012 07:52:47 +0000 (07:52 +0000)] 
Improve testing of AVX FP comparisons.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12674

14 years agoAdd handling of 256-bit vector FP arithmetic ops, so as to support AVX.
Julian Seward [Mon, 25 Jun 2012 07:52:15 +0000 (07:52 +0000)] 
Add handling of 256-bit vector FP arithmetic ops, so as to support AVX.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12673

14 years agoAdd IR ops Iop_CmpNEZ32x8 and Iop_CmpNEZ64x4, needed for Memcheck
Julian Seward [Mon, 25 Jun 2012 07:46:18 +0000 (07:46 +0000)] 
Add IR ops Iop_CmpNEZ32x8 and Iop_CmpNEZ64x4, needed for Memcheck
instrumentation of 256 bit vector arithmetic.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2412

14 years agoHandle a couple more AVX floating point comparison cases.
Julian Seward [Mon, 25 Jun 2012 07:40:54 +0000 (07:40 +0000)] 
Handle a couple more AVX floating point comparison cases.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2411

14 years agoUpdate.
Julian Seward [Sun, 24 Jun 2012 15:11:48 +0000 (15:11 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12672

14 years agoMore AVX insns:
Julian Seward [Sun, 24 Jun 2012 15:11:38 +0000 (15:11 +0000)] 
More AVX insns:

VAESIMC xmm2/m128, xmm1 = VEX.128.66.0F38.WIG DB /r
VAESENC xmm3/m128, xmm2, xmm1 = VEX.128.66.0F38.WIG DC /r
VAESENCLAST xmm3/m128, xmm2, xmm1 = VEX.128.66.0F38.WIG DD /r
VAESDEC xmm3/m128, xmm2, xmm1 = VEX.128.66.0F38.WIG DE /r
VAESDECLAST xmm3/m128, xmm2, xmm1 = VEX.128.66.0F38.WIG DF /r
VPCLMULQDQ imm8, xmm3/m128,xmm2,xmm1
VAESKEYGENASSIST imm8, xmm2/m128, xmm1 = VEX.128.66.0F3A.WIG DF /r

(Jakub Jelinek, jakub@redhat.com), #273475 comments 138 and 139.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2410

14 years agoUpdate.
Julian Seward [Sun, 24 Jun 2012 14:58:08 +0000 (14:58 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12671

14 years agoMore AVX insns:
Julian Seward [Sun, 24 Jun 2012 14:57:59 +0000 (14:57 +0000)] 
More AVX insns:

VMOVDDUP ymm2/m256, ymm1 = VEX.256.F2.0F.WIG /12 r
VMOVLPS m64, xmm1, xmm2 = VEX.NDS.128.0F.WIG 12 /r
VMOVLPS xmm1, m64 = VEX.128.0F.WIG 13 /r
VRCPSS xmm3/m64(E), xmm2(V), xmm1(G) = VEX.NDS.LIG.F3.0F.WIG 53 /r
VRCPPS xmm2/m128(E), xmm1(G) = VEX.NDS.128.0F.WIG 53 /r
VRCPPS ymm2/m256(E), ymm1(G) = VEX.NDS.256.0F.WIG 53 /r
VPSADBW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG F6 /r
VPSIGNB xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 08 /r
VPSIGNW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 09 /r
VPSIGND xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 0A /r
VPMULHRSW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 0B /r
VBROADCASTF128 m128, ymm1 = VEX.256.66.0F38.WIG 1A /r
VPEXTRW = VEX.128.66.0F3A.W0 15 /r ib

(Jakub Jelinek, jakub@redhat.com), #273475 comment 137.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2409

14 years agoUpdate.
Julian Seward [Sun, 24 Jun 2012 14:27:06 +0000 (14:27 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12670

14 years agoMore AVX insns:
Julian Seward [Sun, 24 Jun 2012 14:26:30 +0000 (14:26 +0000)] 
More AVX insns:

VPACKSSWB r/m, rV, r ::: r = QNarrowBin16Sto8Sx16(rV, r/m)
VPAVGB xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG E0 /r
VPAVGW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG E3 /r
VPADDSB xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG EC /r
VPADDSW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG ED /r
VPHADDW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 01 /r
VPHADDD xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 02 /r
VPHADDSW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 03 /r
VPMADDUBSW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 04 /r
VPHSUBW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 05 /r
VPHSUBD xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 06 /r
VPHSUBSW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 07 /r
VPABSB xmm2/m128, xmm1 = VEX.128.66.0F38.WIG 1C /r
VPABSW xmm2/m128, xmm1 = VEX.128.66.0F38.WIG 1D /r
VPMOVSXBQ xmm2/m16, xmm1 = VEX.128.66.0F38.WIG 22 /r
VPMOVSXWQ xmm2/m32, xmm1 = VEX.128.66.0F38.WIG 24 /r
VPACKUSDW = VEX.NDS.128.66.0F38.WIG 2B /r
VPMOVZXBQ = VEX.128.66.0F38.WIG 32 /r
VPMOVZXWQ xmm2/m32, xmm1 = VEX.128.66.0F38.WIG 34 /r
VPMOVZXDQ xmm2/m64, xmm1 = VEX.128.66.0F38.WIG 35 /r
VMPSADBW = VEX.NDS.128.66.0F3A.WIG 42 /r ib

(Jakub Jelinek, jakub@redhat.com), #273475 comment 136.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2408

14 years agoUpdate.
Julian Seward [Sun, 24 Jun 2012 14:00:56 +0000 (14:00 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12669

14 years agoEven more AVX isns:
Julian Seward [Sun, 24 Jun 2012 14:00:27 +0000 (14:00 +0000)] 
Even more AVX isns:

VMOVHPS m64, xmm1, xmm2 = VEX.NDS.128.0F.WIG 16 /r
VMOVHPS xmm1, m64 = VEX.128.0F.WIG 17 /r
VMOVNTPD xmm1, m128 = VEX.128.66.0F.WIG 2B /r
VMOVNTPS xmm1, m128 = VEX.128.0F.WIG 2B /r
VMOVNTPD ymm1, m256 = VEX.256.66.0F.WIG 2B /r
VMOVNTPS ymm1, m256 = VEX.256.0F.WIG 2B /r
VMOVMSKPD xmm2, r32 = VEX.128.66.0F.WIG 50 /r
VMOVMSKPD ymm2, r32 = VEX.256.66.0F.WIG 50 /r
VMOVMSKPS xmm2, r32 = VEX.128.0F.WIG 50 /r
VMOVMSKPS ymm2, r32 = VEX.256.0F.WIG 50 /r
VMINPS ymm3/m256, ymm2, ymm1 = VEX.NDS.256.0F.WIG 5D /r
VMINPD xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG 5D /r
VMINPD ymm3/m256, ymm2, ymm1 = VEX.NDS.256.66.0F.WIG 5D /r
VMAXPS ymm3/m256, ymm2, ymm1 = VEX.NDS.256.0F.WIG 5F /r
VMAXPD xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG 5F /r
VMAXPD ymm3/m256, ymm2, ymm1 = VEX.NDS.256.66.0F.WIG 5F /r
VMOVNTDQ ymm1, m256 = VEX.256.66.0F.WIG E7 /r
VMASKMOVDQU xmm2, xmm1 = VEX.128.66.0F.WIG F7 /r
VMOVNTDQA m128, xmm1 = VEX.128.66.0F38.WIG 2A /r

(Jakub Jelinek, jakub@redhat.com), #273475 comment 135.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2407

14 years agoUpdate.
Julian Seward [Sun, 24 Jun 2012 13:44:35 +0000 (13:44 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12668

14 years agoEven more AVX insns:
Julian Seward [Sun, 24 Jun 2012 13:44:17 +0000 (13:44 +0000)] 
Even more AVX insns:

VCVTSD2SI xmm1/m32, r32 = VEX.LIG.F2.0F.W0 2D /r
VCVTSD2SI xmm1/m64, r64 = VEX.LIG.F2.0F.W1 2D /r
VCVTSS2SI xmm1/m32, r32 = VEX.LIG.F3.0F.W0 2D /r
VCVTSS2SI xmm1/m64, r64 = VEX.LIG.F3.0F.W1 2D /r
VHADDPS xmm3/m128, xmm2, xmm1 = VEX.NDS.128.F2.0F.WIG 7C /r
VHSUBPS xmm3/m128, xmm2, xmm1 = VEX.NDS.128.F2.0F.WIG 7D /r
VHADDPS ymm3/m256, ymm2, ymm1 = VEX.NDS.256.F2.0F.WIG 7C /r
VHSUBPS ymm3/m256, ymm2, ymm1 = VEX.NDS.256.F2.0F.WIG 7D /r
VHADDPD xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG 7C /r
VHSUBPD xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG 7D /r
VHADDPD ymm3/m256, ymm2, ymm1 = VEX.NDS.256.66.0F.WIG 7C /r
VHSUBPD ymm3/m256, ymm2, ymm1 = VEX.NDS.256.66.0F.WIG 7D /r
VLDDQU m256, ymm1 = VEX.256.F2.0F.WIG F0 /r
VLDDQU m128, xmm1 = VEX.128.F2.0F.WIG F0 /r
VEXTRACTPS imm8, xmm1, r32/m32 = VEX.128.66.0F3A.WIG 17 /r ib
VDPPS imm8, xmm3/m128,xmm2,xmm1 = VEX.NDS.128.66.0F3A.WIG 40 /r ib
VDPPS imm8, ymm3/m128,ymm2,ymm1 = VEX.NDS.128.66.0F3A.WIG 40 /r ib

(Jakub Jelinek, jakub@redhat.com), #273475 comment 134.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2406

14 years agoUpdate.
Julian Seward [Sun, 24 Jun 2012 13:28:04 +0000 (13:28 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12667

14 years agoVCMPPD and VCMPPS incremental fix
Julian Seward [Sun, 24 Jun 2012 13:27:46 +0000 (13:27 +0000)] 
VCMPPD and VCMPPS incremental fix

(Jakub Jelinek, jakub@redhat.com), #273475 comment 133.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2405

14 years agoImplement more AVX insns:
Julian Seward [Sun, 24 Jun 2012 12:12:20 +0000 (12:12 +0000)] 
Implement more AVX insns:

VPCMPGTB = VEX.NDS.128.66.0F.WIG 64 /r
VPCMPGTW = VEX.NDS.128.66.0F.WIG 65 /r
VCMPPD ymm3/m256(E=argL), ymm2(V=argR), ymm1(G)
VCMPPS xmm3/m128(E=argL), xmm2(V=argR), xmm1(G)
VCMPPS ymm3/m256(E=argL), ymm2(V=argR), ymm1(G)
VADDSUBPD xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG D0 /r
VADDSUBPD ymm3/m256, ymm2, ymm1 = VEX.NDS.256.66.0F.WIG D0 /r
VADDSUBPS xmm3/m128, xmm2, xmm1 = VEX.NDS.128.F2.0F.WIG D0 /r
VADDSUBPS ymm3/m256, ymm2, ymm1 = VEX.NDS.256.F2.0F.WIG D0 /r
VPMADDWD xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG F5 /r
VPMULDQ xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F38.WIG 28 /r

(Jakub Jelinek, jakub@redhat.com), #273475 comment 132.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2404

14 years agoVROUND{PS,PD}: fix incorrect comments.
Julian Seward [Sun, 24 Jun 2012 11:09:37 +0000 (11:09 +0000)] 
VROUND{PS,PD}: fix incorrect comments.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2403

14 years agoUpdate.
Julian Seward [Sun, 24 Jun 2012 11:04:08 +0000 (11:04 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12666

14 years agoAllow each test to be run multiple times (default is 3), rather than
Julian Seward [Sun, 24 Jun 2012 10:30:53 +0000 (10:30 +0000)] 
Allow each test to be run multiple times (default is 3), rather than
just once.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12665

14 years agoUpdate.
Julian Seward [Sun, 24 Jun 2012 09:10:38 +0000 (09:10 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12664

14 years agoFix compiler warnings for ppc test cases. Patch from Carl Love (carll@us.ibm.com...
Bart Van Assche [Sat, 23 Jun 2012 11:04:01 +0000 (11:04 +0000)] 
Fix compiler warnings for ppc test cases. Patch from Carl Love (carll@us.ibm.com). See also #302205.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12663

14 years agodrd: Add yet another expected output file
Bart Van Assche [Sat, 23 Jun 2012 10:15:17 +0000 (10:15 +0000)] 
drd: Add yet another expected output file

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12662

14 years agoInitializing destination reg for MoveIns test for MIPS.
Petar Jovanovic [Fri, 22 Jun 2012 13:44:04 +0000 (13:44 +0000)] 
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

14 years agoFix for incorrectly passed params to IRExpr_Mux0X in MIPS port.
Petar Jovanovic [Fri, 22 Jun 2012 12:36:19 +0000 (12:36 +0000)] 
Fix for incorrectly passed params to IRExpr_Mux0X in MIPS port.

Input params to IRExpr_Mux0X have swapped positions in a few places inside
disInstr_MIPS_WRK(). This patch fixes none/tests/mips32/MoveIns.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2402

14 years agoUpdate these for Linaro's pre-release build of Ubuntu 12.04, with
Julian Seward [Fri, 22 Jun 2012 09:34:58 +0000 (09:34 +0000)] 
Update these for Linaro's pre-release build of Ubuntu 12.04, with
Linaro gcc 4.6.3, running on an A9.  Not sure why these need to be
updated, but they results are same as native on said platform, so am
not worried.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12660

14 years agoAdd test cases for UHADD16.
Julian Seward [Fri, 22 Jun 2012 09:28:58 +0000 (09:28 +0000)] 
Add test cases for UHADD16.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12659

14 years agoImplement (inexplicably missing) UHADD16.
Julian Seward [Fri, 22 Jun 2012 09:27:54 +0000 (09:27 +0000)] 
Implement (inexplicably missing) UHADD16.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2401

14 years agoCorrecting sys_shmdt wrapper for MIPS Linux.
Petar Jovanovic [Thu, 21 Jun 2012 17:33:35 +0000 (17:33 +0000)] 
Correcting sys_shmdt wrapper for MIPS Linux.

This patch fixes incorrect handling of sys_shmdt for MIPS. Linux wrappers have
been added for sys_sigprocmask, sys_timerfd_create, sys_timerfd_gettime, and
sys_timerfd_settime on MIPS.
The bug has been reported at https://bugs.kde.org/show_bug.cgi?id=270777 as
sh_mat issue, and it can be reproduced with shmat-sample.c from
https://bugs.kde.org/show_bug.cgi?id=222545.
The change also fixes sigprocmask from memcheck tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12658

14 years agoAdd support for
Julian Seward [Thu, 21 Jun 2012 09:17:58 +0000 (09:17 +0000)] 
Add support for

VPSUBSB xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG E8 /r
VPSUBSW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG E9 /r
VROUNDPS imm8, xmm3/m128, xmm2, xmm1
VROUNDPS imm8, ymm3/m256, ymm2, ymm1
VROUNDPD imm8, xmm3/m128, xmm2, xmm1
VROUNDPD imm8, ymm3/m256, ymm2, ymm1
VROUNDSS imm8, xmm3/m32, xmm2, xmm1
VROUNDSD imm8, xmm3/m64, xmm2, xmm1

(Jakub Jelinek, jakub@redhat.com), #273475 comment 130.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2400

14 years agoAdd support for
Julian Seward [Thu, 21 Jun 2012 09:08:19 +0000 (09:08 +0000)] 
Add support for

VPSRLW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG D1 /r
VPSRLD xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG D2 /r
VPSRLQ xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG D3 /r
VPSRAW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG E1 /r
VPSRAD xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG E2 /r
VPSLLW xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG F1 /r
VPSLLD xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG F2 /r
VPSLLQ xmm3/m128, xmm2, xmm1 = VEX.NDS.128.66.0F.WIG F3 /r
VBLENDVPS xmmG, xmmE/memE, xmmV, xmmIS4
VBLENDVPS ymmG, ymmE/memE, ymmV, ymmIS4
VBLENDVPD xmmG, xmmE/memE, xmmV, xmmIS4
VBLENDVPD ymmG, ymmE/memE, ymmV, ymmIS4

(Jakub Jelinek, jakub@redhat.com), #273475 comment 129.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2399

14 years agoAdd support for
Julian Seward [Thu, 21 Jun 2012 08:53:48 +0000 (08:53 +0000)] 
Add support for

VTESTPS xmm2/m128, xmm1 = VEX.128.66.0F38.WIG 0E /r
VTESTPS ymm2/m256, ymm1 = VEX.256.66.0F38.WIG 0E /r
VTESTPD xmm2/m128, xmm1 = VEX.128.66.0F38.WIG 0F /r
VTESTPD ymm2/m256, ymm1 = VEX.256.66.0F38.WIG 0F /r
VPTEST xmm2/m128, xmm1 = VEX.128.66.0F38.WIG 17 /r
VPTEST ymm2/m256, ymm1 = VEX.256.66.0F38.WIG 17 /r

(Jakub Jelinek, jakub@redhat.com), #273475 comment 127.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2398