aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i386-asm.h2
-rw-r--r--tests/asmtest.S4
2 files changed, 6 insertions, 0 deletions
diff --git a/i386-asm.h b/i386-asm.h
index 82e269a..f841d08 100644
--- a/i386-asm.h
+++ b/i386-asm.h
@@ -241,6 +241,8 @@ ALT(DEF_ASM_OP0L(fcomp, 0xd8d9, 0, 0))
ALT(DEF_ASM_OP1(fadd, 0xd8c0, 0, OPC_FARITH | OPC_REG, OPT_ST))
ALT(DEF_ASM_OP2(fadd, 0xd8c0, 0, OPC_FARITH | OPC_REG, OPT_ST, OPT_ST0))
+ALT(DEF_ASM_OP2(fadd, 0xdcc0, 0, OPC_FARITH | OPC_REG, OPT_ST0, OPT_ST))
+ALT(DEF_ASM_OP2(fmul, 0xdcc8, 0, OPC_FARITH | OPC_REG, OPT_ST0, OPT_ST))
ALT(DEF_ASM_OP0L(fadd, 0xdec1, 0, OPC_FARITH))
ALT(DEF_ASM_OP1(faddp, 0xdec0, 0, OPC_FARITH | OPC_REG, OPT_ST))
ALT(DEF_ASM_OP2(faddp, 0xdec0, 0, OPC_FARITH | OPC_REG, OPT_ST, OPT_ST0))
diff --git a/tests/asmtest.S b/tests/asmtest.S
index 452815c..5bc8950 100644
--- a/tests/asmtest.S
+++ b/tests/asmtest.S
@@ -248,8 +248,12 @@ L3:
fadd
fadd %st(1), %st
+ fadd %st(0), %st(1)
fadd %st(3)
+ fmul %st(0),%st(0)
+ fmul %st(0),%st(1)
+
faddp %st(5)
faddp
faddp %st(1), %st