[llvm] [GlobalISel] Allow expansion of urem by constant in prelegalizer (PR #145914)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 30 01:11:16 PDT 2025


================
@@ -0,0 +1,243 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s -mtriple=aarch64-unknown-unknown | FileCheck %s --check-prefixes=CHECK-SD
+; RUN: llc < %s -mtriple=aarch64-unknown-unknown -global-isel | FileCheck %s --check-prefixes=CHECK-GI
----------------
jyli0116 wrote:

Not as far as I'm aware - there's a fairly complete set of unit tests in rem.ll for urem/srem between two registers, it would probably be nice to have the same for urem/srem by constant, so I'll be working on adding that.

https://github.com/llvm/llvm-project/pull/145914


More information about the llvm-commits mailing list