qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 6/8] target/arm: Prepare bfdotadd() callers for FEAT_EBF supp


From: Richard Henderson
Subject: Re: [PATCH 6/8] target/arm: Prepare bfdotadd() callers for FEAT_EBF support
Date: Wed, 31 Jul 2024 11:48:09 +1000
User-agent: Mozilla Thunderbird

On 7/31/24 02:03, Peter Maydell wrote:
@@ -2790,7 +2790,7 @@ DO_MMLA_B(gvec_usmmla_b, do_usmmla_b)
   * BFloat16 Dot Product
   */
-float32 bfdotadd(float32 sum, uint32_t e1, uint32_t e2)
+bool is_ebf(CPUARMState *env, float_status *statusp, float_status *oddstatusp)
  {
      /* FPCR is ignored for BFDOT and BFMMLA. */
      float_status bf_status = {
@@ -2800,29 +2800,50 @@ float32 bfdotadd(float32 sum, uint32_t e1, uint32_t e2)
          .flush_inputs_to_zero = true,
          .default_nan_mode = true,
      };
+
+    *statusp = bf_status;
+    return false;
+}

Looking at the next patch, I think dropping the local variable is better.

  *statusp = (float_status){
      ...
  };


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]