]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
15 years agoAvoid genSpill/genReload asserts for VFP spills/reloads with offsets
Julian Seward [Wed, 1 Sep 2010 10:25:51 +0000 (10:25 +0000)] 
Avoid genSpill/genReload asserts for VFP spills/reloads with offsets
greater than 1024 from the baseblock pointer.

Also, update comments on the use of r12.

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

15 years agoSuppressed a few warnings reported by the Microsoft C Compiler.
Bart Van Assche [Wed, 1 Sep 2010 10:18:36 +0000 (10:18 +0000)] 
Suppressed a few warnings reported by the Microsoft C Compiler.

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

15 years agoCompiles now with the Microsoft C Compiler too.
Bart Van Assche [Wed, 1 Sep 2010 10:17:53 +0000 (10:17 +0000)] 
Compiles now with the Microsoft C Compiler too.

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

15 years agoAdded command-line option --prefix-to-strip=... Closes #245535.
Bart Van Assche [Tue, 31 Aug 2010 15:18:32 +0000 (15:18 +0000)] 
Added command-line option --prefix-to-strip=... Closes #245535.

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

15 years agoExpand ${PWD} in the vgopts: line of .vgtest files.
Bart Van Assche [Tue, 31 Aug 2010 15:15:35 +0000 (15:15 +0000)] 
Expand ${PWD} in the vgopts: line of .vgtest files.

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

15 years agoAnother supp for 10.5.x.
Julian Seward [Tue, 31 Aug 2010 13:43:06 +0000 (13:43 +0000)] 
Another supp for 10.5.x.

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

15 years agoImproved test cases for Neon VLDn/VSTn instructions.
Julian Seward [Tue, 31 Aug 2010 09:47:25 +0000 (09:47 +0000)] 
Improved test cases for Neon VLDn/VSTn instructions.
(Kirill Batuzov <batuzovk@ispras.ru>)

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

15 years agoReduce to 5 the number of available Q (128-bit) registers available
Julian Seward [Tue, 31 Aug 2010 09:32:40 +0000 (09:32 +0000)] 
Reduce to 5 the number of available Q (128-bit) registers available
to the allocator, in an attempt to make register allocation a bit
faster on ARM.

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

15 years agoSupport the PLI instruction (icache preload hint) in ARM mode, so
Julian Seward [Tue, 31 Aug 2010 09:31:06 +0000 (09:31 +0000)] 
Support the PLI instruction (icache preload hint) in ARM mode, so
as to make self-hosting on ARM work.

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

15 years agoFix debug printing for Neon VLDn/VSTn instructions.
Julian Seward [Tue, 31 Aug 2010 09:29:51 +0000 (09:29 +0000)] 
Fix debug printing for Neon VLDn/VSTn instructions.
(Kirill Batuzov <batuzovk@ispras.ru)

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

15 years agoFix generation of writeback values in Neon VLDn/VSTn instructions.
Julian Seward [Tue, 31 Aug 2010 09:18:22 +0000 (09:18 +0000)] 
Fix generation of writeback values in Neon VLDn/VSTn instructions.

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

15 years agoRemoved a recently added suppression pattern again.
Bart Van Assche [Sun, 29 Aug 2010 16:59:48 +0000 (16:59 +0000)] 
Removed a recently added suppression pattern again.

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

15 years agoRemoved ANNOTATE_HAPPENS_BEFORE/AFTER() usage restrictions.
Bart Van Assche [Sun, 29 Aug 2010 16:22:04 +0000 (16:22 +0000)] 
Removed ANNOTATE_HAPPENS_BEFORE/AFTER() usage restrictions.

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

15 years agoDRD does now recognize Helgrind's start/stop tracking client requests too.
Bart Van Assche [Sun, 29 Aug 2010 16:20:54 +0000 (16:20 +0000)] 
DRD does now recognize Helgrind's start/stop tracking client requests too.

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

15 years agoAdded more suppression patterns.
Bart Van Assche [Sun, 29 Aug 2010 16:19:45 +0000 (16:19 +0000)] 
Added more suppression patterns.

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

15 years agoDon't trigger an assertion failure if len == 0.
Bart Van Assche [Sun, 29 Aug 2010 15:30:16 +0000 (15:30 +0000)] 
Don't trigger an assertion failure if len == 0.

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

15 years agoAdd test cases for v6 media instructions in both ARM and Thumb mode.
Julian Seward [Sun, 29 Aug 2010 12:35:37 +0000 (12:35 +0000)] 
Add test cases for v6 media instructions in both ARM and Thumb mode.
(Donna Robinson, donna@valgrind.org).

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

15 years agoAdd support for v6 media instructions in both ARM and Thumb modes.
Julian Seward [Sun, 29 Aug 2010 12:33:02 +0000 (12:33 +0000)] 
Add support for v6 media instructions in both ARM and Thumb modes.
(Donna Robinson, donna@valgrind.org)

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

15 years agoSource code cleanup.
Bart Van Assche [Sun, 29 Aug 2010 09:51:06 +0000 (09:51 +0000)] 
Source code cleanup.

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

15 years agoAdded command-line option --trace-alloc and disabled --free-is-write by default.
Bart Van Assche [Sun, 29 Aug 2010 09:19:07 +0000 (09:19 +0000)] 
Added command-line option --trace-alloc and disabled --free-is-write by default.

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

15 years agoAdded read_after_free regression test.
Bart Van Assche [Sun, 29 Aug 2010 09:15:19 +0000 (09:15 +0000)] 
Added read_after_free regression test.

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

15 years agoAdded new DRD command-line option --free-is-write and enabled it by default.
Bart Van Assche [Sun, 29 Aug 2010 07:20:30 +0000 (07:20 +0000)] 
Added new DRD command-line option --free-is-write and enabled it by default.

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

15 years agoUpdated Subversion ignore list.
Bart Van Assche [Fri, 27 Aug 2010 16:13:41 +0000 (16:13 +0000)] 
Updated Subversion ignore list.

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

15 years agoUpdated memcheck/tests/Makefile.am.
Bart Van Assche [Fri, 27 Aug 2010 10:55:04 +0000 (10:55 +0000)] 
Updated memcheck/tests/Makefile.am.

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

15 years agoFilter out lines that differ between x86 and ppc.
Bart Van Assche [Fri, 27 Aug 2010 10:52:40 +0000 (10:52 +0000)] 
Filter out lines that differ between x86 and ppc.

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

15 years agoPorted to Win32. Tested that both RUNNING_ON_VALGRIND and VALGRIND_PRINTF()
Bart Van Assche [Fri, 27 Aug 2010 10:05:27 +0000 (10:05 +0000)] 
Ported to Win32. Tested that both RUNNING_ON_VALGRIND and VALGRIND_PRINTF()
work with MinGW and Microsoft Visual Studio. Should close #210935.

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

15 years agoSpelling fix.
Bart Van Assche [Fri, 27 Aug 2010 10:01:32 +0000 (10:01 +0000)] 
Spelling fix.

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

15 years agoUpdated Subversion ignore list.
Bart Van Assche [Fri, 27 Aug 2010 05:48:29 +0000 (05:48 +0000)] 
Updated Subversion ignore list.

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

15 years agoAdded new memcheck command-line option --show-possibly-lost. Closes #201170.
Bart Van Assche [Thu, 26 Aug 2010 10:56:27 +0000 (10:56 +0000)] 
Added new memcheck command-line option --show-possibly-lost. Closes #201170.

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

15 years agoUpdate comment.
Julian Seward [Thu, 26 Aug 2010 09:41:18 +0000 (09:41 +0000)] 
Update comment.

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

15 years agoarm-linux: send output to stderr, as on all other platforms.
Julian Seward [Thu, 26 Aug 2010 09:40:37 +0000 (09:40 +0000)] 
arm-linux: send output to stderr, as on all other platforms.

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

15 years agoThe argument to FIBMAP is an int, not an unsigned long. Fixes #248822.
Tom Hughes [Wed, 25 Aug 2010 09:13:44 +0000 (09:13 +0000)] 
The argument to FIBMAP is an int, not an unsigned long. Fixes #248822.

Patch from Christian Borntraeger <borntraeger@de.ibm.com>.

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

15 years agoChange the replacement for memcpy to a vectorised version that does
Julian Seward [Tue, 24 Aug 2010 09:05:52 +0000 (09:05 +0000)] 
Change the replacement for memcpy to a vectorised version that does
word copies whenever possible.  This drastically reduces the number of
memory references Memcheck has to process and speeds up a test program
that does repeated memcpys of large blocks by a factor of 4 or more.
Also add a vectorised version of memset.

The memcpy version is also constructed with a view to be used in
exp-ptrcheck, so it can copy areas of memory without losing
pointer-identity shadow data, as happens when doing all copies at a
byte granularity.

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

15 years agoHandle "Special" instructions in Thumb mode: "R3 = guest_NRADDR" and
Julian Seward [Sun, 22 Aug 2010 22:21:19 +0000 (22:21 +0000)] 
Handle "Special" instructions in Thumb mode: "R3 = guest_NRADDR" and
"branch-and-link-to-noredir R4".  This makes function wrapping work in
Thumb mode.

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

15 years agoarm-linux: make restarting interrupted syscalls work in Thumb mode.
Julian Seward [Sun, 22 Aug 2010 22:18:31 +0000 (22:18 +0000)] 
arm-linux: make restarting interrupted syscalls work in Thumb mode.
This isn't exactly right, in the sense that the if the SVC instruction
was conditional, then it will be restarted with the condition for the
following instruction.  IOW we should back up ITSTATE too, but don't.
This doesn't happen in glibc, though, afaics.

Also tighten up the checks for restarting in ARM mode.

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

15 years agoFix some compiler complaints when building on 64-bit platforms.
Julian Seward [Sun, 22 Aug 2010 18:47:30 +0000 (18:47 +0000)] 
Fix some compiler complaints when building on 64-bit platforms.

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

15 years agoFix various compiler warnings and remove an unused function.
Julian Seward [Sun, 22 Aug 2010 18:24:51 +0000 (18:24 +0000)] 
Fix various compiler warnings and remove an unused function.

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

15 years agoAdd tests for all {ARM,Thumb} x {integer,NEON} instructions.
Julian Seward [Sun, 22 Aug 2010 18:23:29 +0000 (18:23 +0000)] 
Add tests for all {ARM,Thumb} x {integer,NEON} instructions.

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

15 years agoMerge from branches/THUMB: new IR primops and associated
Julian Seward [Sun, 22 Aug 2010 12:59:02 +0000 (12:59 +0000)] 
Merge from branches/THUMB: new IR primops and associated
infrastructure, needed to represent NEON instructions.  Way more new
ones than I would like, but I can't see a way to avoid having them.

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

15 years agoMerge from branches/THUMB: hwcaps for ARM. May get simplified since
Julian Seward [Sun, 22 Aug 2010 12:54:56 +0000 (12:54 +0000)] 
Merge from branches/THUMB: hwcaps for ARM.  May get simplified since
in fact ARM v5 and v6 are not supported targets -- ARMv7 remains the
minimum supported target.

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

15 years agoMerge from branches/THUMB: back end changes to support NEON code generation.
Julian Seward [Sun, 22 Aug 2010 12:48:28 +0000 (12:48 +0000)] 
Merge from branches/THUMB: back end changes to support NEON code generation.

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

15 years agoMerge from branches/THUMB: front end changes to support:
Julian Seward [Sun, 22 Aug 2010 12:44:20 +0000 (12:44 +0000)] 
Merge from branches/THUMB: front end changes to support:
* Thumb integer instructions
* NEON in both ARM and Thumb mode
* VFP in both ARM and Thumb mode
* infrastructure to support APSR.Q flag representation

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

15 years agoMerge from branches/THUMB: A spechelper interface change that allows
Julian Seward [Sun, 22 Aug 2010 12:38:53 +0000 (12:38 +0000)] 
Merge from branches/THUMB: A spechelper interface change that allows
the helper to look back at the previous IR statements.  May be backed
out if it turns out no longer to be needed for optimising Thumb
translations.

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

15 years agoMerge from branches/THUMB: test programs for NEON and Thumb.
Julian Seward [Sun, 22 Aug 2010 12:24:47 +0000 (12:24 +0000)] 
Merge from branches/THUMB: test programs for NEON and Thumb.

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

15 years agoMerge from branches/THUMB: link-time stub needed on Ubuntu 10.04 (ARM)
Julian Seward [Sun, 22 Aug 2010 12:23:01 +0000 (12:23 +0000)] 
Merge from branches/THUMB: link-time stub needed on Ubuntu 10.04 (ARM)
(maybe.  actually I am not sure why this is necessary).

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

15 years agoMerge from branches/THUMB: m_machine changes needed for Thumb support:
Julian Seward [Sun, 22 Aug 2010 12:21:14 +0000 (12:21 +0000)] 
Merge from branches/THUMB: m_machine changes needed for Thumb support:
* track guest_R15 -> guest_R15T renaming
* change min instruction size to 2
* tidy up VG_(get_IP) etc functions a bit
* add hwcaps detection code for ARM

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

15 years agoMerge from branches/THUMB: add (partial) --track-origins support for
Julian Seward [Sun, 22 Aug 2010 12:16:25 +0000 (12:16 +0000)] 
Merge from branches/THUMB: add (partial) --track-origins support for
new guest state components needed for Thumb and NEON support.

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

15 years agoMerge from branches/THUMB: supps and mandatory redirs on Ubuntu 10.04 (ARM)
Julian Seward [Sun, 22 Aug 2010 12:13:35 +0000 (12:13 +0000)] 
Merge from branches/THUMB: supps and mandatory redirs on Ubuntu 10.04 (ARM)

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

15 years agoMerge from branches/THUMB: add support for sys_pselect6, sys_pipe2,
Julian Seward [Sun, 22 Aug 2010 12:08:59 +0000 (12:08 +0000)] 
Merge from branches/THUMB: add support for sys_pselect6, sys_pipe2,
sys_inotify_init1 on arm-linux.

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

15 years agoMerge from branches/THUMB: rack renaming of guest_R15 to guest_R15T.
Julian Seward [Sun, 22 Aug 2010 12:03:45 +0000 (12:03 +0000)] 
Merge from branches/THUMB: rack renaming of guest_R15 to guest_R15T.
Also, add extra FPSCR masking for FPSCR invariant state sanity checks.

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

15 years agoMerge from branches/THUMB: track renaming of guest_R15 to guest_R15T.
Julian Seward [Sun, 22 Aug 2010 12:00:40 +0000 (12:00 +0000)] 
Merge from branches/THUMB: track renaming of guest_R15 to guest_R15T.

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

15 years agoMerge from branches/THUMB: tool-side handling of new primops required
Julian Seward [Sun, 22 Aug 2010 11:54:14 +0000 (11:54 +0000)] 
Merge from branches/THUMB: tool-side handling of new primops required
for NEON support.  Requires further checking.

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

15 years agoMerge from branches/THUMB: build system fixes for Thumb
Julian Seward [Sun, 22 Aug 2010 11:51:26 +0000 (11:51 +0000)] 
Merge from branches/THUMB: build system fixes for Thumb

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

15 years agoAdd an intercept for strpbrk (copied from Memcheck).
Julian Seward [Sat, 21 Aug 2010 09:04:38 +0000 (09:04 +0000)] 
Add an intercept for strpbrk (copied from Memcheck).

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

15 years agoAdd some supps for Ubuntu 10.04 (x86_64, SSE4).
Julian Seward [Fri, 20 Aug 2010 18:25:40 +0000 (18:25 +0000)] 
Add some supps for Ubuntu 10.04 (x86_64, SSE4).

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

15 years agoIntercept strstr, required on SSE4 capable Linux targets.
Julian Seward [Fri, 20 Aug 2010 18:25:15 +0000 (18:25 +0000)] 
Intercept strstr, required on SSE4 capable Linux targets.

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

15 years agoAdd in comments a (validated) strspn replacement, should it become
Julian Seward [Fri, 20 Aug 2010 18:24:16 +0000 (18:24 +0000)] 
Add in comments a (validated) strspn replacement, should it become
necessary.

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

15 years agoAdd a new client request, VALGRIND_MAP_IP_TO_SRCLOC, so that clients
Julian Seward [Fri, 20 Aug 2010 18:22:07 +0000 (18:22 +0000)] 
Add a new client request, VALGRIND_MAP_IP_TO_SRCLOC, so that clients
can query their own debug info.

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

15 years agoEnable SSE 4.1 and 4.2 by default on x86_64. (x86 remains stuck
Julian Seward [Thu, 19 Aug 2010 13:25:10 +0000 (13:25 +0000)] 
Enable SSE 4.1 and 4.2 by default on x86_64.  (x86 remains stuck
at SSE3, at least for the time being.)

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

15 years agoAdd intercepts for strstr, strpbrk, strcspn. These are needed for
Julian Seward [Thu, 19 Aug 2010 13:22:34 +0000 (13:22 +0000)] 
Add intercepts for strstr, strpbrk, strcspn.  These are needed for
glibc-2.11 when running on SSE4-enabled (virtual) CPUs, for the usual
reason: to avoid ultra-optimised routines using the SSE 4.2 PCMPxSTRx
instructions.  I would not be surprised if it turned out that strspn
was required, but I haven't seen a need for it so far.

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

15 years agoAdd a moderately comprehensive implementation of the SSE4.2 string
Julian Seward [Tue, 17 Aug 2010 22:52:08 +0000 (22:52 +0000)] 
Add a moderately comprehensive implementation of the SSE4.2 string
instructions PCMP{I,E}STR{I,M}.  They are an absolute nightmare of
complexity.  Most of the 8-bit data processing variants are supported,
but none of the 16-bit variants.

Also add support for PINSRB and PTEST.

With these changes, I believe Valgrind supports all the SSE4.2
instructions used in glibc-2.11 on x86_64-linux, as well as anything
that gcc can emit.  So that gives fairly good coverage.

Currently these instructions are handled, but CPUID still claims to be
an older, non-SSE4 capable Core 2, so that software that correctly
checks CPU features should not use them.  Following further testing I
will enable the relevant SSE4.2 bits in CPUID.

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

15 years agoAdd a test which checks the ISTRI-vs-ESTRI-vs-ISTRM-vs-ESTRM
Julian Seward [Tue, 17 Aug 2010 22:43:21 +0000 (22:43 +0000)] 
Add a test which checks the ISTRI-vs-ESTRI-vs-ISTRM-vs-ESTRM
aspects of PCMP{I,E}STR{I,M}.  Doesn't check the actual arithmetic
very much -- that's done by pcmpstr64.c.

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

15 years agoAdd tests for PINSRB and PTEST.
Julian Seward [Tue, 17 Aug 2010 22:40:47 +0000 (22:40 +0000)] 
Add tests for PINSRB and PTEST.

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

15 years agoFix strict-aliasing violations; + minor futzing.
Julian Seward [Tue, 17 Aug 2010 22:39:46 +0000 (22:39 +0000)] 
Fix strict-aliasing violations; + minor futzing.

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

15 years agoAdded two new suppression patterns and generalized an existing one.
Bart Van Assche [Tue, 17 Aug 2010 15:19:55 +0000 (15:19 +0000)] 
Added two new suppression patterns and generalized an existing one.

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

15 years agoFixed a compiler warning.
Bart Van Assche [Tue, 17 Aug 2010 15:18:47 +0000 (15:18 +0000)] 
Fixed a compiler warning.

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

15 years agoMajorly improve and generalise the core arithmetic routines.
Julian Seward [Tue, 17 Aug 2010 00:19:25 +0000 (00:19 +0000)] 
Majorly improve and generalise the core arithmetic routines.

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

15 years agoAdd more intercepts for strcpy, strncmp, strcmp, so as to reduce the
Julian Seward [Mon, 16 Aug 2010 22:56:16 +0000 (22:56 +0000)] 
Add more intercepts for strcpy, strncmp, strcmp, so as to reduce the
noise level on Ubuntu 10.04 64-bit.

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

15 years agoMade sure that the CFLAGS variable specified on the configure command line
Bart Van Assche [Sun, 15 Aug 2010 18:54:15 +0000 (18:54 +0000)] 
Made sure that the CFLAGS variable specified on the configure command line
is not ignored. Fixes #247980.

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

15 years agoAnother supp for OSX 10.5.
Julian Seward [Thu, 12 Aug 2010 13:30:02 +0000 (13:30 +0000)] 
Another supp for OSX 10.5.

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

15 years agoGeneralized a suppression pattern.
Bart Van Assche [Tue, 10 Aug 2010 08:05:40 +0000 (08:05 +0000)] 
Generalized a suppression pattern.

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

15 years agoAdd a test program for PCMPISTRI on amd64 (not yet hooked up).
Julian Seward [Fri, 6 Aug 2010 08:10:45 +0000 (08:10 +0000)] 
Add a test program for PCMPISTRI on amd64 (not yet hooked up).

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

15 years agoTrack vex r2001 (initial PCMPISTRI support):
Julian Seward [Fri, 6 Aug 2010 08:01:47 +0000 (08:01 +0000)] 
Track vex r2001 (initial PCMPISTRI support):

* handle new pseudo-reg XMM16 in memcheck/mc_machine.c

* run_thread_for_a_while: assert that the amd64 XMM guest reg array
  has no holes and the elements are the right size, so that the
  (PCMP)ISTRI_* helpers can treat it as an array.

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

15 years agoAdd partial support for the SSE 4.2 PCMPISTRI instruction, at least
Julian Seward [Fri, 6 Aug 2010 07:59:38 +0000 (07:59 +0000)] 
Add partial support for the SSE 4.2 PCMPISTRI instruction, at least
for (some of) the sub-cases that glibc uses (64-bit mode only).  Also,
prepare for transitioning CPUID in 64-bit mode to indicate SSE4.2
support (not yet enabled).

Be warned, this commit will require a from-clean rebuild of Valgrind.

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

15 years agoUpdate for Core iX.
Julian Seward [Fri, 6 Aug 2010 07:55:29 +0000 (07:55 +0000)] 
Update for Core iX.

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

15 years agoFollow-up for r11191: made this test pass again.
Bart Van Assche [Sat, 31 Jul 2010 13:37:58 +0000 (13:37 +0000)] 
Follow-up for r11191: made this test pass again.

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

15 years agoPasses now when compiled with gcc 4.5.x too.
Bart Van Assche [Sat, 31 Jul 2010 13:13:53 +0000 (13:13 +0000)] 
Passes now when compiled with gcc 4.5.x too.

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

15 years agoPartially connect up the LZCNT tests. What remains to be done is to
Julian Seward [Fri, 30 Jul 2010 15:11:53 +0000 (15:11 +0000)] 
Partially connect up the LZCNT tests.  What remains to be done is to
make their building conditional on whether the assembler understands
'lzcnt', which is a configure time test.  (Probably simpler to do a
single test for SSE4.1, 4.2 and 4a support as that will soon be
required anyway.)

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

15 years agoAdd the ability to detect "amd64-lzcnt" and "x86-lzcnt".
Julian Seward [Fri, 30 Jul 2010 15:07:42 +0000 (15:07 +0000)] 
Add the ability to detect "amd64-lzcnt" and "x86-lzcnt".

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

15 years agoUse VALGRIND_PRINTF to print the first line of the message so that
Tom Hughes [Fri, 30 Jul 2010 13:14:11 +0000 (13:14 +0000)] 
Use VALGRIND_PRINTF to print the first line of the message so that
we only get one copy of the backtrace. Reported in bug #246258.

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

15 years agoAvoid that gcc 4.5.x reports the warning "taking address of expression of type void...
Bart Van Assche [Thu, 29 Jul 2010 18:12:23 +0000 (18:12 +0000)] 
Avoid that gcc 4.5.x reports the warning "taking address of expression of type void". Tested on amd64 and on ppc64.

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

15 years agoDon't trash the ELF ABI redzone for amd64 when emulating BT{,S,R,C}
Julian Seward [Thu, 29 Jul 2010 18:10:51 +0000 (18:10 +0000)] 
Don't trash the ELF ABI redzone for amd64 when emulating BT{,S,R,C}
reg,reg.  Fixes (well, at least, makes an appalling kludge a bit less
appalling) #245925.

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

15 years agoAdd a folding rule for 32Sto64.
Julian Seward [Thu, 29 Jul 2010 16:12:41 +0000 (16:12 +0000)] 
Add a folding rule for 32Sto64.

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

15 years agoTest cases for LZCNT instruction support. Not wired up yet.
Julian Seward [Thu, 29 Jul 2010 15:55:09 +0000 (15:55 +0000)] 
Test cases for LZCNT instruction support.  Not wired up yet.

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

15 years agox86/amd64: detect whether the CPU supports LZCNT. Followup to
Julian Seward [Thu, 29 Jul 2010 15:40:32 +0000 (15:40 +0000)] 
x86/amd64: detect whether the CPU supports LZCNT.  Followup to
#212335.

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

15 years agoOnly decode LZCNT if the host supports it, since otherwise we risk
Julian Seward [Thu, 29 Jul 2010 15:39:05 +0000 (15:39 +0000)] 
Only decode LZCNT if the host supports it, since otherwise we risk
confusing it with BSR.  Followup to #212335.

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

15 years agoMade gmp, mpfr and mpc prefixes configurable.
Bart Van Assche [Thu, 29 Jul 2010 15:19:50 +0000 (15:19 +0000)] 
Made gmp, mpfr and mpc prefixes configurable.

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

15 years agoSupport the amd SSE4.something LZCNT instruction. Fixes #212335
Julian Seward [Thu, 29 Jul 2010 11:34:38 +0000 (11:34 +0000)] 
Support the amd SSE4.something LZCNT instruction.  Fixes #212335
and its various clones, at least #227551, #241290 and #240639.

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

15 years agoReverted r11238.
Bart Van Assche [Thu, 29 Jul 2010 09:34:46 +0000 (09:34 +0000)] 
Reverted r11238.

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

15 years agoAvoid that gcc 4.5.x reports the warning "taking address of expression of type void".
Bart Van Assche [Thu, 29 Jul 2010 07:53:57 +0000 (07:53 +0000)] 
Avoid that gcc 4.5.x reports the warning "taking address of expression of type void".

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

15 years agoUpdated list of suppression patterns.
Bart Van Assche [Thu, 29 Jul 2010 07:52:37 +0000 (07:52 +0000)] 
Updated list of suppression patterns.

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

15 years agoHandle mov[ua[pd G(xmm) -> E(xmm) case, which is something binutils
Julian Seward [Thu, 29 Jul 2010 07:19:30 +0000 (07:19 +0000)] 
Handle mov[ua[pd G(xmm) -> E(xmm) case, which is something binutils
doesn't produce, presumably because it uses the E->G encoding for xmm
reg-reg moves.  Fixes #238713.  (Pierre Willenbrock,
pierre@pirsoft.de).

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

15 years agoUpdate expected output for Ubuntu 10.04.
Julian Seward [Thu, 29 Jul 2010 07:03:05 +0000 (07:03 +0000)] 
Update expected output for Ubuntu 10.04.

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

15 years agoUpdate expected outputs following vex r1992.
Julian Seward [Thu, 29 Jul 2010 07:02:18 +0000 (07:02 +0000)] 
Update expected outputs following vex r1992.

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

15 years agox86/amd64 FXTRACT: mimic the Core i5 behaviour when the argument is a
Julian Seward [Thu, 29 Jul 2010 07:01:29 +0000 (07:01 +0000)] 
x86/amd64 FXTRACT: mimic the Core i5 behaviour when the argument is a
negative NaN.

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

15 years agoWhen reporting an error about an attempt to re-lock an already-locked
Julian Seward [Thu, 29 Jul 2010 05:28:02 +0000 (05:28 +0000)] 
When reporting an error about an attempt to re-lock an already-locked
lock, also report the stack where the lock was previously locked.
This makes it easier to diagnose deadlocks.

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

15 years agoComment-only change.
Julian Seward [Thu, 29 Jul 2010 05:24:20 +0000 (05:24 +0000)] 
Comment-only change.

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

15 years agoHandle sys_ioperm on Linux. Fixes #237723.
Julian Seward [Thu, 29 Jul 2010 05:18:09 +0000 (05:18 +0000)] 
Handle sys_ioperm on Linux.  Fixes #237723.

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

15 years agoIgnore a redundant REX.W prefix on an MMX pinsrw instruction
Julian Seward [Thu, 29 Jul 2010 05:13:58 +0000 (05:13 +0000)] 
Ignore a redundant REX.W prefix on an MMX pinsrw instruction
(Dan Gohman, dgohman@gmail.com).  Fixes #239992.

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

15 years agoAdd a program for printing out cpuid info.
Julian Seward [Wed, 28 Jul 2010 19:26:59 +0000 (19:26 +0000)] 
Add a program for printing out cpuid info.

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