[clang] [llvm] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] instructions with inputs not signed-extended. (PR #116764)
Lu Weining via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 25 18:19:20 PST 2024
================
@@ -0,0 +1,75 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc --mtriple=loongarch64 -mattr=+d,-div32 < %s | FileCheck %s --check-prefix=LA64
+; RUN: llc --mtriple=loongarch64 -mattr=+d,+div32 < %s | FileCheck %s --check-prefix=LA64-DIV32
+
+define i32 @divw(i64 %0, i64 %1) {
----------------
SixWeining wrote:
Use non-number-variable-name so that we can backport it to older llvm versions.
https://github.com/llvm/llvm-project/pull/116764
More information about the cfe-commits
mailing list