Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Unified Diff: gdb/testsuite/gdb.reverse/i386-sse-reverse.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.reverse/i386-reverse.exp ('k') | gdb/testsuite/gdb.reverse/i386-sse-reverse.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.reverse/i386-sse-reverse.c
diff --git a/gdb/testsuite/gdb.reverse/i386-sse-reverse.c b/gdb/testsuite/gdb.reverse/i386-sse-reverse.c
index 2691663e5391f6a2413f46bbadde504248e72a1d..490eed32c34b0065f3045dac9207d58882b77661 100644
--- a/gdb/testsuite/gdb.reverse/i386-sse-reverse.c
+++ b/gdb/testsuite/gdb.reverse/i386-sse-reverse.c
@@ -59,9 +59,6 @@ sse_test (void)
asm ("mulss %xmm1, %xmm0");
asm ("orpd %xmm2, %xmm0");
asm ("orps %xmm0, %xmm1");
- asm ("pabsb %xmm1, %xmm2");
- asm ("pabsw %xmm2, %xmm1");
- asm ("pabsd %xmm1, %xmm0");
asm ("packsswb %xmm0, %xmm2");
asm ("packssdw %xmm0, %xmm1");
asm ("ucomisd %xmm1, %xmm2");
@@ -73,6 +70,25 @@ sse_test (void)
} /* end sse_test */
void
+ssse3_test (void)
+{
+ char buf0[] = {0, 1, 2, 3, 4, 5, 6, 7, 8,
+ 9, 10, 11, 12, 13, 14, 15};
+ char buf1[] = {16, 17, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, 29, 30, 31};
+ char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39,
+ 40, 41, 42, 43, 44, 45, 46, 47};
+
+ asm ("movupd %0, %%xmm0":"=m"(buf0));
+ asm ("movupd %0, %%xmm1":"=m"(buf1));
+ asm ("movupd %0, %%xmm2":"=m"(buf2));
+
+ asm ("pabsb %xmm1, %xmm2");
+ asm ("pabsw %xmm2, %xmm1");
+ asm ("pabsd %xmm1, %xmm0");
+} /* end ssse3_test */
+
+void
sse4_test (void)
{
char buf0[] = {0, 1, 2, 3, 4, 5, 6, 7, 8,
@@ -96,6 +112,7 @@ int
main ()
{
sse_test ();
+ ssse3_test ();
sse4_test ();
return 0; /* end of main */
}
« no previous file with comments | « gdb/testsuite/gdb.reverse/i386-reverse.exp ('k') | gdb/testsuite/gdb.reverse/i386-sse-reverse.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698