[PATCH] D145488: [CodeGen][AArch64] Generate Pseudo instructions for integer MLA/MAD/MLS/MSB

Sushant Gokhale via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 8 21:29:04 PST 2023


sushgokh added a comment.

@paulwalker-arm

  for e = 0 to elements-1
      if ElemP[mask, e, esize] == '1' then
          integer element1 = UInt(Elem[operand1, e, esize]);
          integer element2 = UInt(Elem[operand2, e, esize]);
          integer product = element1 * element2;
          if sub_op then
              Elem[result, e, esize] = Elem[operand3, e, esize] - product;
          else
              Elem[result, e, esize] = Elem[operand3, e, esize] + product;
      else
          Elem[result, e, esize] = Elem[**operand1**, e, esize];

Ah ! Didnt notice the semantics highlighted above. I was thinking that to be operand3. Thanks for pointing out. Will make appropriate changes and upload the patch


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145488/new/

https://reviews.llvm.org/D145488



More information about the llvm-commits mailing list