aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/testsuite/gas/i386/float.l15
-rw-r--r--gas/testsuite/gas/i386/float.s8
-rw-r--r--opcodes/i386-opc.tbl2
-rw-r--r--opcodes/i386-tbl.h2
4 files changed, 22 insertions, 5 deletions
diff --git a/gas/testsuite/gas/i386/float.l b/gas/testsuite/gas/i386/float.l
index ec56f55..d7b3ca0 100644
--- a/gas/testsuite/gas/i386/float.l
+++ b/gas/testsuite/gas/i386/float.l
@@ -80,6 +80,15 @@
67 0080 DEFB [ ]*fdivrp %st\(3\)
68 0082 DEFB [ ]*fdivrp %st,%st\(3\)
69 [ ]*
- 70 0084 00000000 [ ]*.p2align 4,0
- 70 00000000
- 70 00000000
+ 70 0084 DDE9 [ ]*fucomp %st\(1\)
+ 71 0086 DDE2 [ ]*fucom %st\(2\)
+ 72 0088 DAE9 [ ]*fucompp
+ 73 008a DBF2 [ ]*fcomi %st\(2\)
+ 74 008c DFF3 [ ]*fcomip %st\(3\)
+ 75 008e DBEC [ ]*fucomi %st\(4\)
+ 76 0090 DFED [ ]*fucomip %st\(5\)
+ 77 [ ]*
+ 78 0092 00000000 [ ]*.p2align 4,0
+ 78 00000000
+ 78 00000000
+ 78 0000
diff --git a/gas/testsuite/gas/i386/float.s b/gas/testsuite/gas/i386/float.s
index 03d30b7..1388e5b 100644
--- a/gas/testsuite/gas/i386/float.s
+++ b/gas/testsuite/gas/i386/float.s
@@ -67,4 +67,12 @@
fdivrp %st(3)
fdivrp %st,%st(3)
+ fucomp %st(1)
+ fucom %st(2)
+ fucompp
+ fcomi %st(2)
+ fcomip %st(3)
+ fucomi %st(4)
+ fucomip %st(5)
+
.p2align 4,0
diff --git a/opcodes/i386-opc.tbl b/opcodes/i386-opc.tbl
index 4b7b789..2e39b71 100644
--- a/opcodes/i386-opc.tbl
+++ b/opcodes/i386-opc.tbl
@@ -651,7 +651,7 @@ fcompp, 0xded9, FP, NoSuf, {}
fucom, 0xdd/4, i387, Modrm|NoSuf, { FloatReg }
// alias for fucom %st(1)
fucom, 0xdde1, i387, NoSuf, {}
-fucomp, 0xdd/4, i387, Modrm|NoSuf, { FloatReg }
+fucomp, 0xdd/5, i387, Modrm|NoSuf, { FloatReg }
// alias for fucomp %st(1)
fucomp, 0xdde9, i387, NoSuf, {}
fucompp, 0xdae9, i387, NoSuf, {}
diff --git a/opcodes/i386-tbl.h b/opcodes/i386-tbl.h
index 585a5bb..021f607 100644
--- a/opcodes/i386-tbl.h
+++ b/opcodes/i386-tbl.h
@@ -5290,7 +5290,7 @@ static const insn_template i386_optab[] =
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0 } } } },
- { MN_fucomp, 0xdd, 1, SPACE_BASE, 4,
+ { MN_fucomp, 0xdd, 1, SPACE_BASE, 5,
{ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,