From 74eed4a9b33f72560b0393ba4bfe89d07660a15d Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 17 Mar 2009 18:26:47 -0700 Subject: 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 --- misc/genfma.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'misc') diff --git a/misc/genfma.pl b/misc/genfma.pl index b1bb001d..8f849c27 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; } } -- cgit v1.2.1