[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
Wed Nov 20 00:39:16 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 dso_local noundef signext i32 @divw(i64 noundef %0, i64 noundef %1) local_unnamed_addr #0 {
----------------
SixWeining wrote:
Remove useless attributes like `dso_local` `#0` ... See exist tests for reference.
https://github.com/llvm/llvm-project/pull/116764
More information about the cfe-commits
mailing list