summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2005-06-16 18:45:37 +0000
committerDavid Schleef <ds@schleef.org>2005-06-16 18:45:37 +0000
commit0c3d0007dc1f5c36645ab79d84672ba2e9723b99 (patch)
tree3d6dc6636c998a78d2c3e9e4cad195c9ebf2bc04
parent508ba3985f38081917b76fcfc4ac84e73ca2954a (diff)
downloadliboil-0c3d0007dc1f5c36645ab79d84672ba2e9723b99.tar.gz
* testsuite/instruction/Makefile.am:
* testsuite/instruction/check-instructions.pl: Add sse2 instructions
-rw-r--r--ChangeLog5
-rw-r--r--testsuite/instruction/Makefile.am8
-rwxr-xr-xtestsuite/instruction/check-instructions.pl61
3 files changed, 71 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 99303bb..6f91ee8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-16 David Schleef <ds@schleef.org>
+
+ * testsuite/instruction/Makefile.am:
+ * testsuite/instruction/check-instructions.pl: Add sse2 instructions
+
2005-06-15 David Schleef <ds@schleef.org>
* configure.ac: Add instruction checker
diff --git a/testsuite/instruction/Makefile.am b/testsuite/instruction/Makefile.am
index 804d643..54f021f 100644
--- a/testsuite/instruction/Makefile.am
+++ b/testsuite/instruction/Makefile.am
@@ -1,4 +1,6 @@
+EXTRA_DIST = check-instructions.pl
+
noinst_PROGRAMS = list-impls
noinst_DATA = report
@@ -7,9 +9,9 @@ AM_LDFLAGS = $(LIBOIL_LIBS)
AM_CFLAGS = $(LIBOIL_CFLAGS)
-report: list-impls
- ./check-instructions.pl $(top_builddir)/liboil/.libs/liboiltmp1.so >report
+report: list-impls $(srcdir)/check-instructions.pl
+ $(srcdir)/check-instructions.pl $(top_builddir)/liboil/.libs/liboiltmp1.so >report
-EXTRA_CLEAN = report
+CLEANFILES = report
diff --git a/testsuite/instruction/check-instructions.pl b/testsuite/instruction/check-instructions.pl
index fa250ee..c9e3c80 100755
--- a/testsuite/instruction/check-instructions.pl
+++ b/testsuite/instruction/check-instructions.pl
@@ -378,8 +378,69 @@ sub check
"unpckhpd",
"unpcklpd",
"xorpd",
+ "movd", # xmm regs
+ "movdqa",
+ "movdqu",
+ "movq2dq",
+ "movdq2q",
+ "movq", # xmm regs
+ "packssdw",
+ "packsswb",
+ "packuswb",
+ "paddq",
+ "padd",
+ "padds",
+ "paddus",
+ "pand", # xmm regs
+ "pandn", # xmm regs
+ "pavgb", # xmm regs
+ "pavgw",
+ "pcmpeq",
+ "pcmpgt",
+ "pextrw",
+ "pinsrw",
+ "pmaddwd",
+ "pmaxsw",
+ "pmaxub",
+ "pminsw",
+ "pminub",
+ "pmovmskb",
+ "pmulhuw",
+ "pmulhw",
+ "pmullw",
+ "pmuludq",
+ "por",
+ "psadbw",
+ "pshuflw",
+ "pshufhw",
+ "pshufd",
+ "pslldq",
+ "psll",
+ "psra",
+ "psrldq",
+ "psrl",
+ "psubq",
+ "psub",
+ "psubs",
+ "psubus",
+ "punpckh",
+ "punpckhqdq",
+ "punpckl",
+ "punpcklqdq",
+ "pxor",
+ "maskmovdqu",
+ "movntpd",
+ "movntdq",
+ "movnti",
+ "pause",
+ "lfence",
+ "mfence",
);
+#@clflush_list = (
+# "clflush",
+#);
+
$funcs = {};
$ARGV=shift @ARGV;