summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-03-17 18:26:47 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2009-03-17 18:26:47 -0700
commit74eed4a9b33f72560b0393ba4bfe89d07660a15d (patch)
treeedbafb397d8482b4dd0b70e25c3035c6b39da74e /misc
parentfc2297e9457ca9cc54d8cb0166ba30c9dc1b28fd (diff)
downloadnasm-74eed4a9b33f72560b0393ba4bfe89d07660a15d.tar.gz
nasm-74eed4a9b33f72560b0393ba4bfe89d07660a15d.tar.bz2
nasm-74eed4a9b33f72560b0393ba4bfe89d07660a15d.zip
BR 2690688: Fix opcodes for FMA instructions
Two bugs with respect to the FMA instructions: - the variant increment is supposed to be 0x10, not 0x01. - the base opcode for scalar VFNMADD is 0x9d, not 0x9c
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/genfma.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/genfma.pl b/misc/genfma.pl
index b1bb001..8f849c2 100755
--- a/misc/genfma.pl
+++ b/misc/genfma.pl
@@ -11,7 +11,7 @@
%scalar_insns = (
'vfmadd' => 0x99,
'vfmsub' => 0x9b,
- 'vfnmadd' => 0x9c,
+ 'vfnmadd' => 0x9d,
'vfnmsub' => 0x9f
);
@@ -42,7 +42,7 @@ foreach $pi ( sort(keys(%packed_insns)) ) {
}
}
}
- $op++;
+ $op += 0x10;
}
}
@@ -72,6 +72,6 @@ foreach $si ( sort(keys(%scalar_insns)) ) {
"FMA,FUTURE,${sx}";
}
}
- $op++;
+ $op += 0x10;
}
}