Refs #75. Use ffreep opcode directly. Please check out http://www.sandpile.org/x86...
authorXianyi Zhang <xianyi@iscas.ac.cn>
Wed, 30 May 2012 12:25:01 +0000 (20:25 +0800)
committerXianyi Zhang <xianyi@iscas.ac.cn>
Wed, 30 May 2012 12:25:01 +0000 (20:25 +0800)
common_x86.h
common_x86_64.h

index 8f1a030..4c17f3a 100644 (file)
@@ -356,4 +356,9 @@ REALNAME:
 
 #ifndef ALIGN_6
 #define ALIGN_6 .align 64
+
+// ffreep %st(0). 
+// Because Clang didn't support ffreep, we directly use the opcode.
+// Please check out http://www.sandpile.org/x86/opc_fpu.htm 
+#define ffreep .byte 0xdf, 0xc0 #
 #endif
index 2dc788c..e61e37e 100644 (file)
@@ -448,4 +448,8 @@ REALNAME:
 #define ALIGN_6 .align 64
 #endif
 
+// ffreep %st(0). 
+// Because Clang didn't support ffreep, we directly use the opcode.
+// Please check out http://www.sandpile.org/x86/opc_fpu.htm 
+#define ffreep .byte 0xdf, 0xc0 #
 #endif