Commit 008ab277 authored by Connor Abbott's avatar Connor Abbott

bifrost: Add fp16 rcp/rsq instructions

parent 0b08dd45
......@@ -1066,15 +1066,20 @@ static const ADDOpInfo ADDOpInfos[] = {
// approximation of 2/m using the top 17 bits. Includes special cases for
// infinity, NaN, and zero, and copies the sign bit.
{ 0x0ce00, "FRCP_TABLE", ADDOneSrc },
// Exists on G71
{ 0x0ce10, "FRCP_FAST.f16.X", ADDOneSrc },
// A similar table for inverse square root, using the high 17 bits of the
// mantissa as well as the low bit of the exponent.
{ 0x0ce20, "FRSQ_TABLE", ADDOneSrc },
{ 0x0ce30, "FRCP_FAST.f16.Y", ADDOneSrc },
{ 0x0ce50, "FRSQ_FAST.f16.X", ADDOneSrc },
// Used in the argument reduction for log. Given a floating-point number
// m * 2^e, uses the top 4 bits of m to produce an approximation to 1/m
// with the exponent forced to 0 and only the top 5 bits are nonzero. 0,
// infinity, and NaN all return 1.0.
// See the ARM patent for more information.
{ 0x0ce60, "FRCP_APPROX", ADDOneSrc },
{ 0x0ce70, "FRSQ_FAST.f16.Y", ADDOneSrc },
{ 0x0cf40, "ATAN_ASSIST", ADDTwoSrc },
{ 0x0cf48, "ATAN_TABLE", ADDTwoSrc },
{ 0x0cf50, "SIN_TABLE", ADDOneSrc },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment