2003-02-14 Patrik Torstensson
authorPatrik Torstensson <totte@mono-cvs.ximian.com>
Fri, 14 Feb 2003 10:01:29 +0000 (10:01 -0000)
committerPatrik Torstensson <totte@mono-cvs.ximian.com>
Fri, 14 Feb 2003 10:01:29 +0000 (10:01 -0000)
* x86-codegen.h: Added fstsw op code for getting fp flags

svn path=/trunk/mono/; revision=11577

mono/arch/x86/x86-codegen.h

index cea7d895cf8148d15f221f23ebf2af0c4fd3e4b2..d816e27228dc35c3c74cdf9a4e132d6baec74b55 100644 (file)
@@ -6,6 +6,7 @@
  *   Intel Corporation (ORP Project)
  *   Sergey Chaban (serge@wildwestsoftware.com)
  *   Dietmar Maurer (dietmar@ximian.com)
+ *   Patrik Torstensson
  * 
  * Copyright (C)  2000 Intel Corporation.  All rights reserved.
  * Copyright (C)  2001, 2002 Ximian, Inc.
@@ -1231,6 +1232,13 @@ typedef union {
                }       \
        } while (0)
 
+#define x86_fstsw(inst)        \
+       do {    \
+                       *(inst)++ = (unsigned char)0x9b;        \
+                       *(inst)++ = (unsigned char)0xdf;        \
+                       *(inst)++ = (unsigned char)0xe0;        \
+       } while (0)
+
 /**
  * @x86_fist_membase
  * Converts content of ST(0) to integer and stores it at memory location