Commit Graph

183 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
Florian Krohm
9dd4979fd9 Followup to r13614. Forgot to update the .exp file. Now fixed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13616
2013-10-04 12:00:51 +00:00
Florian Krohm
8435fc4dc3 Add a few feature tests to configure.ac because clang does not
understand the following:
- nested functions
- -gstabs option
- loopnel instruction
- addr32 in asm statements
- 'p' constraint in asm statements

Adapt Makefiles accordingly.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13615
2013-10-04 11:35:50 +00:00
Florian Krohm
9170b1642b Remove 4 tests of the pextrw instruction.
Those tests were rejected by clang and according to the
analysis below by Tom Hughes do not add anything new.

Analysis:

I'm not 100% sure that clang is right though - the Intel manual 
clearly describes that argument as "reg" rather than "r32" which 
is why I will have included the 64 bit version in the test. It also says:

  "The upper bits of r32 or r64 is zeroed."

and:

  "If the destination operand is a general-purpose register, the
   default operand size is 64-bits in 64-bit mode."

which basically means that REX.W is implied for this op and there is 
no way to encode a 32 bit version when running in 64 bit mode.

So in principle you could encode it as:

  44 0f c5 ce 00          pextrw $0x0,%mm6,%r9d

or:

  4c 0f c5 ce 00          pextrw $0x0,%mm6,%r9

but in fact gcc assembles both versions to the first form.

Equally you could argue that as REX.W is implied both versions 
should disassemble as %r9.

So I think clang is being overly picky, and if it was only going to 
accept one version I would argue it should be %r9 not %r9d!

In practical terms dropping the second set of tests doesn't lose us anything though.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13614
2013-10-04 11:29:26 +00:00
Florian Krohm
dfb5c06054 Change some inline assembler so it is no longer rejected by clang
as suggested by John Reiser and Greg Parker.
It seems that GCC has a more relaxed attitude about what it accepts
as valid input.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13610
2013-10-03 20:54:52 +00:00
Florian Krohm
392c321bb4 Check whether binutils supports TSX instructions.
Guard none/tests/amd64/tm1 accordingly.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13587
2013-09-30 16:32:53 +00:00
Julian Seward
2a8d194303 Add a test program of sorts, for XBEGIN and XTEST.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13579
2013-09-27 15:22:50 +00:00
Tom Hughes
a990370cde Update test results for EQ_UQ SSE FP comparison operation. BZ#317444.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13344
2013-03-28 09:35:39 +00:00
Julian Seward
78b3b945b4 Fix BMI assembler configure check and avx2/bmi/fma vgtest prereqs.
#317461.  (Mark Wielaard, mjw@redhat.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13343
2013-03-27 21:59:21 +00:00
Tom Hughes
9ada76d11c Test support for the EQ_UQ SSE FP comparison operation. BZ#317444.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13342
2013-03-27 15:39:18 +00:00
Julian Seward
1c50d16462 Testcase additions pertaining to #305728, which added support for
AVX2, BMI1, BMI2 and FMA instructions.
(Jakub Jelinek, jakub@redhat.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13339
2013-03-27 11:42:05 +00:00
Julian Seward
ccf13bd148 Add test cases for SSE4 MOVNTDQA insn. Pertains to #316503.
(Patrick J. LoPresti, lopresti@gmail.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13336
2013-03-26 10:29:05 +00:00
Julian Seward
d362026f49 Add test cases for PCMPxSTRx variant $0x46. See #306664.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12979
2012-09-17 13:43:57 +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
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
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
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
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
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
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
Julian Seward
9cdc3535d5 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12672
2012-06-24 15:11:48 +00:00
Julian Seward
f34f860376 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12671
2012-06-24 14:58:08 +00:00
Julian Seward
5a5f0707c2 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12670
2012-06-24 14:27:06 +00:00
Julian Seward
abdffdd424 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12669
2012-06-24 14:00:56 +00:00
Julian Seward
5f15bb1f11 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12668
2012-06-24 13:44:35 +00:00
Julian Seward
5270b0c1aa Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12667
2012-06-24 13:28:04 +00:00
Julian Seward
54a27a479a Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12666
2012-06-24 11:04:08 +00:00
Julian Seward
78935b2a3a 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
2012-06-24 10:30:53 +00:00
Julian Seward
03c59c3191 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12664
2012-06-24 09:10:38 +00:00
Julian Seward
f8be24cd53 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12657
2012-06-20 11:46:42 +00:00
Julian Seward
dbb4ad6c0f Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12656
2012-06-20 10:21:22 +00:00
Julian Seward
00b6562e77 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12654
2012-06-18 23:17:46 +00:00
Julian Seward
c751f921d4 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12653
2012-06-18 22:10:03 +00:00
Julian Seward
77766b2f17 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12652
2012-06-18 16:40:05 +00:00
Julian Seward
d5734af62d Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12640
2012-06-15 15:48:24 +00:00
Julian Seward
0be35400eb Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12639
2012-06-14 23:32:44 +00:00
Julian Seward
5c359951f0 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12636
2012-06-14 08:52:11 +00:00
Julian Seward
76514276a2 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12633
2012-06-13 11:11:10 +00:00