From afeb6ee3772edd18ad4b2b17abf57578ee91a9a3 Mon Sep 17 00:00:00 2001
From: bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Date: Fri, 11 Apr 2003 00:12:54 +0000
Subject: [PATCH] suppressed undefined shldw shrdw

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@91 c046a42c-6fe2-441c-8c8c-71466251a162
---
 tests/test-i386-shift.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/test-i386-shift.h b/tests/test-i386-shift.h
index f3795d9f36..c3d8793b8b 100644
--- a/tests/test-i386-shift.h
+++ b/tests/test-i386-shift.h
@@ -108,7 +108,12 @@ void exec_opb(int s0, int s1, int iflags)
 void exec_op(int s2, int s0, int s1)
 {
     exec_opl(s2, s0, s1, 0);
+#ifdef OP_SHIFTD
+    if (s1 <= 15)
+        exec_opw(s2, s0, s1, 0);
+#else
     exec_opw(s2, s0, s1, 0);
+#endif
 #ifndef OP_NOBYTE
     exec_opb(s0, s1, 0);
 #endif