From 21bedd2c97194d3cf8281f99cc9bd337e1510816 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 17 Jun 2022 11:34:51 -0400 Subject: [PATCH] pan/va: Rename RSCALE to LDEXP This avoids needless variation from Bifrost. While at it, fix the opcode definition: there are no abs/neg/swizzle modifiers on the signed integer source, and there's no clamp. However, there are round and infinity modes, like on Bifrost. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/valhall/ISA.xml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/panfrost/bifrost/valhall/ISA.xml b/src/panfrost/bifrost/valhall/ISA.xml index 71677fe6ce1..a5e35f9f572 100644 --- a/src/panfrost/bifrost/valhall/ISA.xml +++ b/src/panfrost/bifrost/valhall/ISA.xml @@ -1763,18 +1763,19 @@ B - - - + + + Computes $A \cdot 2^B$ by adding B to the exponent of A. Used to calculate various special functions, particularly base-2 exponents. Special case handling differs from an actual floating-point multiply, so this should not be used outside fixed instruction sequences. - A - B + + + @@ -2648,7 +2649,7 @@ special transcendental function sequences. It should not be used for general code as its special case handling differs from two back-to-back `FMA.f32` operations. Equivalent to `FMA.f32` back-to-back with - `RSCALE.f32` + `LDEXP.f32` A @@ -2664,7 +2665,7 @@ ordinary multiply would return NaN. Used in special transcendental function sequences. It should not be used for general code as its special case handling differs from two back-to-back `FMA.f32` operations. - Equivalent to `FMA.f32` back-to-back with `RSCALE.f32` + Equivalent to `FMA.f32` back-to-back with `LDEXP.f32` A @@ -2680,7 +2681,7 @@ ordinary multiply would return NaN. Used in special transcendental function sequences. It should not be used for general code as its special case handling differs from two back-to-back `FMA.f32` operations. - Equivalent to `FMA.f32` back-to-back with `RSCALE.f32` + Equivalent to `FMA.f32` back-to-back with `LDEXP.f32` A @@ -2695,7 +2696,7 @@ interpreted as a 16-bit value. Used in special transcendental function sequences. It should not be used for general code as its special case handling differs from two back-to-back `FMA.f32` operations. Equivalent - to `FMA.f32` back-to-back with `RSCALE.f32` + to `FMA.f32` back-to-back with `LDEXP.f32` A