]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
SSE3 and SSSE3 are two different things, so add a proper SSSE3 feature
authorTom Hughes <tom@compton.nu>
Mon, 12 Jan 2009 15:26:59 +0000 (15:26 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 12 Jan 2009 15:26:59 +0000 (15:26 +0000)
test and use that to guard the SSSE3 tests.

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

none/tests/amd64/insn_ssse3.vgtest
none/tests/amd64/ssse3_misaligned.vgtest
none/tests/x86/insn_ssse3.vgtest
none/tests/x86/ssse3_misaligned.vgtest
tests/cputest.c

index 62e9f86418407367a117305db50e60c920a41c28..311d8f24c10a977e3ea674f1321d986fb57a6fd7 100644 (file)
@@ -1,3 +1,3 @@
 prog: ../../../none/tests/amd64/insn_ssse3
-prereq: ../../../tests/cputest amd64-sse3
+prereq: ../../../tests/cputest amd64-ssse3
 vgopts: -q
index 627f3da2a47e76bb199042d14aab5dae83ce6de5..ba7656859a938f3e684bac7930753ec9192e33e0 100644 (file)
@@ -1,3 +1,3 @@
 prog: ssse3_misaligned
-prereq: ../../../tests/cputest amd64-sse3
+prereq: ../../../tests/cputest amd64-ssse3
 vgopts: -q
index 19bfa7329ea716e43560c6dc612104be399160d7..10c976cee4e1c5420bc63598e7002040d7dbd16e 100644 (file)
@@ -1,3 +1,3 @@
 prog: ../../../none/tests/x86/insn_ssse3
-prereq: ../../../tests/cputest x86-sse3
+prereq: ../../../tests/cputest x86-ssse3
 vgopts: -q
index 90a97e3161e25d5c88c883762053a78d72143450..15e8324281bb253f49cefa7da04c5cb6990a9cd3 100644 (file)
@@ -1,3 +1,3 @@
 prog: ssse3_misaligned
-prereq: ../../../tests/cputest x86-sse3
+prereq: ../../../tests/cputest x86-ssse3
 vgopts: -q
index 558655c7ec0ee1ca69efefecce396393882e34da..aab5792d5045f85be26b5e5706ec927eee000cae 100644 (file)
@@ -99,12 +99,18 @@ static Bool go(char* cpu)
    } else if ( strcmp( cpu, "x86-sse3" ) == 0 ) {
      level = 1;
      cmask = 1 << 0;
+   } else if ( strcmp( cpu, "x86-ssse3" ) == 0 ) {
+     level = 1;
+     cmask = 1 << 9;
 #if defined(__x86_64__)
    } else if ( strcmp( cpu, "amd64" ) == 0 ) {
      return True;
    } else if ( strcmp( cpu, "amd64-sse3" ) == 0 ) {
      level = 1;
      cmask = 1 << 0;
+   } else if ( strcmp( cpu, "amd64-ssse3" ) == 0 ) {
+     level = 1;
+     cmask = 1 << 9;
 #endif
    } else {
      return False;