[PATCH] D128572: [LoongArch] Add codegen support for division operations

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 3 17:47:37 PDT 2022


SixWeining added inline comments.


================
Comment at: llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp:402
+  // Build instructions:
+  //   div(or rem)   $dst, $dividend, $divisor
+  //   bnez          $divisor, 8
----------------
xen0n wrote:
> didn't notice before; this should be "mod".
Thanks. Let me fix it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D128572



More information about the llvm-commits mailing list