[clang] [llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 31 01:39:16 PDT 2025


================
@@ -0,0 +1,1059 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt --passes=loop-vectorize --mtriple=riscv64 -mattr="+zvfh,+v" -S < %s | FileCheck %s --check-prefix=RV64
+; RUN: opt --passes=loop-vectorize --mtriple=aarch64 -mattr="+neon" -S < %s | FileCheck %s --check-prefix=ARM64
+; FIXME: ARM64+SVE cannot output vscale style code
+; RUN: opt --passes=loop-vectorize --mtriple=x86_64 -S < %s | FileCheck %s --check-prefix=X64
+
+ at af32 = dso_local local_unnamed_addr global [4096 x float] zeroinitializer, align 4
+ at bf32 = dso_local local_unnamed_addr global [4096 x float] zeroinitializer, align 4
+ at cf32 = dso_local local_unnamed_addr global [4096 x float] zeroinitializer, align 4
+ at af64 = dso_local local_unnamed_addr global [4096 x double] zeroinitializer, align 8
+ at bf64 = dso_local local_unnamed_addr global [4096 x double] zeroinitializer, align 8
+ at cf64 = dso_local local_unnamed_addr global [4096 x double] zeroinitializer, align 8
+ at af16 = dso_local local_unnamed_addr global [4096 x half] zeroinitializer, align 2
+ at bf16 = dso_local local_unnamed_addr global [4096 x half] zeroinitializer, align 2
+ at cf16 = dso_local local_unnamed_addr global [4096 x half] zeroinitializer, align 2
+
+; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
+define dso_local void @f32min() local_unnamed_addr  {
----------------
wangpc-pp wrote:

Remove `dso_local` and `local_unnamed_addr`? And also `Function Attrs` above.

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


More information about the llvm-commits mailing list