[clang] [llvm] [RFC][MATHVEC] Introduce the LLVM's mathvec library as yet another veclib functions provider (PR #234621)

Paul Osmialowski via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 22 12:34:00 PST 2026


https://github.com/pawosm-arm updated https://github.com/llvm/llvm-project/pull/234621

>From 35693b375c4ffb1030ce97eadebfeb22a83053dc Mon Sep 17 00:00:00 2001
From: Paul Osmialowski <pawel.osmialowski at arm.com>
Date: Wed, 21 Oct 2026 17:07:11 +0000
Subject: [PATCH] [RFC][MATHVEC] Introduce the LLVM's mathvec library as yet
 another veclib functions provider

This includes the addition of the veclib mappings for the LLVM's libc
vector functions.

Note that decision on using llvm's vectorized math functions without
the fveclib flag is not a part of this PR or the RFC backing it.

RFC: https://discourse.llvm.org/t/rfc-mathvec-introduce-the-llvms-mathvec-library-as-yet-another-veclib-functions-provider/92591
---
 clang/include/clang/Options/Options.td        |   6 +-
 clang/lib/Driver/ToolChains/Clang.cpp         |   3 +-
 clang/lib/Driver/ToolChains/CommonArgs.cpp    |  36 +
 clang/test/Driver/autocomplete.c              |   1 +
 clang/test/Driver/fveclib.c                   |  30 +
 llvm/docs/Vectorizers.md                      |   2 +-
 llvm/include/llvm/Analysis/VecFuncs.def       | 152 ++++
 .../llvm/Frontend/Driver/CodeGenOptions.h     |   1 +
 llvm/include/llvm/IR/RuntimeLibcalls.td       |  77 ++
 llvm/include/llvm/IR/SystemLibraries.h        |   1 +
 llvm/lib/Analysis/TargetLibraryInfo.cpp       |  29 +
 llvm/lib/CodeGen/CodeGenToolOptions.td        |   4 +-
 llvm/lib/Frontend/Driver/CodeGenOptions.cpp   |   2 +
 llvm/lib/IR/RuntimeLibcalls.cpp               |   2 +
 .../AArch64/replace-with-veclib-llvm.ll       | 577 ++++++++++++++
 llvm/test/CodeGen/AArch64/veclib-llvm.exp.ll  |  79 ++
 .../Generic/replace-intrinsics-with-veclib.ll |  11 +
 .../AArch64/veclib-function-calls.ll          | 713 ++++++++++++++++++
 .../AArch64/veclib-intrinsic-calls.ll         | 526 +++++++++++++
 .../Util/DeclareRuntimeLibcalls/llvm.ll       |  60 ++
 llvm/test/Transforms/Util/add-TLI-mappings.ll |  38 +
 21 files changed, 2343 insertions(+), 7 deletions(-)
 create mode 100644 llvm/test/CodeGen/AArch64/replace-with-veclib-llvm.ll
 create mode 100644 llvm/test/CodeGen/AArch64/veclib-llvm.exp.ll
 create mode 100644 llvm/test/Transforms/Util/DeclareRuntimeLibcalls/llvm.ll

diff --git a/clang/include/clang/Options/Options.td b/clang/include/clang/Options/Options.td
index 304a0f1bcb44ab..8ad6b4300bd38b 100644
--- a/clang/include/clang/Options/Options.td
+++ b/clang/include/clang/Options/Options.td
@@ -4091,11 +4091,11 @@ def fveclib : Joined<["-"], "fveclib=">, Group<f_Group>,
              "  Note: -fveclib=libmvec on AArch64 requires GLIBC 2.40 or newer.">,
     HelpTextForVariants<[ClangOption, CC1Option],
       "Use the given vector functions library.\n"
-      "  Note: -fveclib={ArmPL,SLEEF,libmvec} implies -fno-math-errno.\n"
+      "  Note: -fveclib={ArmPL,SLEEF,libmvec,llvm} implies -fno-math-errno.\n"
       "  Note: -fveclib=libmvec on AArch64 requires GLIBC 2.40 or newer.">,
-    Values<"Accelerate,libmvec,MASSV,SVML,SLEEF,Darwin_libsystem_m,ArmPL,AMDLIBM,none">,
+    Values<"Accelerate,libmvec,llvm,MASSV,SVML,SLEEF,Darwin_libsystem_m,ArmPL,AMDLIBM,none">,
     NormalizedValuesScope<"llvm::driver::VectorLibrary">,
-    NormalizedValues<["Accelerate", "LIBMVEC", "MASSV", "SVML", "SLEEF",
+    NormalizedValues<["Accelerate", "LIBMVEC", "LLVM", "MASSV", "SVML", "SLEEF",
                       "Darwin_libsystem_m", "ArmPL", "AMDLIBM", "NoLibrary"]>,
     MarshallingInfoEnum<CodeGenOpts<"VecLib">, "NoLibrary">;
 def fno_lax_vector_conversions : Flag<["-"], "fno-lax-vector-conversions">, Group<f_Group>,
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 8da0251c302e24..422e7473a11676 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -2998,7 +2998,8 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
                                        const JobAction &JA) {
   // List of veclibs which when used with -fveclib imply -fno-math-errno.
   constexpr std::array VecLibImpliesNoMathErrno{llvm::StringLiteral("ArmPL"),
-                                                llvm::StringLiteral("SLEEF")};
+                                                llvm::StringLiteral("SLEEF"),
+                                                llvm::StringLiteral("llvm")};
   bool NoMathErrnoWasImpliedByVecLib = false;
   const Arg *VecLibArg = nullptr;
   // Track the arg (if any) that enabled errno after -fveclib for diagnostics.
diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp
index 6f953807ed1d98..f912bd3b433d6d 100644
--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp
+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -59,6 +59,7 @@
 #include "llvm/TargetParser/AMDGPUTargetParser.h"
 #include "llvm/TargetParser/Host.h"
 #include "llvm/TargetParser/PPCTargetParser.h"
+#include <algorithm>
 #include <optional>
 
 using namespace clang::driver;
@@ -573,6 +574,40 @@ void tools::AddLinkerInputs(const ToolChain &TC, const InputInfoList &Inputs,
         CmdArgs.push_back(Args.MakeArgString("-lm"));
       if (Triple.isOSLinux())
         CmdArgs.push_back(Args.MakeArgString("--pop-state"));
+    } else if (V == "llvm") {
+      SmallVector<std::string> CandidateLibPaths(TC.getArchSpecificLibPaths());
+      if (const auto StdlibPath = TC.getStdlibPath()) {
+        for (const Multilib &M : llvm::reverse(TC.getSelectedMultilibs())) {
+          if (M.isDefault())
+            continue;
+          SmallString<128> P(*StdlibPath);
+          llvm::sys::path::append(P, M.gccSuffix());
+          CandidateLibPaths.emplace_back(std::string(P));
+        }
+        CandidateLibPaths.emplace_back(*StdlibPath);
+      }
+      for (const auto &CandidateLibPath : CandidateLibPaths) {
+        SmallString<128> P(CandidateLibPath);
+        llvm::sys::path::append(P, "libmvec.a");
+        if (TC.getVFS().exists(std::string(P))) {
+          if (Triple.isOSLinux()) {
+            CmdArgs.push_back(Args.MakeArgString("--push-state"));
+            CmdArgs.push_back(Args.MakeArgString("--as-needed"));
+          }
+          CmdArgs.push_back(Args.MakeArgString("-L" + CandidateLibPath));
+          CmdArgs.push_back(Args.MakeArgString("-lmvec"));
+          if (Triple.isOSLinux())
+            CmdArgs.push_back(Args.MakeArgString("--pop-state"));
+          SmallVector<ArgStringList::iterator> Lms;
+          for (auto it = CmdArgs.begin(); it != CmdArgs.end(); ++it) {
+            if (std::string(*it) == "-lm")
+              Lms.push_back(it);
+          }
+          for (ArgStringList::iterator &Lm : Lms)
+            std::rotate(Lm, Lm + 1, CmdArgs.end());
+          break;
+        }
+      }
     }
   }
 
@@ -1150,6 +1185,7 @@ void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args,
         llvm::StringSwitch<std::optional<StringRef>>(ArgVecLib->getValue())
             .Case("Accelerate", "Accelerate")
             .Case("libmvec", "LIBMVEC")
+            .Case("llvm", "LLVM")
             .Case("AMDLIBM", "AMDLIBM")
             .Case("MASSV", "MASSV")
             .Case("SVML", "SVML")
diff --git a/clang/test/Driver/autocomplete.c b/clang/test/Driver/autocomplete.c
index 297d2e40d6d83a..376ee23b903843 100644
--- a/clang/test/Driver/autocomplete.c
+++ b/clang/test/Driver/autocomplete.c
@@ -85,6 +85,7 @@
 // FVECLIBALL-NEXT: ArmPL
 // FVECLIBALL-NEXT: Darwin_libsystem_m
 // FVECLIBALL-NEXT: libmvec
+// FVECLIBALL-NEXT: llvm
 // FVECLIBALL-NEXT: MASSV
 // FVECLIBALL-NEXT: none
 // FVECLIBALL-NEXT: SLEEF
diff --git a/clang/test/Driver/fveclib.c b/clang/test/Driver/fveclib.c
index c57e9aa7a3cc23..34374d2ed24834 100644
--- a/clang/test/Driver/fveclib.c
+++ b/clang/test/Driver/fveclib.c
@@ -2,6 +2,8 @@
 // RUN: %clang -### -c -fveclib=Accelerate %s 2>&1 | FileCheck --check-prefix=CHECK-ACCELERATE %s
 // RUN: %clang -### -c --target=x86_64-unknown-linux-gnu -fveclib=libmvec %s 2>&1 | FileCheck --check-prefix=CHECK-libmvec %s
 // RUN: %clang -### -c --target=aarch64-linux-gnu -fveclib=libmvec %s 2>&1 | FileCheck --check-prefix=CHECK-LIBMVEC-AARCH64 %s
+// RUN: %clang -### -c --target=x86_64-unknown-linux-gnu -fveclib=llvm %s 2>&1 | FileCheck --check-prefix=CHECK-llvm %s
+// RUN: %clang -### -c --target=aarch64-linux-gnu -fveclib=llvm %s 2>&1 | FileCheck --check-prefix=CHECK-LLVM-AARCH64 %s
 // RUN: %clang -### -c --target=x86_64-unknown-linux-gnu -fveclib=AMDLIBM %s 2>&1 | FileCheck --check-prefix=CHECK-AMDLIBM %s
 // RUN: %clang -### -c -fveclib=MASSV %s 2>&1 | FileCheck --check-prefix=CHECK-MASSV %s
 // RUN: %clang -### -c -fveclib=Darwin_libsystem_m %s 2>&1 | FileCheck --check-prefix=CHECK-DARWIN_LIBSYSTEM_M %s
@@ -14,6 +16,8 @@
 // CHECK-ACCELERATE: "-fveclib=Accelerate"
 // CHECK-libmvec: "-fveclib=libmvec"
 // CHECK-LIBMVEC-AARCH64: "-fveclib=libmvec"
+// CHECK-llvm: "-fveclib=llvm"
+// CHECK-LLVM-AARCH64: "-fveclib=llvm"
 // CHECK-AMDLIBM: "-fveclib=AMDLIBM"
 // CHECK-MASSV: "-fveclib=MASSV"
 // CHECK-DARWIN_LIBSYSTEM_M: "-fveclib=Darwin_libsystem_m"
@@ -47,6 +51,12 @@
 // RUN: %clang -### --target=aarch64-linux-gnu -fveclib=libmvec -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-LIBMVEC-AARCH64 %s
 // CHECK-LTO-LIBMVEC-AARCH64: "-plugin-opt=-vector-library=LIBMVEC"
 
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=llvm -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-LLVM %s
+// CHECK-LTO-LLVM: "-plugin-opt=-vector-library=LLVM"
+
+// RUN: %clang -### --target=aarch64-linux-gnu -fveclib=llvm -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-LLVM-AARCH64 %s
+// CHECK-LTO-LLVM-AARCH64: "-plugin-opt=-vector-library=LLVM"
+
 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=AMDLIBM -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-AMDLIBM %s
 // CHECK-LTO-AMDLIBM: "-plugin-opt=-vector-library=AMDLIBM"
 
@@ -76,6 +86,16 @@
 // CHECK-ERRNO-LIBMVEC-AARCH64: "-fveclib=libmvec"
 // CHECK-ERRNO-LIBMVEC-AARCH64-SAME: "-fmath-errno"
 
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=llvm %s 2>&1 | FileCheck --check-prefix=CHECK-ERRNO-LLVM %s
+// CHECK-ERRNO-LLVM-NOT: "-fmath-errno"
+// CHECK-ERRNO-LLVM: "-fveclib=llvm"
+// CHECK-ERRNO-LLVM-NOT: "-fmath-errno"
+
+// RUN: %clang -### --target=aarch64-linux-gnu -fveclib=llvm %s 2>&1 | FileCheck --check-prefix=CHECK-ERRNO-LLVM-AARCH64 %s
+// CHECK-ERRNO-LLVM-AARCH64-NOT: "-fmath-errno"
+// CHECK-ERRNO-LLVM-AARCH64: "-fveclib=llvm"
+// CHECK-ERRNO-LLVM-AARCH64-NOT: "-fmath-errno"
+
 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=AMDLIBM %s 2>&1 | FileCheck --check-prefix=CHECK-ERRNO-AMDLIBM %s
 // CHECK-ERRNO-AMDLIBM: "-fveclib=AMDLIBM"
 // CHECK-ERRNO-AMDLIBM-SAME: "-fmath-errno"
@@ -103,6 +123,16 @@
 // CHECK-REENABLE-ERRNO-ARMPL: "-fveclib=ArmPL"
 // CHECK-REENABLE-ERRNO-ARMPL-SAME: "-fmath-errno"
 
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=llvm -fmath-errno %s 2>&1 | FileCheck --check-prefix=CHECK-REENABLE-ERRNO-LLVM %s
+// CHECK-REENABLE-ERRNO-LLVM: math errno enabled by '-fmath-errno' after it was implicitly disabled by '-fveclib=llvm', this may limit the utilization of the vector library [-Wmath-errno-enabled-with-veclib]
+// CHECK-REENABLE-ERRNO-LLVM: "-fveclib=llvm"
+// CHECK-REENABLE-ERRNO-LLVM-SAME: "-fmath-errno"
+
+// RUN: %clang -### --target=aarch64-linux-gnu -fveclib=llvm -fmath-errno %s 2>&1 | FileCheck --check-prefix=CHECK-REENABLE-ERRNO-LLVM-AARCH64 %s
+// CHECK-REENABLE-ERRNO-LLVM-AARCH64: math errno enabled by '-fmath-errno' after it was implicitly disabled by '-fveclib=llvm', this may limit the utilization of the vector library [-Wmath-errno-enabled-with-veclib]
+// CHECK-REENABLE-ERRNO-LLVM-AARCH64: "-fveclib=llvm"
+// CHECK-REENABLE-ERRNO-LLVM-AARCH64-SAME: "-fmath-errno"
+
 // RUN: %clang -### --target=aarch64-linux-gnu -fveclib=SLEEF -fmath-errno %s 2>&1 | FileCheck --check-prefix=CHECK-REENABLE-ERRNO-SLEEF %s
 // CHECK-REENABLE-ERRNO-SLEEF: math errno enabled by '-fmath-errno' after it was implicitly disabled by '-fveclib=SLEEF', this may limit the utilization of the vector library [-Wmath-errno-enabled-with-veclib]
 // CHECK-REENABLE-ERRNO-SLEEF: "-fveclib=SLEEF"
diff --git a/llvm/docs/Vectorizers.md b/llvm/docs/Vectorizers.md
index bcb0c78e981884..76419795118ec5 100644
--- a/llvm/docs/Vectorizers.md
+++ b/llvm/docs/Vectorizers.md
@@ -346,7 +346,7 @@ Many of these math functions are only vectorizable if the file has been built
 with a specified target vector library that provides a vector implementation
 of that math function. Using clang, this is handled by the "-fveclib" command
 line option with one of the following vector libraries:
-"Accelerate,libmvec,MASSV,SVML,SLEEF,Darwin_libsystem_m,ArmPL,AMDLIBM"
+"Accelerate,libmvec,llvm,MASSV,SVML,SLEEF,Darwin_libsystem_m,ArmPL,AMDLIBM"
 
 ```console
 $ clang ... -fno-math-errno -fveclib=libmvec file.c
diff --git a/llvm/include/llvm/Analysis/VecFuncs.def b/llvm/include/llvm/Analysis/VecFuncs.def
index e4abf3bfd1e6f5..f959e640e052fa 100644
--- a/llvm/include/llvm/Analysis/VecFuncs.def
+++ b/llvm/include/llvm/Analysis/VecFuncs.def
@@ -590,6 +590,158 @@ TLI_DEFINE_VECFUNC("llvm.tanh.f32", "_ZGVnN4v_tanhf", FIXED(4), NOMASK, "_ZGV_LL
 TLI_DEFINE_VECFUNC("llvm.tanh.f64", "_ZGVsMxv_tanh", SCALABLE(2), MASKED, "_ZGVsMxv", NOCC)
 TLI_DEFINE_VECFUNC("llvm.tanh.f32", "_ZGVsMxv_tanhf", SCALABLE(4), MASKED, "_ZGVsMxv", NOCC)
 
+#elif defined(TLI_DEFINE_LLVM_X86_VECFUNCS)
+// LLVM Vector math Functions
+
+TLI_DEFINE_VECFUNC("acosf", "_LMVdN8v_acosf", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.acos.f32", "_LMVdN8v_acosf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("acoshf", "_LMVdN8v_acoshf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("acospif", "_LMVdN8v_acospif", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("asinf", "_LMVdN8v_asinf", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.asin.f32", "_LMVdN8v_asinf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("asinhf", "_LMVdN8v_asinhf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("asinpif", "_LMVdN8v_asinpif", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("atanf", "_LMVdN8v_atanf", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.atan.f32", "_LMVdN8v_atanf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("cbrtf", "_LMVdN8v_cbrtf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("cosf", "_LMVdN8v_cosf", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.cos.f32", "_LMVdN8v_cosf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("coshf", "_LMVdN8v_coshf", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.cosh.f32", "_LMVdN8v_coshf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("cospif", "_LMVdN8v_cospif", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("erff", "_LMVdN8v_erff", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("exp2f", "_LMVdN8v_exp2f", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.exp2.f32", "_LMVdN8v_exp2f", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("exp2m1f", "_LMVdN8v_exp2m1f", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("exp10f", "_LMVdN8v_exp10f", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.exp10.f32", "_LMVdN8v_exp10f", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("exp10m1f", "_LMVdN8v_exp10m1f", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("expf", "_LMVdN8v_expf", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.exp.f32", "_LMVdN8v_expf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("expm1f", "_LMVdN8v_expm1f", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("log10f", "_LMVdN8v_log10f", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.log10.f32", "_LMVdN8v_log10f", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("log1pf", "_LMVdN8v_log1pf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("log2f", "_LMVdN8v_log2f", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.log2.f32", "_LMVdN8v_log2f", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("logf", "_LMVdN8v_logf", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.log.f32", "_LMVdN8v_logf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("rsqrtf", "_LMVdN8v_rsqrtf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("sinf", "_LMVdN8v_sinf", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.sin.f32", "_LMVdN8v_sinf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("sinhf", "_LMVdN8v_sinhf", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.sinh.f32", "_LMVdN8v_sinhf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("sinpif", "_LMVdN8v_sinpif", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("tanf", "_LMVdN8v_tanf", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.tan.f32", "_LMVdN8v_tanf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("tanhf", "_LMVdN8v_tanhf", FIXED(8), "_ZGV_LLVM_N8v")
+TLI_DEFINE_VECFUNC("llvm.tanh.f32", "_LMVdN8v_tanhf", FIXED(8), "_ZGV_LLVM_N8v")
+
+TLI_DEFINE_VECFUNC("tanpif", "_LMVdN8v_tanpif", FIXED(8), "_ZGV_LLVM_N8v")
+
+#elif defined(TLI_DEFINE_LLVM_AARCH64_VECFUNCS)
+// LLVM Vector math Functions
+
+TLI_DEFINE_VECFUNC("acosf", "_LMVnN4v_acosf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.acos.f32", "_LMVnN4v_acosf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("acoshf", "_LMVnN4v_acoshf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("acospif", "_LMVnN4v_acospif", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("asinf", "_LMVnN4v_asinf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.asin.f32", "_LMVnN4v_asinf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("asinhf", "_LMVnN4v_asinhf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("asinpif", "_LMVnN4v_asinpif", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("atanf", "_LMVnN4v_atanf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.atan.f32", "_LMVnN4v_atanf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("cbrtf", "_LMVnN4v_cbrtf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("cosf", "_LMVnN4v_cosf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.cos.f32", "_LMVnN4v_cosf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("coshf", "_LMVnN4v_coshf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.cosh.f32", "_LMVnN4v_coshf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("cospif", "_LMVnN4v_cospif", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("erff", "_LMVnN4v_erff", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("exp2f", "_LMVnN4v_exp2f", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.exp2.f32", "_LMVnN4v_exp2f", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("exp2m1f", "_LMVnN4v_exp2m1f", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("exp10f", "_LMVnN4v_exp10f", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.exp10.f32", "_LMVnN4v_exp10f", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("exp10m1f", "_LMVnN4v_exp10m1f", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("expf", "_LMVnN4v_expf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.exp.f32", "_LMVnN4v_expf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("expm1f", "_LMVnN4v_expm1f", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("log10f", "_LMVnN4v_log10f", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.log10.f32", "_LMVnN4v_log10f", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("log1pf", "_LMVnN4v_log1pf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("log2f", "_LMVnN4v_log2f", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.log2.f32", "_LMVnN4v_log2f", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("logf", "_LMVnN4v_logf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.log.f32", "_LMVnN4v_logf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("rsqrtf", "_LMVnN4v_rsqrtf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("sinf", "_LMVnN4v_sinf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.sin.f32", "_LMVnN4v_sinf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("sinhf", "_LMVnN4v_sinhf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.sinh.f32", "_LMVnN4v_sinhf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("sinpif", "_LMVnN4v_sinpif", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("tanf", "_LMVnN4v_tanf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.tan.f32", "_LMVnN4v_tanf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("tanhf", "_LMVnN4v_tanhf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+TLI_DEFINE_VECFUNC("llvm.tanh.f32", "_LMVnN4v_tanhf", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
+TLI_DEFINE_VECFUNC("tanpif", "_LMVnN4v_tanpif", FIXED(4), NOMASK, "_ZGV_LLVM_N4v", CallingConv::AArch64_VectorCall)
+
 #elif defined(TLI_DEFINE_MASSV_VECFUNCS)
 // IBM MASS library's vector Functions
 
diff --git a/llvm/include/llvm/Frontend/Driver/CodeGenOptions.h b/llvm/include/llvm/Frontend/Driver/CodeGenOptions.h
index 3d292139cb7d06..0c28049dc50149 100644
--- a/llvm/include/llvm/Frontend/Driver/CodeGenOptions.h
+++ b/llvm/include/llvm/Frontend/Driver/CodeGenOptions.h
@@ -45,6 +45,7 @@ enum class VectorLibrary {
   NoLibrary,          // Don't use any vector library.
   Accelerate,         // Use the Accelerate framework.
   LIBMVEC,            // GLIBC vector math library.
+  LLVM,               // LLVM vector math library.
   MASSV,              // IBM MASS vector library.
   SVML,               // Intel short vector math library.
   SLEEF,              // SLEEF SIMD Library for Evaluating Elementary Functions.
diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.td b/llvm/include/llvm/IR/RuntimeLibcalls.td
index 78a8de4ef75291..7e40c2b57447e3 100644
--- a/llvm/include/llvm/IR/RuntimeLibcalls.td
+++ b/llvm/include/llvm/IR/RuntimeLibcalls.td
@@ -5458,6 +5458,73 @@ defset list<RuntimeLibcallImpl> LIBMVEC_AARCH64_VECFUNCS = {
   def LIBMVEC__ZGVsMxvv_powf : LibmvecLibcall<POW_MASKED_NXV4F32>;
 }
 
+//===----------------------------------------------------------------------===//
+// LLVM Vector Math library functions
+//===----------------------------------------------------------------------===//
+
+defvar LLVMPrefix = "LLVM_";
+
+class LlvmLibcall<RuntimeLibcall P>
+    : RuntimeLibcallImpl<P, !substr(NAME, !size(LLVMPrefix))>;
+
+defset list<RuntimeLibcallImpl> LLVM_X86_VECFUNCS = {
+  def LLVM__LMVdN8v_acosf : LlvmLibcall<ACOS_V8F32>;
+  def LLVM__LMVdN8v_acoshf : LlvmLibcall<ACOSH_V8F32>;
+  def LLVM__LMVdN8v_asinf : LlvmLibcall<ASIN_V8F32>;
+  def LLVM__LMVdN8v_asinhf : LlvmLibcall<ASINH_V8F32>;
+  def LLVM__LMVdN8v_atanf : LlvmLibcall<ATAN_V8F32>;
+  def LLVM__LMVdN8v_atanhf : LlvmLibcall<ATANH_V8F32>;
+  def LLVM__LMVdN8v_cbrtf : LlvmLibcall<CBRT_V8F32>;
+  def LLVM__LMVdN8v_cosf : LlvmLibcall<COS_V8F32>;
+  def LLVM__LMVdN8v_coshf : LlvmLibcall<COSH_V8F32>;
+  def LLVM__LMVdN8v_cospif : LlvmLibcall<COSPI_V8F32>;
+  def LLVM__LMVdN8v_erff : LlvmLibcall<ERF_V8F32>;
+  def LLVM__LMVdN8v_exp2f : LlvmLibcall<EXP2_V8F32>;
+  def LLVM__LMVdN8v_exp10f : LlvmLibcall<EXP10_V8F32>;
+  def LLVM__LMVdN8v_expf : LlvmLibcall<EXP_V8F32>;
+  def LLVM__LMVdN8v_expm1f : LlvmLibcall<EXPM1_V8F32>;
+  def LLVM__LMVdN8v_log10f : LlvmLibcall<LOG10_V8F32>;
+  def LLVM__LMVdN8v_log1pf : LlvmLibcall<LOG1P_V8F32>;
+  def LLVM__LMVdN8v_log2f : LlvmLibcall<LOG2_V8F32>;
+  def LLVM__LMVdN8v_logf : LlvmLibcall<LOG_V8F32>;
+  def LLVM__LMVdN8v_sinf : LlvmLibcall<SIN_V8F32>;
+  def LLVM__LMVdN8v_sinhf : LlvmLibcall<SINH_V8F32>;
+  def LLVM__LMVdN8v_sinpif : LlvmLibcall<SINPI_V8F32>;
+  def LLVM__LMVdN8v_sqrtf : LlvmLibcall<SQRT_V8F32>;
+  def LLVM__LMVdN8v_tanf : LlvmLibcall<TAN_V8F32>;
+  def LLVM__LMVdN8v_tanhf : LlvmLibcall<TANH_V8F32>;
+  def LLVM__LMVdN8v_tanpif : LlvmLibcall<TANPI_V8F32>;
+}
+
+defset list<RuntimeLibcallImpl> LLVM_AARCH64_VECFUNCS = {
+  def LLVM__LMVnN4v_acosf : LlvmLibcall<ACOS_V4F32>;
+  def LLVM__LMVnN4v_acoshf : LlvmLibcall<ACOSH_V4F32>;
+  def LLVM__LMVnN4v_asinf : LlvmLibcall<ASIN_V4F32>;
+  def LLVM__LMVnN4v_asinhf : LlvmLibcall<ASINH_V4F32>;
+  def LLVM__LMVnN4v_atanf : LlvmLibcall<ATAN_V4F32>;
+  def LLVM__LMVnN4v_atanhf : LlvmLibcall<ATANH_V4F32>;
+  def LLVM__LMVnN4v_cbrtf : LlvmLibcall<CBRT_V4F32>;
+  def LLVM__LMVnN4v_cosf : LlvmLibcall<COS_V4F32>;
+  def LLVM__LMVnN4v_coshf : LlvmLibcall<COSH_V4F32>;
+  def LLVM__LMVnN4v_cospif : LlvmLibcall<COSPI_V4F32>;
+  def LLVM__LMVnN4v_erff : LlvmLibcall<ERF_V4F32>;
+  def LLVM__LMVnN4v_exp2f : LlvmLibcall<EXP2_V4F32>;
+  def LLVM__LMVnN4v_exp10f : LlvmLibcall<EXP10_V4F32>;
+  def LLVM__LMVnN4v_expf : LlvmLibcall<EXP_V4F32>;
+  def LLVM__LMVnN4v_expm1f : LlvmLibcall<EXPM1_V4F32>;
+  def LLVM__LMVnN4v_log10f : LlvmLibcall<LOG10_V4F32>;
+  def LLVM__LMVnN4v_log1pf : LlvmLibcall<LOG1P_V4F32>;
+  def LLVM__LMVnN4v_log2f : LlvmLibcall<LOG2_V4F32>;
+  def LLVM__LMVnN4v_logf : LlvmLibcall<LOG_V4F32>;
+  def LLVM__LMVnN4v_sinf : LlvmLibcall<SIN_V4F32>;
+  def LLVM__LMVnN4v_sinhf : LlvmLibcall<SINH_V4F32>;
+  def LLVM__LMVnN4v_sinpif : LlvmLibcall<SINPI_V4F32>;
+  def LLVM__LMVnN4v_sqrtf : LlvmLibcall<SQRT_V4F32>;
+  def LLVM__LMVnN4v_tanf : LlvmLibcall<TAN_V4F32>;
+  def LLVM__LMVnN4v_tanhf : LlvmLibcall<TANH_V4F32>;
+  def LLVM__LMVnN4v_tanpif : LlvmLibcall<TANPI_V4F32>;
+}
+
 //===----------------------------------------------------------------------===//
 // IBM MASS vector library (MASSV) functions
 //===----------------------------------------------------------------------===//
@@ -6219,6 +6286,16 @@ def LIBMVECAArch64Library : LibcallLibrary<"libmvec",
        !filter(entry, LIBMVEC_AARCH64_VECFUNCS,
                !match(entry.LibCallFuncName, "^_ZGVsMx"))), isAArch64>;
 
+def LLVMX86Library : LibcallLibrary<"llvm",
+  (add LLVM_X86_VECFUNCS), isX86>;
+
+def LLVMAArch64Library : LibcallLibrary<"llvm",
+  (add LibcallsWithCC<(add !filter(entry, LLVM_AARCH64_VECFUNCS,
+                                   !match(entry.LibCallFuncName, "^_LMVnN"))),
+                      AARCH64_VECTORCALL>,
+       !filter(entry, LLVM_AARCH64_VECFUNCS,
+               !match(entry.LibCallFuncName, "^_LMVsMx"))), isAArch64>;
+
 def MASSVLibrary : LibcallLibrary<"massv", (add MASSV_VECFUNCS)>;
 
 def SVMLLibrary : LibcallLibrary<"svml", (add SVML_VECFUNCS)>;
diff --git a/llvm/include/llvm/IR/SystemLibraries.h b/llvm/include/llvm/IR/SystemLibraries.h
index 5bdf67642e0e4b..58e9d7267e9af6 100644
--- a/llvm/include/llvm/IR/SystemLibraries.h
+++ b/llvm/include/llvm/IR/SystemLibraries.h
@@ -22,6 +22,7 @@ enum class VectorLibrary {
   Accelerate,       // Use Accelerate framework.
   DarwinLibSystemM, // Use Darwin's libsystem_m.
   LIBMVEC,          // GLIBC Vector Math library.
+  LLVM,             // LLVM Vector Math library.
   MASSV,            // IBM MASS vector library.
   SVML,             // Intel short vector math library.
   SLEEFGNUABI,      // SLEEF - SIMD Library for Evaluating Elementary Functions.
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp
index 30c9ecc35700e7..4af4120b45f38d 100644
--- a/llvm/lib/Analysis/TargetLibraryInfo.cpp
+++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp
@@ -1310,6 +1310,20 @@ static constexpr VecDesc VecFuncs_LIBMVEC_AARCH64[] = {
 #undef TLI_DEFINE_LIBMVEC_AARCH64_VECFUNCS
 };
 
+static constexpr VecDesc VecFuncs_LLVM_X86[] = {
+#define TLI_DEFINE_LLVM_X86_VECFUNCS
+#include "llvm/Analysis/VecFuncs.def"
+#undef TLI_DEFINE_LLVM_X86_VECFUNCS
+};
+
+static constexpr VecDesc VecFuncs_LLVM_AARCH64[] = {
+#define TLI_DEFINE_LLVM_AARCH64_VECFUNCS
+#define TLI_DEFINE_VECFUNC(SCAL, VEC, VF, MASK, VABI_PREFIX, CC)               \
+  {SCAL, VEC, VF, MASK, VABI_PREFIX, CC},
+#include "llvm/Analysis/VecFuncs.def"
+#undef TLI_DEFINE_LLVM_AARCH64_VECFUNCS
+};
+
 static constexpr VecDesc VecFuncs_MASSV[] = {
 #define TLI_DEFINE_MASSV_VECFUNCS
 #include "llvm/Analysis/VecFuncs.def"
@@ -1394,6 +1408,21 @@ void TargetLibraryInfoImpl::addVectorizableFunctionsFromVecLib(
     }
     break;
   }
+  case VectorLibrary::LLVM: {
+    switch (TargetTriple.getArch()) {
+    default:
+      break;
+    case llvm::Triple::x86:
+    case llvm::Triple::x86_64:
+      addVectorizableFunctions(VecFuncs_LLVM_X86);
+      break;
+    case llvm::Triple::aarch64:
+    case llvm::Triple::aarch64_be:
+      addVectorizableFunctions(VecFuncs_LLVM_AARCH64);
+      break;
+    }
+    break;
+  }
   case VectorLibrary::MASSV: {
     addVectorizableFunctions(VecFuncs_MASSV);
     break;
diff --git a/llvm/lib/CodeGen/CodeGenToolOptions.td b/llvm/lib/CodeGen/CodeGenToolOptions.td
index 228c92ccd4acf5..a36714151166f7 100644
--- a/llvm/lib/CodeGen/CodeGenToolOptions.td
+++ b/llvm/lib/CodeGen/CodeGenToolOptions.td
@@ -124,8 +124,8 @@ defm : BoolField<"unique-section-names", "true",
 defm : BoolField<"use-ctors", "false",
   "Use .ctors instead of .init_array">;
 defm : EnumField<"vector-library", "VectorLibrary", "VectorLibrary::NoLibrary",
-  "none,Accelerate,Darwin_libsystem_m,LIBMVEC,MASSV,SVML,sleefgnuabi,ArmPL,AMDLIBM",
-  ["VectorLibrary::NoLibrary", "VectorLibrary::Accelerate", "VectorLibrary::DarwinLibSystemM", "VectorLibrary::LIBMVEC", "VectorLibrary::MASSV", "VectorLibrary::SVML", "VectorLibrary::SLEEFGNUABI", "VectorLibrary::ArmPL", "VectorLibrary::AMDLIBM"],
+  "none,Accelerate,Darwin_libsystem_m,LIBMVEC,LLVM,MASSV,SVML,sleefgnuabi,ArmPL,AMDLIBM",
+  ["VectorLibrary::NoLibrary", "VectorLibrary::Accelerate", "VectorLibrary::DarwinLibSystemM", "VectorLibrary::LIBMVEC", "VectorLibrary::LLVM", "VectorLibrary::MASSV", "VectorLibrary::SVML", "VectorLibrary::SLEEFGNUABI", "VectorLibrary::ArmPL", "VectorLibrary::AMDLIBM"],
   "Vector functions library">;
 defm : BoolField<"xcoff-traceback-table", "true",
   "Emit the XCOFF traceback table">;
diff --git a/llvm/lib/Frontend/Driver/CodeGenOptions.cpp b/llvm/lib/Frontend/Driver/CodeGenOptions.cpp
index e893c15d76147f..695d842d890e89 100644
--- a/llvm/lib/Frontend/Driver/CodeGenOptions.cpp
+++ b/llvm/lib/Frontend/Driver/CodeGenOptions.cpp
@@ -25,6 +25,8 @@ convertDriverVectorLibraryToVectorLibrary(llvm::driver::VectorLibrary VecLib) {
     return llvm::VectorLibrary::DarwinLibSystemM;
   case llvm::driver::VectorLibrary::LIBMVEC:
     return llvm::VectorLibrary::LIBMVEC;
+  case llvm::driver::VectorLibrary::LLVM:
+    return llvm::VectorLibrary::LLVM;
   case llvm::driver::VectorLibrary::MASSV:
     return llvm::VectorLibrary::MASSV;
   case llvm::driver::VectorLibrary::SVML:
diff --git a/llvm/lib/IR/RuntimeLibcalls.cpp b/llvm/lib/IR/RuntimeLibcalls.cpp
index ab3876ac7019c0..f5fd826495ed45 100644
--- a/llvm/lib/IR/RuntimeLibcalls.cpp
+++ b/llvm/lib/IR/RuntimeLibcalls.cpp
@@ -39,6 +39,8 @@ static RuntimeLibrary getVectorRuntimeLibrary(VectorLibrary VecLib) {
     return RuntimeLibrary::darwin_libsystem_m;
   case VectorLibrary::LIBMVEC:
     return RuntimeLibrary::libmvec;
+  case VectorLibrary::LLVM:
+    return RuntimeLibrary::llvm;
   case VectorLibrary::MASSV:
     return RuntimeLibrary::massv;
   case VectorLibrary::SVML:
diff --git a/llvm/test/CodeGen/AArch64/replace-with-veclib-llvm.ll b/llvm/test/CodeGen/AArch64/replace-with-veclib-llvm.ll
new file mode 100644
index 00000000000000..7c16fc30edeae2
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/replace-with-veclib-llvm.ll
@@ -0,0 +1,577 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals
+; RUN: opt -vector-library=LLVM -replace-with-veclib -S < %s | FileCheck %s
+
+target triple = "aarch64-unknown-linux-gnu"
+;.
+; CHECK: @llvm.compiler.used = appending global [15 x ptr] [ptr @_LMVnN4v_cosf, ptr @_LMVnN4v_expf, ptr @_LMVnN4v_exp10f, ptr @_LMVnN4v_exp2f, ptr @_LMVnN4v_logf, ptr @_LMVnN4v_log10f, ptr @_LMVnN4v_log2f, ptr @_LMVnN4v_sinf, ptr @_LMVnN4v_tanf, ptr @_LMVnN4v_acosf, ptr @_LMVnN4v_asinf, ptr @_LMVnN4v_atanf, ptr @_LMVnN4v_coshf, ptr @_LMVnN4v_sinhf, ptr @_LMVnN4v_tanhf], section "llvm.metadata"
+;.
+define <2 x double> @llvm_ceil_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_ceil_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.ceil.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.ceil.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_ceil_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_ceil_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.ceil.v4f32(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.ceil.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_copysign_f64(<2 x double> %mag, <2 x double> %sgn) {
+; CHECK-LABEL: @llvm_copysign_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.copysign.v2f64(<2 x double> [[MAG:%.*]], <2 x double> [[SGN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.copysign.v2f64(<2 x double> %mag, <2 x double> %sgn)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_copysign_f32(<4 x float> %mag, <4 x float> %sgn) {
+; CHECK-LABEL: @llvm_copysign_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.copysign.v4f32(<4 x float> [[MAG:%.*]], <4 x float> [[SGN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.copysign.v4f32(<4 x float> %mag, <4 x float> %sgn)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_cos_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_cos_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.cos.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.cos.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_cos_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_cos_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_cosf(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.cos.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_exp_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_exp_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.exp.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.exp.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_exp_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_exp_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_expf(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.exp.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_exp10_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_exp10_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.exp10.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.exp10.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_exp10_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_exp10_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_exp10f(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.exp10.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_exp2_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_exp2_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.exp2.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.exp2.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_exp2_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_exp2_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_exp2f(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.exp2.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_fabs_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_fabs_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.fabs.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.fabs.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_fabs_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_fabs_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.fabs.v4f32(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.fabs.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_floor_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_floor_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.floor.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.floor.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_floor_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_floor_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.floor.v4f32(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.floor.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_fma_f64(<2 x double> %a, <2 x double> %b, <2 x double> %c ) {
+; CHECK-LABEL: @llvm_fma_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.fma.v2f64(<2 x double> [[A:%.*]], <2 x double> [[B:%.*]], <2 x double> [[C:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.fma.v2f64(<2 x double> %a, <2 x double> %b, <2 x double> %c)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_fma_f32(<4 x float> %a, <4 x float> %b, <4 x float> %c) {
+; CHECK-LABEL: @llvm_fma_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.fma.v4f32(<4 x float> [[A:%.*]], <4 x float> [[B:%.*]], <4 x float> [[C:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.fma.v4f32(<4 x float> %a, <4 x float> %b, <4 x float> %c)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_log_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_log_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.log.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.log.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_log_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_log_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_logf(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.log.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_log10_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_log10_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.log10.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.log10.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_log10_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_log10_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_log10f(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.log10.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_log2_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_log2_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.log2.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.log2.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_log2_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_log2_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_log2f(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.log2.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_maxnum_f64(<2 x double> %in0, <2 x double> %in1) {
+; CHECK-LABEL: @llvm_maxnum_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.maxnum.v2f64(<2 x double> [[IN0:%.*]], <2 x double> [[IN1:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.maxnum.v2f64(<2 x double> %in0, <2 x double> %in1)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_maxnum_f32(<4 x float> %in0, <4 x float> %in1) {
+; CHECK-LABEL: @llvm_maxnum_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.maxnum.v4f32(<4 x float> [[IN0:%.*]], <4 x float> [[IN1:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.maxnum.v4f32(<4 x float> %in0, <4 x float> %in1)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_minnum_f64(<2 x double> %in0, <2 x double> %in1) {
+; CHECK-LABEL: @llvm_minnum_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.minnum.v2f64(<2 x double> [[IN0:%.*]], <2 x double> [[IN1:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.minnum.v2f64(<2 x double> %in0, <2 x double> %in1)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_minnum_f32(<4 x float> %in0, <4 x float> %in1) {
+; CHECK-LABEL: @llvm_minnum_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.minnum.v4f32(<4 x float> [[IN0:%.*]], <4 x float> [[IN1:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.minnum.v4f32(<4 x float> %in0, <4 x float> %in1)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_nearbyint_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_nearbyint_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.nearbyint.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.nearbyint.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_nearbyint_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_nearbyint_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.nearbyint.v4f32(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.nearbyint.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_pow_f64(<2 x double> %in, <2 x double> %pow) {
+; CHECK-LABEL: @llvm_pow_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.pow.v2f64(<2 x double> [[IN:%.*]], <2 x double> [[POW:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.pow.v2f64(<2 x double> %in, <2 x double> %pow)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_pow_f32(<4 x float> %in, <4 x float> %pow) {
+; CHECK-LABEL: @llvm_pow_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.pow.v4f32(<4 x float> [[IN:%.*]], <4 x float> [[POW:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.pow.v4f32(<4 x float> %in, <4 x float> %pow)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_rint_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_rint_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.rint.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.rint.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_rint_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_rint_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.rint.v4f32(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.rint.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_round_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_round_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.round.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.round.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_round_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_round_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.round.v4f32(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.round.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_sin_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_sin_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.sin.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.sin.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_sin_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_sin_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_sinf(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.sin.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_sqrt_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_sqrt_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.sqrt.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.sqrt.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_sqrt_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_sqrt_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.sqrt.v4f32(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.sqrt.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_tan_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_tan_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.tan.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.tan.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_tan_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_tan_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_tanf(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.tan.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_acos_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_acos_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.acos.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.acos.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_acos_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_acos_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_acosf(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.acos.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_asin_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_asin_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.asin.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.asin.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_asin_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_asin_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_asinf(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.asin.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_atan_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_atan_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.atan.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.atan.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_atan_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_atan_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_atanf(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.atan.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_atan2_f64(<2 x double> %x, <2 x double> %y) {
+; CHECK-LABEL: @llvm_atan2_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.atan2.v2f64(<2 x double> [[X:%.*]], <2 x double> [[Y:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.atan2.v2f64(<2 x double> %x, <2 x double> %y)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_atan2_f32(<4 x float> %x, <4 x float> %y) {
+; CHECK-LABEL: @llvm_atan2_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.atan2.v4f32(<4 x float> [[X:%.*]], <4 x float> [[Y:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.atan2.v4f32(<4 x float> %x, <4 x float> %y)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_cosh_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_cosh_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.cosh.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.cosh.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_cosh_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_cosh_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_coshf(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.cosh.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_sinh_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_sinh_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.sinh.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.sinh.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_sinh_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_sinh_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_sinhf(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.sinh.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_tanh_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_tanh_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.tanh.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.tanh.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_tanh_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_tanh_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast aarch64_vector_pcs <4 x float> @_LMVnN4v_tanhf(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.tanh.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+define <2 x double> @llvm_trunc_f64(<2 x double> %in) {
+; CHECK-LABEL: @llvm_trunc_f64(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <2 x double> @llvm.trunc.v2f64(<2 x double> [[IN:%.*]])
+; CHECK-NEXT:    ret <2 x double> [[TMP1]]
+;
+  %1 = call fast <2 x double> @llvm.trunc.v2f64(<2 x double> %in)
+  ret <2 x double> %1
+}
+
+define <4 x float> @llvm_trunc_f32(<4 x float> %in) {
+; CHECK-LABEL: @llvm_trunc_f32(
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast <4 x float> @llvm.trunc.v4f32(<4 x float> [[IN:%.*]])
+; CHECK-NEXT:    ret <4 x float> [[TMP1]]
+;
+  %1 = call fast <4 x float> @llvm.trunc.v4f32(<4 x float> %in)
+  ret <4 x float> %1
+}
+
+declare <2 x double> @llvm.ceil.v2f64(<2 x double>)
+declare <4 x float> @llvm.ceil.v4f32(<4 x float>)
+declare <2 x double> @llvm.copysign.v2f64(<2 x double>, <2 x double>)
+declare <4 x float> @llvm.copysign.v4f32(<4 x float>, <4 x float>)
+declare <2 x double> @llvm.cos.v2f64(<2 x double>)
+declare <4 x float> @llvm.cos.v4f32(<4 x float>)
+declare <2 x double> @llvm.exp.v2f64(<2 x double>)
+declare <4 x float> @llvm.exp.v4f32(<4 x float>)
+declare <2 x double> @llvm.exp2.v2f64(<2 x double>)
+declare <4 x float> @llvm.exp2.v4f32(<4 x float>)
+declare <2 x double> @llvm.exp10.v2f64(<2 x double>)
+declare <4 x float> @llvm.exp10.v4f32(<4 x float>)
+declare <2 x double> @llvm.fabs.v2f64(<2 x double>)
+declare <4 x float> @llvm.fabs.v4f32(<4 x float>)
+declare <2 x double> @llvm.floor.v2f64(<2 x double>)
+declare <4 x float> @llvm.floor.v4f32(<4 x float>)
+declare <2 x double> @llvm.fma.v2f64(<2 x double>, <2 x double>, <2 x double>)
+declare <4 x float> @llvm.fma.v4f32(<4 x float>, <4 x float>, <4 x float>)
+declare <2 x double> @llvm.log.v2f64(<2 x double>)
+declare <4 x float> @llvm.log.v4f32(<4 x float>)
+declare <2 x double> @llvm.log10.v2f64(<2 x double>)
+declare <4 x float> @llvm.log10.v4f32(<4 x float>)
+declare <2 x double> @llvm.log2.v2f64(<2 x double>)
+declare <4 x float> @llvm.log2.v4f32(<4 x float>)
+declare <2 x double> @llvm.maxnum.v2f64(<2 x double>, <2 x double>)
+declare <4 x float> @llvm.maxnum.v4f32(<4 x float>, <4 x float>)
+declare <2 x double> @llvm.minnum.v2f64(<2 x double>, <2 x double>)
+declare <4 x float> @llvm.minnum.v4f32(<4 x float>, <4 x float>)
+declare <2 x double> @llvm.nearbyint.v2f64(<2 x double>)
+declare <4 x float> @llvm.nearbyint.v4f32(<4 x float>)
+declare <2 x double> @llvm.pow.v2f64(<2 x double>, <2 x double>)
+declare <4 x float> @llvm.pow.v4f32(<4 x float>, <4 x float>)
+declare <2 x double> @llvm.rint.v2f64(<2 x double>)
+declare <4 x float> @llvm.rint.v4f32(<4 x float>)
+declare <2 x double> @llvm.round.v2f64(<2 x double>)
+declare <4 x float> @llvm.round.v4f32(<4 x float>)
+declare <2 x double> @llvm.sin.v2f64(<2 x double>)
+declare <4 x float> @llvm.sin.v4f32(<4 x float>)
+declare <2 x double> @llvm.sqrt.v2f64(<2 x double>)
+declare <4 x float> @llvm.sqrt.v4f32(<4 x float>)
+declare <2 x double> @llvm.tan.v2f64(<2 x double>)
+declare <4 x float> @llvm.tan.v4f32(<4 x float>)
+declare <2 x double> @llvm.trunc.v2f64(<2 x double>)
+declare <4 x float> @llvm.trunc.v4f32(<4 x float>)
+;.
+; CHECK: attributes #[[ATTR0:[0-9]+]] = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
+; CHECK: attributes #[[ATTR1:[0-9]+]] = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
+;.
diff --git a/llvm/test/CodeGen/AArch64/veclib-llvm.exp.ll b/llvm/test/CodeGen/AArch64/veclib-llvm.exp.ll
new file mode 100644
index 00000000000000..c6753d78e27486
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/veclib-llvm.exp.ll
@@ -0,0 +1,79 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc -mtriple=aarch64-gnu-linux -mattr=+neon \
+; RUN:   -vector-library=LLVM < %s | FileCheck %s -check-prefix=LLVM
+
+define <4 x float> @test_exp_v4f32(<4 x float> %x) nounwind {
+; LLVM-LABEL: test_exp_v4f32:
+; LLVM:       // %bb.0:
+; LLVM-NEXT:    str x30, [sp, #-16]! // 8-byte Folded Spill
+; LLVM-NEXT:    bl _LMVnN4v_expf
+; LLVM-NEXT:    ldr x30, [sp], #16 // 8-byte Folded Reload
+; LLVM-NEXT:    ret
+  %result = call <4 x float> @llvm.exp.v4f32(<4 x float> %x)
+  ret <4 x float> %result
+}
+
+define <2 x double> @test_exp_v2f64(<2 x double> %x) nounwind {
+; LLVM-LABEL: test_exp_v2f64:
+; LLVM:       // %bb.0:
+; LLVM-NEXT:    sub sp, sp, #48
+; LLVM-NEXT:    str q0, [sp] // 16-byte Spill
+; LLVM-NEXT:    mov d0, v0.d[1]
+; LLVM-NEXT:    str x30, [sp, #32] // 8-byte Spill
+; LLVM-NEXT:    bl exp
+; LLVM-NEXT:    // kill: def $d0 killed $d0 def $q0
+; LLVM-NEXT:    str q0, [sp, #16] // 16-byte Spill
+; LLVM-NEXT:    ldr q0, [sp] // 16-byte Reload
+; LLVM-NEXT:    // kill: def $d0 killed $d0 killed $q0
+; LLVM-NEXT:    bl exp
+; LLVM-NEXT:    ldr q1, [sp, #16] // 16-byte Reload
+; LLVM-NEXT:    // kill: def $d0 killed $d0 def $q0
+; LLVM-NEXT:    ldr x30, [sp, #32] // 8-byte Reload
+; LLVM-NEXT:    mov v0.d[1], v1.d[0]
+; LLVM-NEXT:    add sp, sp, #48
+; LLVM-NEXT:    ret
+  %result = call <2 x double> @llvm.exp.v2f64(<2 x double> %x)
+  ret <2 x double> %result
+}
+
+define <4 x float> @test_exp_v4f32_025() nounwind {
+; LLVM-LABEL: test_exp_v4f32_025:
+; LLVM:       // %bb.0:
+; LLVM-NEXT:    str x30, [sp, #-16]! // 8-byte Folded Spill
+; LLVM-NEXT:    fmov v0.4s, #0.25000000
+; LLVM-NEXT:    bl _LMVnN4v_expf
+; LLVM-NEXT:    ldr x30, [sp], #16 // 8-byte Folded Reload
+; LLVM-NEXT:    ret
+  %result = call nsz ninf afn <4 x float> @llvm.exp.v4f32(<4 x float> splat (float 2.5e-01))
+  ret <4 x float> %result
+}
+
+define <4 x float> @test_exp_one_third_v4f32() nounwind {
+; LLVM-LABEL: test_exp_one_third_v4f32:
+; LLVM:       // %bb.0:
+; LLVM-NEXT:    str x30, [sp, #-16]! // 8-byte Folded Spill
+; LLVM-NEXT:    mov x8, #43691 // =0xaaab
+; LLVM-NEXT:    movk x8, #16042, lsl #16
+; LLVM-NEXT:    orr x8, x8, x8, lsl #32
+; LLVM-NEXT:    dup v0.2d, x8
+; LLVM-NEXT:    bl _LMVnN4v_expf
+; LLVM-NEXT:    ldr x30, [sp], #16 // 8-byte Folded Reload
+; LLVM-NEXT:    ret
+  %r = call nsz ninf nnan afn <4 x float> @llvm.exp.v4f32(<4 x float> splat (float 0x3FD5555560000000))
+  ret <4 x float> %r
+}
+
+define <4 x float> @test_exp_one_third_v4f32_bad_fmf() nounwind {
+; LLVM-LABEL: test_exp_one_third_v4f32_bad_fmf:
+; LLVM:       // %bb.0:
+; LLVM-NEXT:    str x30, [sp, #-16]! // 8-byte Folded Spill
+; LLVM-NEXT:    mov x8, #43691 // =0xaaab
+; LLVM-NEXT:    movk x8, #16042, lsl #16
+; LLVM-NEXT:    orr x8, x8, x8, lsl #32
+; LLVM-NEXT:    dup v0.2d, x8
+; LLVM-NEXT:    bl _LMVnN4v_expf
+; LLVM-NEXT:    ldr x30, [sp], #16 // 8-byte Folded Reload
+; LLVM-NEXT:    ret
+  %r = call nsz ninf nnan <4 x float> @llvm.exp.v4f32(<4 x float> splat (float 0x3FD5555560000000))
+  ret <4 x float> %r
+}
diff --git a/llvm/test/CodeGen/Generic/replace-intrinsics-with-veclib.ll b/llvm/test/CodeGen/Generic/replace-intrinsics-with-veclib.ll
index ff9c7486c099e3..9135a1ec5d7ab6 100644
--- a/llvm/test/CodeGen/Generic/replace-intrinsics-with-veclib.ll
+++ b/llvm/test/CodeGen/Generic/replace-intrinsics-with-veclib.ll
@@ -2,6 +2,7 @@
 ; RUN: opt -vector-library=SVML -replace-with-veclib -S < %s | FileCheck %s  --check-prefixes=COMMON,SVML
 ; RUN: opt -vector-library=AMDLIBM -replace-with-veclib -S < %s | FileCheck %s  --check-prefixes=COMMON,AMDLIBM
 ; RUN: opt -vector-library=LIBMVEC -replace-with-veclib -S < %s | FileCheck %s  --check-prefixes=COMMON,LIBMVEC-X86
+; RUN: opt -vector-library=LLVM -replace-with-veclib -S < %s | FileCheck %s  --check-prefixes=COMMON,LLVM
 ; RUN: opt -vector-library=MASSV -replace-with-veclib -S < %s | FileCheck %s  --check-prefixes=COMMON,MASSV
 ; RUN: opt -vector-library=Accelerate -replace-with-veclib -S < %s | FileCheck %s  --check-prefixes=COMMON,ACCELERATE
 
@@ -24,6 +25,11 @@ define <4 x double> @exp_v4(<4 x double> %in) {
 ; LIBMVEC-X86-NEXT:    [[TMP1:%.*]] = call <4 x double> @_ZGVdN4v_exp(<4 x double> [[IN]])
 ; LIBMVEC-X86-NEXT:    ret <4 x double> [[TMP1]]
 ;
+; LLVM-LABEL: define {{[^@]+}}@exp_v4
+; LLVM-SAME: (<4 x double> [[IN:%.*]]) {
+; LLVM-NEXT:    [[CALL:%.*]] = call <4 x double> @llvm.exp.v4f64(<4 x double> [[IN]])
+; LLVM-NEXT:    ret <4 x double> [[CALL]]
+;
 ; MASSV-LABEL: define {{[^@]+}}@exp_v4
 ; MASSV-SAME: (<4 x double> [[IN:%.*]]) {
 ; MASSV-NEXT:    [[CALL:%.*]] = call <4 x double> @llvm.exp.v4f64(<4 x double> [[IN]])
@@ -56,6 +62,11 @@ define <4 x float> @exp_f32(<4 x float> %in) {
 ; LIBMVEC-X86-NEXT:    [[TMP1:%.*]] = call <4 x float> @_ZGVbN4v_expf(<4 x float> [[IN]])
 ; LIBMVEC-X86-NEXT:    ret <4 x float> [[TMP1]]
 ;
+; LLVM-LABEL: define {{[^@]+}}@exp_f32
+; LLVM-SAME: (<4 x float> [[IN:%.*]]) {
+; LLVM-NEXT:    [[CALL:%.*]] = call <4 x float> @llvm.exp.v4f32(<4 x float> [[IN]])
+; LLVM-NEXT:    ret <4 x float> [[CALL]]
+;
 ; MASSV-LABEL: define {{[^@]+}}@exp_f32
 ; MASSV-SAME: (<4 x float> [[IN:%.*]]) {
 ; MASSV-NEXT:    [[TMP1:%.*]] = call <4 x float> @__expf4(<4 x float> [[IN]])
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/veclib-function-calls.ll b/llvm/test/Transforms/LoopVectorize/AArch64/veclib-function-calls.ll
index b828b6b6f687dd..d585a9f87e53a7 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/veclib-function-calls.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/veclib-function-calls.ll
@@ -2,6 +2,8 @@
 ; RUN: opt -mattr=+neon -vector-library=LIBMVEC -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s -check-prefix=LIBMVEC-NEON
 ; RUN: opt -mattr=+neon -vector-library=LIBMVEC -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -force-vector-width=2 -S < %s | FileCheck %s -check-prefix=LIBMVEC-NEON-WIDTH-2
 ; RUN: opt -mattr=+sve -vector-library=LIBMVEC -passes=inject-tli-mappings,loop-vectorize -mcpu=neoverse-v1 -force-vector-interleave=1 -tail-folding-policy=must-fold-tail -S < %s | FileCheck %s -check-prefix=LIBMVEC-SVE
+; RUN: opt -mattr=+neon -vector-library=LLVM -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s -check-prefix=LLVM-NEON
+; RUN: opt -mattr=+neon -vector-library=LLVM -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -force-vector-width=2 -S < %s | FileCheck %s -check-prefix=LLVM-NEON-WIDTH-2
 ; RUN: opt -mattr=+neon -vector-library=sleefgnuabi -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s -check-prefix=SLEEF-NEON
 ; RUN: opt -mattr=+sve -vector-library=sleefgnuabi -passes=inject-tli-mappings,loop-vectorize -mcpu=neoverse-v1 -force-vector-interleave=1 -tail-folding-policy=must-fold-tail -S < %s | FileCheck %s -check-prefix=SLEEF-SVE
 ; RUN: opt -mattr=+sve -vector-library=sleefgnuabi -passes=inject-tli-mappings,loop-vectorize -mcpu=neoverse-v1 -force-vector-interleave=1 -S < %s | FileCheck %s -check-prefixes=SLEEF-SVE-NOPRED
@@ -34,6 +36,14 @@ define void @acos_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0:[0-9]+]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_acos(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @acos_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1:[0-9]+]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @acos(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @acos_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1:[0-9]+]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @acos(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @acos_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0:[0-9]+]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_acos(<2 x double> [[WIDE_LOAD:%.*]])
@@ -91,6 +101,15 @@ define void @acos_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_acosf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @acos_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_acosf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @acos_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @acosf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @acosf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @acos_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_acosf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -151,6 +170,14 @@ define void @acosh_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_acosh(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @acosh_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @acosh(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @acosh_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @acosh(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @acosh_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_acosh(<2 x double> [[WIDE_LOAD:%.*]])
@@ -208,6 +235,15 @@ define void @acosh_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_acoshf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @acosh_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_acoshf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @acosh_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @acoshf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @acoshf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @acosh_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_acoshf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -268,6 +304,14 @@ define void @asin_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_asin(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @asin_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @asin(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @asin_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @asin(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @asin_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_asin(<2 x double> [[WIDE_LOAD:%.*]])
@@ -325,6 +369,15 @@ define void @asin_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_asinf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @asin_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_asinf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @asin_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @asinf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @asinf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @asin_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_asinf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -385,6 +438,14 @@ define void @asinh_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_asinh(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @asinh_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @asinh(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @asinh_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @asinh(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @asinh_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_asinh(<2 x double> [[WIDE_LOAD:%.*]])
@@ -442,6 +503,15 @@ define void @asinh_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_asinhf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @asinh_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_asinhf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @asinh_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @asinhf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @asinhf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @asinh_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_asinhf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -502,6 +572,14 @@ define void @atan_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_atan(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @atan_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @atan(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @atan_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @atan(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @atan_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_atan(<2 x double> [[WIDE_LOAD:%.*]])
@@ -559,6 +637,15 @@ define void @atan_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_atanf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @atan_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_atanf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @atan_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @atanf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @atanf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @atan_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_atanf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -619,6 +706,14 @@ define void @atan2_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxvv_atan2(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x double> [[WIDE_MASKED_LOAD]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @atan2_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @atan2(double [[IN:%.*]], double [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @atan2_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @atan2(double [[IN:%.*]], double [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @atan2_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2vv_atan2(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -676,6 +771,14 @@ define void @atan2_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxvv_atan2f(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x float> [[WIDE_MASKED_LOAD]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @atan2_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @atan2f(float [[IN:%.*]], float [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @atan2_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @atan2f(float [[IN:%.*]], float [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @atan2_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4vv_atan2f(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -736,6 +839,14 @@ define void @atanh_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_atanh(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @atanh_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @atanh(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @atanh_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @atanh(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @atanh_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_atanh(<2 x double> [[WIDE_LOAD:%.*]])
@@ -793,6 +904,14 @@ define void @atanh_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_atanhf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @atanh_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @atanhf(float [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @atanh_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @atanhf(float [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @atanh_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_atanhf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -853,6 +972,14 @@ define void @cbrt_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_cbrt(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cbrt_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @cbrt(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cbrt_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @cbrt(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cbrt_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_cbrt(<2 x double> [[WIDE_LOAD:%.*]])
@@ -910,6 +1037,15 @@ define void @cbrt_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_cbrtf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cbrt_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_cbrtf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cbrt_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @cbrtf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @cbrtf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cbrt_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_cbrtf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -970,6 +1106,14 @@ define void @copysign_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_rang
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @copysign(double [[IN:%.*]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @copysign_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @copysign(double [[IN:%.*]], double [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @copysign_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @copysign(double [[IN:%.*]], double [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @copysign_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2vv_copysign(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -1027,6 +1171,14 @@ define void @copysign_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_rang
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @copysignf(float [[IN:%.*]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @copysign_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @copysignf(float [[IN:%.*]], float [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @copysign_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @copysignf(float [[IN:%.*]], float [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @copysign_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4vv_copysignf(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -1087,6 +1239,14 @@ define void @cos_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_cos(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cos_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @cos(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cos_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @cos(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cos_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_cos(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1144,6 +1304,15 @@ define void @cos_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_cosf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cos_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_cosf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cos_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @cosf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @cosf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cos_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_cosf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1204,6 +1373,14 @@ define void @cosh_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_cosh(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cosh_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @cosh(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cosh_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @cosh(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cosh_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_cosh(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1261,6 +1438,15 @@ define void @cosh_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_coshf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cosh_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_coshf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cosh_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @coshf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @coshf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cosh_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_coshf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1321,6 +1507,14 @@ define void @cospi_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @cospi(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cospi_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @cospi(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cospi_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @cospi(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cospi_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_cospi(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1378,6 +1572,15 @@ define void @cospi_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @cospif(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cospi_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_cospif(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cospi_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @cospif(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @cospif(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cospi_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_cospif(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1438,6 +1641,14 @@ define void @erf_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_erf(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @erf_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @erf(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @erf_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @erf(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @erf_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_erf(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1495,6 +1706,15 @@ define void @erf_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_erff(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @erf_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_erff(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @erf_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @erff(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @erff(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @erf_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_erff(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1555,6 +1775,14 @@ define void @erfc_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_erfc(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @erfc_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @erfc(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @erfc_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @erfc(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @erfc_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_erfc(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1612,6 +1840,14 @@ define void @erfc_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_erfcf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @erfc_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @erfcf(float [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @erfc_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @erfcf(float [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @erfc_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_erfcf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1672,6 +1908,14 @@ define void @exp_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_exp(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @exp(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @exp(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_exp(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1729,6 +1973,15 @@ define void @exp_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_expf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_expf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @expf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @expf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_expf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1789,6 +2042,14 @@ define void @exp10_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_exp10(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp10_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @exp10(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp10_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @exp10(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp10_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_exp10(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1846,6 +2107,15 @@ define void @exp10_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_exp10f(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp10_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_exp10f(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp10_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @exp10f(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @exp10f(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp10_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_exp10f(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1906,6 +2176,14 @@ define void @exp2_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_exp2(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp2_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @exp2(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp2_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @exp2(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp2_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_exp2(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1963,6 +2241,15 @@ define void @exp2_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_exp2f(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp2_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_exp2f(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp2_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @exp2f(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @exp2f(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp2_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_exp2f(<4 x float> [[WIDE_LOAD:%.*]])
@@ -2023,6 +2310,14 @@ define void @expm1_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_expm1(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @expm1_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @expm1(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @expm1_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @expm1(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @expm1_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_expm1(<2 x double> [[WIDE_LOAD:%.*]])
@@ -2080,6 +2375,15 @@ define void @expm1_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_expm1f(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @expm1_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_expm1f(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @expm1_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @expm1f(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @expm1f(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @expm1_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_expm1f(<4 x float> [[WIDE_LOAD:%.*]])
@@ -2140,6 +2444,14 @@ define void @fdim_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @fdim(double [[IN:%.*]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fdim_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @fdim(double [[IN:%.*]], double [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fdim_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @fdim(double [[IN:%.*]], double [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @fdim_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2vv_fdim(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -2197,6 +2509,14 @@ define void @fdim_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @fdimf(float [[IN:%.*]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fdim_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @fdimf(float [[IN:%.*]], float [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fdim_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @fdimf(float [[IN:%.*]], float [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @fdim_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4vv_fdimf(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -2257,6 +2577,14 @@ define void @fma_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @fma(double [[IN:%.*]], double [[IN]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fma_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @fma(double [[IN:%.*]], double [[IN]], double [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fma_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @fma(double [[IN:%.*]], double [[IN]], double [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @fma_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2vvv_fma(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]], <2 x double> [[WIDE_LOAD]])
@@ -2314,6 +2642,14 @@ define void @fma_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @fmaf(float [[IN:%.*]], float [[IN]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fma_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @fmaf(float [[IN:%.*]], float [[IN]], float [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fma_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @fmaf(float [[IN:%.*]], float [[IN]], float [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @fma_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4vvv_fmaf(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]], <4 x float> [[WIDE_LOAD]])
@@ -2374,6 +2710,14 @@ define void @fmax_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @fmax(double [[IN:%.*]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fmax_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @fmax(double [[IN:%.*]], double [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fmax_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @fmax(double [[IN:%.*]], double [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @fmax_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2vv_fmax(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -2431,6 +2775,14 @@ define void @fmax_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @fmaxf(float [[IN:%.*]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fmax_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @fmaxf(float [[IN:%.*]], float [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fmax_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @fmaxf(float [[IN:%.*]], float [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @fmax_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4vv_fmaxf(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -2491,6 +2843,14 @@ define void @fmin_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @fmin(double [[IN:%.*]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fmin_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @fmin(double [[IN:%.*]], double [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fmin_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @fmin(double [[IN:%.*]], double [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @fmin_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2vv_fmin(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -2548,6 +2908,14 @@ define void @fmin_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @fminf(float [[IN:%.*]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fmin_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @fminf(float [[IN:%.*]], float [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fmin_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @fminf(float [[IN:%.*]], float [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @fmin_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4vv_fminf(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -2608,6 +2976,14 @@ define void @fmod_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @fmod(double [[IN:%.*]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fmod_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @fmod(double [[IN:%.*]], double [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fmod_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @fmod(double [[IN:%.*]], double [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @fmod_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2vv_fmod(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -2665,6 +3041,14 @@ define void @fmod_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @fmodf(float [[IN:%.*]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fmod_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @fmodf(float [[IN:%.*]], float [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fmod_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @fmodf(float [[IN:%.*]], float [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @fmod_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4vv_fmodf(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -2725,6 +3109,14 @@ define void @hypot_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxvv_hypot(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x double> [[WIDE_MASKED_LOAD]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @hypot_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @hypot(double [[IN:%.*]], double [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @hypot_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @hypot(double [[IN:%.*]], double [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @hypot_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2vv_hypot(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -2782,6 +3174,14 @@ define void @hypot_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxvv_hypotf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x float> [[WIDE_MASKED_LOAD]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @hypot_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @hypotf(float [[IN:%.*]], float [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @hypot_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @hypotf(float [[IN:%.*]], float [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @hypot_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4vv_hypotf(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -2842,6 +3242,14 @@ define void @ilogb_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call i32 @ilogb(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @ilogb_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call i32 @ilogb(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @ilogb_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call i32 @ilogb(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @ilogb_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x i32> @_ZGVnN2v_ilogb(<2 x double> [[WIDE_LOAD:%.*]])
@@ -2899,6 +3307,14 @@ define void @ilogb_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call i32 @ilogbf(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @ilogb_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call i32 @ilogbf(float [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @ilogb_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call i32 @ilogbf(float [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @ilogb_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x i32> @_ZGVnN4v_ilogbf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -2959,6 +3375,14 @@ define void @ldexp_f64(ptr noalias %in1.ptr, ptr noalias %in2.ptr, ptr noalias %
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN1_PTR:%.*]], ptr noalias [[IN2_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @ldexp(double [[IN1:%.*]], i32 [[IN2:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @ldexp_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN1_PTR:%.*]], ptr noalias [[IN2_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @ldexp(double [[IN1:%.*]], i32 [[IN2:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @ldexp_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN1_PTR:%.*]], ptr noalias [[IN2_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @ldexp(double [[IN1:%.*]], i32 [[IN2:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @ldexp_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN1_PTR:%.*]], ptr noalias [[IN2_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP4:%.*]] = call <2 x double> @_ZGVnN2vv_ldexp(<2 x double> [[WIDE_LOAD:%.*]], <2 x i32> [[WIDE_LOAD1:%.*]])
@@ -3018,6 +3442,14 @@ define void @ldexp_f32(ptr noalias %in1.ptr, ptr noalias %in2.ptr, ptr noalias %
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN1_PTR:%.*]], ptr noalias [[IN2_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @ldexpf(float [[IN1:%.*]], i32 [[IN2:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @ldexp_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN1_PTR:%.*]], ptr noalias [[IN2_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @ldexpf(float [[IN1:%.*]], i32 [[IN2:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @ldexp_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN1_PTR:%.*]], ptr noalias [[IN2_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @ldexpf(float [[IN1:%.*]], i32 [[IN2:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @ldexp_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN1_PTR:%.*]], ptr noalias [[IN2_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP4:%.*]] = call <4 x float> @_ZGVnN4vv_ldexpf(<4 x float> [[WIDE_LOAD:%.*]], <4 x i32> [[WIDE_LOAD1:%.*]])
@@ -3080,6 +3512,14 @@ define void @lgamma_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @lgamma(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @lgamma_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @lgamma(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @lgamma_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @lgamma(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @lgamma_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_lgamma(<2 x double> [[WIDE_LOAD:%.*]])
@@ -3137,6 +3577,14 @@ define void @lgamma_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @lgammaf(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @lgamma_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @lgammaf(float [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @lgamma_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @lgammaf(float [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @lgamma_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_lgammaf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -3197,6 +3645,14 @@ define void @log_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_log(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @log(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @log(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_log(<2 x double> [[WIDE_LOAD:%.*]])
@@ -3254,6 +3710,15 @@ define void @log_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_logf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_logf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @logf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @logf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_logf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -3314,6 +3779,14 @@ define void @log10_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_log10(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log10_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @log10(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log10_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @log10(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log10_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_log10(<2 x double> [[WIDE_LOAD:%.*]])
@@ -3371,6 +3844,15 @@ define void @log10_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_log10f(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log10_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_log10f(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log10_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @log10f(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @log10f(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log10_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_log10f(<4 x float> [[WIDE_LOAD:%.*]])
@@ -3431,6 +3913,14 @@ define void @log1p_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_log1p(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log1p_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @log1p(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log1p_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @log1p(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log1p_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_log1p(<2 x double> [[WIDE_LOAD:%.*]])
@@ -3488,6 +3978,15 @@ define void @log1p_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_log1pf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log1p_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_log1pf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log1p_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @log1pf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @log1pf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log1p_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_log1pf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -3548,6 +4047,14 @@ define void @log2_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_log2(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log2_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @log2(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log2_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @log2(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log2_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_log2(<2 x double> [[WIDE_LOAD:%.*]])
@@ -3605,6 +4112,15 @@ define void @log2_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_log2f(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log2_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_log2f(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log2_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @log2f(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @log2f(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log2_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_log2f(<4 x float> [[WIDE_LOAD:%.*]])
@@ -3668,6 +4184,14 @@ define void @modf_f64(ptr noalias %a, ptr noalias %b, ptr noalias %c) vscale_ran
 ; LIBMVEC-SVE-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[DATA:%.*]] = call double @modf(double [[NUM:%.*]], ptr [[GEPB:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @modf_f64
+; LLVM-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[DATA:%.*]] = call double @modf(double [[NUM:%.*]], ptr [[GEPB:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @modf_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[DATA:%.*]] = call double @modf(double [[NUM:%.*]], ptr [[GEPB:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @modf_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[DATA:%.*]] = call double @modf(double [[NUM:%.*]], ptr [[GEPB:%.*]])
@@ -3724,6 +4248,14 @@ define void @modf_f32(ptr noalias %a, ptr noalias %b, ptr noalias %c) vscale_ran
 ; LIBMVEC-SVE-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[DATA:%.*]] = call float @modff(float [[NUM:%.*]], ptr [[GEPB:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @modf_f32
+; LLVM-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[DATA:%.*]] = call float @modff(float [[NUM:%.*]], ptr [[GEPB:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @modf_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[DATA:%.*]] = call float @modff(float [[NUM:%.*]], ptr [[GEPB:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @modf_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[DATA:%.*]] = call float @modff(float [[NUM:%.*]], ptr [[GEPB:%.*]])
@@ -3783,6 +4315,14 @@ define void @nextafter_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_ran
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @nextafter(double [[IN:%.*]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @nextafter_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @nextafter(double [[IN:%.*]], double [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @nextafter_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @nextafter(double [[IN:%.*]], double [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @nextafter_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2vv_nextafter(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -3840,6 +4380,14 @@ define void @nextafter_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_ran
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @nextafterf(float [[IN:%.*]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @nextafter_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @nextafterf(float [[IN:%.*]], float [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @nextafter_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @nextafterf(float [[IN:%.*]], float [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @nextafter_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4vv_nextafterf(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -3900,6 +4448,14 @@ define void @pow_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxvv_pow(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x double> [[WIDE_MASKED_LOAD]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @pow_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @pow(double [[IN:%.*]], double [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @pow_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @pow(double [[IN:%.*]], double [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @pow_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2vv_pow(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -3957,6 +4513,14 @@ define void @pow_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxvv_powf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x float> [[WIDE_MASKED_LOAD]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @pow_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @powf(float [[IN:%.*]], float [[IN]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @pow_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @powf(float [[IN:%.*]], float [[IN]])
+;
 ; SLEEF-NEON-LABEL: define void @pow_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4vv_powf(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -4017,6 +4581,14 @@ define void @sin_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_sin(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sin_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @sin(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sin_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @sin(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sin_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_sin(<2 x double> [[WIDE_LOAD:%.*]])
@@ -4074,6 +4646,15 @@ define void @sin_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_sinf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sin_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_sinf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sin_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @sinf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @sinf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sin_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_sinf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -4137,6 +4718,14 @@ define void @sincos_f64(ptr noalias %a, ptr noalias %b, ptr noalias %c) vscale_r
 ; LIBMVEC-SVE-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    call void @sincos(double [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sincos_f64
+; LLVM-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    call void @sincos(double [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sincos_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    call void @sincos(double [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sincos_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    call void @sincos(double [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
@@ -4192,6 +4781,14 @@ define void @sincos_f32(ptr noalias %a, ptr noalias %b, ptr noalias %c) vscale_r
 ; LIBMVEC-SVE-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    call void @sincosf(float [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sincos_f32
+; LLVM-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    call void @sincosf(float [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sincos_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    call void @sincosf(float [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sincos_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    call void @sincosf(float [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
@@ -4253,6 +4850,14 @@ define void @sincospi_f64(ptr noalias %a, ptr noalias %b, ptr noalias %c) vscale
 ; LIBMVEC-SVE-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    call void @sincospi(double [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sincospi_f64
+; LLVM-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    call void @sincospi(double [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sincospi_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    call void @sincospi(double [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sincospi_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    call void @sincospi(double [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
@@ -4308,6 +4913,14 @@ define void @sincospi_f32(ptr noalias %a, ptr noalias %b, ptr noalias %c) vscale
 ; LIBMVEC-SVE-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    call void @sincospif(float [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sincospi_f32
+; LLVM-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    call void @sincospif(float [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sincospi_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    call void @sincospif(float [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sincospi_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    call void @sincospif(float [[NUM:%.*]], ptr [[GEPB:%.*]], ptr [[GEPC:%.*]])
@@ -4366,6 +4979,14 @@ define void @sinh_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_sinh(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sinh_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @sinh(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sinh_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @sinh(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sinh_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_sinh(<2 x double> [[WIDE_LOAD:%.*]])
@@ -4423,6 +5044,15 @@ define void @sinh_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_sinhf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sinh_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_sinhf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sinh_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @sinhf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @sinhf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sinh_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_sinhf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -4483,6 +5113,14 @@ define void @sinpi_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @sinpi(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sinpi_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @sinpi(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sinpi_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @sinpi(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sinpi_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_sinpi(<2 x double> [[WIDE_LOAD:%.*]])
@@ -4540,6 +5178,15 @@ define void @sinpi_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @sinpif(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sinpi_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_sinpif(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sinpi_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @sinpif(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @sinpif(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sinpi_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_sinpif(<4 x float> [[WIDE_LOAD:%.*]])
@@ -4600,6 +5247,14 @@ define void @sqrt_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @sqrt(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sqrt_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @sqrt(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sqrt_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @sqrt(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sqrt_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_sqrt(<2 x double> [[WIDE_LOAD:%.*]])
@@ -4657,6 +5312,14 @@ define void @sqrt_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @sqrtf(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sqrt_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @sqrtf(float [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sqrt_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @sqrtf(float [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sqrt_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_sqrtf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -4717,6 +5380,14 @@ define void @tan_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_tan(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @tan_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @tan(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @tan_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @tan(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @tan_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_tan(<2 x double> [[WIDE_LOAD:%.*]])
@@ -4774,6 +5445,15 @@ define void @tan_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,1
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_tanf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @tan_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_tanf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @tan_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @tanf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @tanf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @tan_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_tanf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -4834,6 +5514,14 @@ define void @tanh_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_tanh(<vscale x 2 x double> [[WIDE_MASKED_LOAD:%.*]], <vscale x 2 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @tanh_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @tanh(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @tanh_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @tanh(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @tanh_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_tanh(<2 x double> [[WIDE_LOAD:%.*]])
@@ -4891,6 +5579,15 @@ define void @tanh_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(1,
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[TMP12:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_tanhf(<vscale x 4 x float> [[WIDE_MASKED_LOAD:%.*]], <vscale x 4 x i1> [[ACTIVE_LANE_MASK:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @tanh_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_tanhf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @tanh_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[TMP2:%.*]] = tail call float @tanhf(float [[TMP1:%.*]])
+; LLVM-NEON-WIDTH-2:    [[TMP4:%.*]] = tail call float @tanhf(float [[TMP3:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @tanh_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_tanhf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -4951,6 +5648,14 @@ define void @tgamma_f64(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @tgamma(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @tgamma_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call double @tgamma(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @tgamma_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call double @tgamma(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @tgamma_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <2 x double> @_ZGVnN2v_tgamma(<2 x double> [[WIDE_LOAD:%.*]])
@@ -5008,6 +5713,14 @@ define void @tgamma_f32(ptr noalias %in.ptr, ptr noalias %out.ptr) vscale_range(
 ; LIBMVEC-SVE-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @tgammaf(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @tgamma_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON:    [[CALL:%.*]] = tail call float @tgammaf(float [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @tgamma_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR1]] {
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call float @tgammaf(float [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @tgamma_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr noalias [[OUT_PTR:%.*]]) #[[ATTR0]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call <4 x float> @_ZGVnN4v_tgammaf(<4 x float> [[WIDE_LOAD:%.*]])
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/veclib-intrinsic-calls.ll b/llvm/test/Transforms/LoopVectorize/AArch64/veclib-intrinsic-calls.ll
index 244dc96b30fd20..8a0b5adf2619c4 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/veclib-intrinsic-calls.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/veclib-intrinsic-calls.ll
@@ -3,6 +3,8 @@
 ; RUN: opt -mattr=+neon -vector-library=LIBMVEC -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s --check-prefix=LIBMVEC-NEON
 ; RUN: opt -mattr=+neon -vector-library=LIBMVEC -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -force-vector-width=2 -S < %s | FileCheck %s --check-prefix=LIBMVEC-NEON-WIDTH-2
 ; RUN: opt -mattr=+sve -vector-library=LIBMVEC -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s --check-prefix=LIBMVEC-SVE
+; RUN: opt -mattr=+neon -vector-library=LLVM -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s --check-prefix=LLVM-NEON
+; RUN: opt -mattr=+neon -vector-library=LLVM -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -force-vector-width=2 -S < %s | FileCheck %s --check-prefix=LLVM-NEON-WIDTH-2
 ; RUN: opt -mattr=+neon -vector-library=sleefgnuabi -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s --check-prefix=SLEEF-NEON
 ; RUN: opt -mattr=+sve -vector-library=sleefgnuabi -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -tail-folding-policy=must-fold-tail -S < %s | FileCheck %s --check-prefix=SLEEF-SVE
 ; RUN: opt -mattr=+neon -vector-library=ArmPL -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s --check-prefix=ARMPL-NEON
@@ -30,6 +32,14 @@ define void @acos_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_acos(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.acos.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @acos_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0:[0-9]+]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.acos.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @acos_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0:[0-9]+]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.acos.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @acos_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1:[0-9]+]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_acos(<2 x double> [[WIDE_LOAD:%.*]])
@@ -78,6 +88,14 @@ define void @acos_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_acosf(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.acos.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @acos_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_acosf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @acos_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.acos.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @acos_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_acosf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -127,6 +145,14 @@ define void @asin_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_asin(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.asin.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @asin_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.asin.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @asin_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.asin.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @asin_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_asin(<2 x double> [[WIDE_LOAD:%.*]])
@@ -175,6 +201,14 @@ define void @asin_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_asinf(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.asin.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @asin_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_asinf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @asin_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.asin.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @asin_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_asinf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -224,6 +258,14 @@ define void @atan_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_atan(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.atan.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @atan_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.atan.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @atan_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.atan.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @atan_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_atan(<2 x double> [[WIDE_LOAD:%.*]])
@@ -272,6 +314,14 @@ define void @atan_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_atanf(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.atan.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @atan_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_atanf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @atan_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.atan.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @atan_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_atanf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -321,6 +371,14 @@ define void @atan2_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxvv_atan2(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x double> [[WIDE_LOAD]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.atan2.f64(double [[IN:%.*]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @atan2_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.atan2.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @atan2_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.atan2.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @atan2_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2vv_atan2(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -369,6 +427,14 @@ define void @atan2_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxvv_atan2f(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x float> [[WIDE_LOAD]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.atan2.f32(float [[IN:%.*]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @atan2_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x float> @llvm.atan2.v2f32(<2 x float> [[WIDE_LOAD:%.*]], <2 x float> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @atan2_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.atan2.v2f32(<2 x float> [[WIDE_LOAD:%.*]], <2 x float> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @atan2_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4vv_atan2f(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -418,6 +484,14 @@ define void @ceil_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.ceil.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.ceil.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @ceil_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.ceil.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @ceil_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.ceil.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @ceil_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.ceil.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
@@ -466,6 +540,14 @@ define void @ceil_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.ceil.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.ceil.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @ceil_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.ceil.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @ceil_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.ceil.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @ceil_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.ceil.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
@@ -515,6 +597,14 @@ define void @copysign_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16)
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.copysign.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x double> [[WIDE_LOAD]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.copysign.f64(double [[IN:%.*]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @copysign_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.copysign.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @copysign_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.copysign.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @copysign_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.copysign.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -563,6 +653,14 @@ define void @copysign_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16)
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.copysign.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x float> [[WIDE_LOAD]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.copysign.f32(float [[IN:%.*]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @copysign_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.copysign.v4f32(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @copysign_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.copysign.v2f32(<2 x float> [[WIDE_LOAD:%.*]], <2 x float> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @copysign_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.copysign.v4f32(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -612,6 +710,14 @@ define void @cos_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_cos(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.cos.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cos_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.cos.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cos_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.cos.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cos_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_cos(<2 x double> [[WIDE_LOAD:%.*]])
@@ -660,6 +766,14 @@ define void @cos_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_cosf(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.cos.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cos_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_cosf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cos_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.cos.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cos_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_cosf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -709,6 +823,14 @@ define void @cosh_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_cosh(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.cosh.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cosh_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.cosh.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cosh_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.cosh.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cosh_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_cosh(<2 x double> [[WIDE_LOAD:%.*]])
@@ -757,6 +879,14 @@ define void @cosh_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_coshf(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.cosh.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @cosh_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_coshf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @cosh_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.cosh.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @cosh_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_coshf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -806,6 +936,14 @@ define void @exp_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_exp(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.exp.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.exp.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.exp.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_exp(<2 x double> [[WIDE_LOAD:%.*]])
@@ -854,6 +992,14 @@ define void @exp_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_expf(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.exp.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_expf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.exp.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_expf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -903,6 +1049,14 @@ define void @exp10_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_exp10(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.exp10.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp10_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.exp10.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp10_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.exp10.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp10_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_exp10(<2 x double> [[WIDE_LOAD:%.*]])
@@ -951,6 +1105,14 @@ define void @exp10_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_exp10f(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.exp10.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp10_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_exp10f(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp10_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.exp10.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp10_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_exp10f(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1000,6 +1162,14 @@ define void @exp2_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_exp2(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.exp2.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp2_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.exp2.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp2_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.exp2.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp2_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_exp2(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1048,6 +1218,14 @@ define void @exp2_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_exp2f(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.exp2.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @exp2_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_exp2f(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @exp2_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.exp2.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @exp2_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_exp2f(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1097,6 +1275,14 @@ define void @fabs_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.fabs.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.fabs.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @fabs_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.fabs.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fabs_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.fabs.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @fabs_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.fabs.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1145,6 +1331,14 @@ define void @fabs_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.fabs.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.fabs.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @fabs_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.fabs.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fabs_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.fabs.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @fabs_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.fabs.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1194,6 +1388,14 @@ define void @floor_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.floor.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.floor.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @floor_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.floor.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @floor_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.floor.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @floor_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.floor.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1242,6 +1444,14 @@ define void @floor_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.floor.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.floor.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @floor_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.floor.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @floor_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.floor.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @floor_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.floor.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1291,6 +1501,14 @@ define void @fma_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.fma.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x double> [[WIDE_LOAD]], <vscale x 2 x double> [[WIDE_LOAD]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.fma.f64(double [[IN:%.*]], double [[IN]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fma_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.fma.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]], <2 x double> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fma_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.fma.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]], <2 x double> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @fma_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.fma.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]], <2 x double> [[WIDE_LOAD]])
@@ -1339,6 +1557,14 @@ define void @fma_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.fma.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x float> [[WIDE_LOAD]], <vscale x 4 x float> [[WIDE_LOAD]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.fma.f32(float [[IN:%.*]], float [[IN]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @fma_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.fma.v4f32(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]], <4 x float> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @fma_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.fma.v2f32(<2 x float> [[WIDE_LOAD:%.*]], <2 x float> [[WIDE_LOAD]], <2 x float> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @fma_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.fma.v4f32(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]], <4 x float> [[WIDE_LOAD]])
@@ -1388,6 +1614,14 @@ define void @log_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_log(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.log.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.log.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.log.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_log(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1436,6 +1670,14 @@ define void @log_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_logf(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.log.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_logf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.log.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_logf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1485,6 +1727,14 @@ define void @log10_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_log10(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.log10.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log10_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.log10.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log10_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.log10.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log10_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_log10(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1533,6 +1783,14 @@ define void @log10_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_log10f(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.log10.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log10_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_log10f(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log10_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.log10.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log10_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_log10f(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1582,6 +1840,14 @@ define void @log2_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_log2(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.log2.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log2_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.log2.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log2_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.log2.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log2_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_log2(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1630,6 +1896,14 @@ define void @log2_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_log2f(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.log2.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @log2_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_log2f(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @log2_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.log2.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @log2_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_log2f(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1679,6 +1953,14 @@ define void @maxnum_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.maxnum.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x double> [[WIDE_LOAD]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.maxnum.f64(double [[IN:%.*]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @maxnum_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.maxnum.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @maxnum_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.maxnum.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @maxnum_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.maxnum.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -1727,6 +2009,14 @@ define void @maxnum_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.maxnum.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x float> [[WIDE_LOAD]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.maxnum.f32(float [[IN:%.*]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @maxnum_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.maxnum.v4f32(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @maxnum_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.maxnum.v2f32(<2 x float> [[WIDE_LOAD:%.*]], <2 x float> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @maxnum_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.maxnum.v4f32(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -1776,6 +2066,14 @@ define void @minnum_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.minnum.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x double> [[WIDE_LOAD]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.minnum.f64(double [[IN:%.*]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @minnum_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.minnum.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @minnum_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.minnum.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @minnum_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.minnum.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -1824,6 +2122,14 @@ define void @minnum_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.minnum.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x float> [[WIDE_LOAD]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.minnum.f32(float [[IN:%.*]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @minnum_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.minnum.v4f32(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @minnum_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.minnum.v2f32(<2 x float> [[WIDE_LOAD:%.*]], <2 x float> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @minnum_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.minnum.v4f32(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -1875,6 +2181,16 @@ define void @modf_f64(ptr noalias %in.ptr, ptr %out_a.ptr, ptr %out_b.ptr) vscal
 ; LIBMVEC-SVE:    [[TMP2:%.*]] = call { <2 x double>, <2 x double> } @llvm.modf.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call { double, double } @llvm.modf.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @modf_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP3:%.*]] = call { <2 x double>, <2 x double> } @llvm.modf.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+; LLVM-NEON:    [[CALL:%.*]] = tail call { double, double } @llvm.modf.f64(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @modf_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP3:%.*]] = call { <2 x double>, <2 x double> } @llvm.modf.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call { double, double } @llvm.modf.f64(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @modf_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call { <2 x double>, <2 x double> } @llvm.modf.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
@@ -1933,6 +2249,16 @@ define void @modf_f32(ptr noalias %in.ptr, ptr %out_a.ptr, ptr %out_b.ptr) vscal
 ; LIBMVEC-SVE:    [[TMP2:%.*]] = call { <2 x float>, <2 x float> } @llvm.modf.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call { float, float } @llvm.modf.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @modf_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP3:%.*]] = call { <2 x float>, <2 x float> } @llvm.modf.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+; LLVM-NEON:    [[CALL:%.*]] = tail call { float, float } @llvm.modf.f32(float [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @modf_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP3:%.*]] = call { <2 x float>, <2 x float> } @llvm.modf.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call { float, float } @llvm.modf.f32(float [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @modf_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call { <4 x float>, <4 x float> } @llvm.modf.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
@@ -1990,6 +2316,14 @@ define void @nearbyint_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16)
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.nearbyint.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.nearbyint.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @nearbyint_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.nearbyint.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @nearbyint_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.nearbyint.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @nearbyint_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.nearbyint.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
@@ -2038,6 +2372,14 @@ define void @nearbyint_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16)
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.nearbyint.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.nearbyint.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @nearbyint_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.nearbyint.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @nearbyint_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.nearbyint.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @nearbyint_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.nearbyint.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
@@ -2087,6 +2429,14 @@ define void @pow_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.pow.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x double> [[WIDE_LOAD]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.pow.f64(double [[IN:%.*]], double [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @pow_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.pow.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @pow_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.pow.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @pow_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.pow.v2f64(<2 x double> [[WIDE_LOAD:%.*]], <2 x double> [[WIDE_LOAD]])
@@ -2135,6 +2485,14 @@ define void @pow_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.pow.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x float> [[WIDE_LOAD]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.pow.f32(float [[IN:%.*]], float [[IN]])
 ;
+; LLVM-NEON-LABEL: define void @pow_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x float> @llvm.pow.v2f32(<2 x float> [[WIDE_LOAD:%.*]], <2 x float> [[WIDE_LOAD]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @pow_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.pow.v2f32(<2 x float> [[WIDE_LOAD:%.*]], <2 x float> [[WIDE_LOAD]])
+;
 ; SLEEF-NEON-LABEL: define void @pow_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.pow.v4f32(<4 x float> [[WIDE_LOAD:%.*]], <4 x float> [[WIDE_LOAD]])
@@ -2184,6 +2542,14 @@ define void @rint_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.rint.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.rint.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @rint_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.rint.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @rint_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.rint.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @rint_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.rint.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
@@ -2232,6 +2598,14 @@ define void @rint_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.rint.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.rint.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @rint_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.rint.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @rint_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.rint.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @rint_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.rint.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
@@ -2281,6 +2655,14 @@ define void @round_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.round.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.round.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @round_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.round.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @round_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.round.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @round_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.round.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
@@ -2329,6 +2711,14 @@ define void @round_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.round.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.round.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @round_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.round.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @round_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.round.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @round_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.round.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
@@ -2378,6 +2768,14 @@ define void @sin_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_sin(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.sin.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sin_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.sin.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sin_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.sin.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sin_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_sin(<2 x double> [[WIDE_LOAD:%.*]])
@@ -2426,6 +2824,14 @@ define void @sin_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_sinf(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.sin.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sin_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_sinf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sin_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.sin.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sin_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_sinf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -2477,6 +2883,16 @@ define void @sincos_f64(ptr noalias %in.ptr, ptr %out_a.ptr, ptr %out_b.ptr) vsc
 ; LIBMVEC-SVE:    [[TMP2:%.*]] = call { <2 x double>, <2 x double> } @llvm.sincos.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call { double, double } @llvm.sincos.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sincos_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP3:%.*]] = call { <2 x double>, <2 x double> } @llvm.sincos.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+; LLVM-NEON:    [[CALL:%.*]] = tail call { double, double } @llvm.sincos.f64(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sincos_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP3:%.*]] = call { <2 x double>, <2 x double> } @llvm.sincos.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call { double, double } @llvm.sincos.f64(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sincos_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call { <2 x double>, <2 x double> } @llvm.sincos.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
@@ -2535,6 +2951,16 @@ define void @sincos_f32(ptr noalias %in.ptr, ptr %out_a.ptr, ptr %out_b.ptr) vsc
 ; LIBMVEC-SVE:    [[TMP2:%.*]] = call { <2 x float>, <2 x float> } @llvm.sincospi.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call { float, float } @llvm.sincospi.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sincos_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP3:%.*]] = call { <2 x float>, <2 x float> } @llvm.sincospi.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+; LLVM-NEON:    [[CALL:%.*]] = tail call { float, float } @llvm.sincospi.f32(float [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sincos_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP3:%.*]] = call { <2 x float>, <2 x float> } @llvm.sincospi.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call { float, float } @llvm.sincospi.f32(float [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sincos_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call { <4 x float>, <4 x float> } @llvm.sincospi.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
@@ -2594,6 +3020,16 @@ define void @sincospi_f64(ptr noalias %in.ptr, ptr %out_a.ptr, ptr %out_b.ptr) v
 ; LIBMVEC-SVE:    [[TMP2:%.*]] = call { <2 x double>, <2 x double> } @llvm.sincospi.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call { double, double } @llvm.sincospi.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sincospi_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP3:%.*]] = call { <2 x double>, <2 x double> } @llvm.sincospi.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+; LLVM-NEON:    [[CALL:%.*]] = tail call { double, double } @llvm.sincospi.f64(double [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sincospi_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP3:%.*]] = call { <2 x double>, <2 x double> } @llvm.sincospi.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call { double, double } @llvm.sincospi.f64(double [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sincospi_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call { <2 x double>, <2 x double> } @llvm.sincospi.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
@@ -2652,6 +3088,16 @@ define void @sincospi_f32(ptr noalias %in.ptr, ptr %out_a.ptr, ptr %out_b.ptr) v
 ; LIBMVEC-SVE:    [[TMP2:%.*]] = call { <2 x float>, <2 x float> } @llvm.sincospi.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call { float, float } @llvm.sincospi.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sincospi_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP3:%.*]] = call { <2 x float>, <2 x float> } @llvm.sincospi.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+; LLVM-NEON:    [[CALL:%.*]] = tail call { float, float } @llvm.sincospi.f32(float [[IN:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sincospi_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP3:%.*]] = call { <2 x float>, <2 x float> } @llvm.sincospi.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+; LLVM-NEON-WIDTH-2:    [[CALL:%.*]] = tail call { float, float } @llvm.sincospi.f32(float [[IN:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sincospi_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_A_PTR:%.*]], ptr [[OUT_B_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP2:%.*]] = call { <4 x float>, <4 x float> } @llvm.sincospi.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
@@ -2709,6 +3155,14 @@ define void @sinh_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_sinh(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.sinh.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sinh_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.sinh.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sinh_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.sinh.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sinh_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_sinh(<2 x double> [[WIDE_LOAD:%.*]])
@@ -2757,6 +3211,14 @@ define void @sinh_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_sinhf(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.sinh.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sinh_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_sinhf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sinh_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.sinh.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sinh_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_sinhf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -2806,6 +3268,14 @@ define void @sqrt_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.sqrt.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.sqrt.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sqrt_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.sqrt.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sqrt_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.sqrt.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sqrt_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.sqrt.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
@@ -2854,6 +3324,14 @@ define void @sqrt_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.sqrt.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.sqrt.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @sqrt_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.sqrt.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @sqrt_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.sqrt.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @sqrt_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.sqrt.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
@@ -2903,6 +3381,14 @@ define void @tan_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_tan(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.tan.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @tan_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.tan.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @tan_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.tan.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @tan_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_tan(<2 x double> [[WIDE_LOAD:%.*]])
@@ -2951,6 +3437,14 @@ define void @tan_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_tanf(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.tan.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @tan_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_tanf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @tan_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.tan.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @tan_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_tanf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -3000,6 +3494,14 @@ define void @tanh_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @_ZGVsMxv_tanh(<vscale x 2 x double> [[WIDE_LOAD:%.*]], <vscale x 2 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.tanh.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @tanh_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.tanh.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @tanh_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.tanh.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @tanh_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @_ZGVnN2v_tanh(<2 x double> [[WIDE_LOAD:%.*]])
@@ -3048,6 +3550,14 @@ define void @tanh_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @_ZGVsMxv_tanhf(<vscale x 4 x float> [[WIDE_LOAD:%.*]], <vscale x 4 x i1> splat (i1 true))
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.tanh.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @tanh_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call aarch64_vector_pcs <4 x float> @_LMVnN4v_tanhf(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @tanh_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.tanh.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @tanh_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @_ZGVnN4v_tanhf(<4 x float> [[WIDE_LOAD:%.*]])
@@ -3097,6 +3607,14 @@ define void @trunc_f64(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 2 x double> @llvm.trunc.nxv2f64(<vscale x 2 x double> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call double @llvm.trunc.f64(double [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @trunc_f64
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.trunc.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @trunc_f64
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x double> @llvm.trunc.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @trunc_f64
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <2 x double> @llvm.trunc.v2f64(<2 x double> [[WIDE_LOAD:%.*]])
@@ -3145,6 +3663,14 @@ define void @trunc_f32(ptr noalias %in.ptr, ptr %out.ptr) vscale_range(1,16) {
 ; LIBMVEC-SVE:    [[TMP5:%.*]] = call <vscale x 4 x float> @llvm.trunc.nxv4f32(<vscale x 4 x float> [[WIDE_LOAD:%.*]])
 ; LIBMVEC-SVE:    [[CALL:%.*]] = tail call float @llvm.trunc.f32(float [[IN:%.*]])
 ;
+; LLVM-NEON-LABEL: define void @trunc_f32
+; LLVM-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.trunc.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
+;
+; LLVM-NEON-WIDTH-2-LABEL: define void @trunc_f32
+; LLVM-NEON-WIDTH-2-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR0]] {
+; LLVM-NEON-WIDTH-2:    [[TMP1:%.*]] = call <2 x float> @llvm.trunc.v2f32(<2 x float> [[WIDE_LOAD:%.*]])
+;
 ; SLEEF-NEON-LABEL: define void @trunc_f32
 ; SLEEF-NEON-SAME: (ptr noalias [[IN_PTR:%.*]], ptr [[OUT_PTR:%.*]]) #[[ATTR1]] {
 ; SLEEF-NEON:    [[TMP1:%.*]] = call <4 x float> @llvm.trunc.v4f32(<4 x float> [[WIDE_LOAD:%.*]])
diff --git a/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/llvm.ll b/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/llvm.ll
new file mode 100644
index 00000000000000..d93b5de0f2b469
--- /dev/null
+++ b/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/llvm.ll
@@ -0,0 +1,60 @@
+; RUN: %if x86-registered-target %{ opt -S -passes=declare-runtime-libcalls -mtriple=x86_64-unknown-linux -vector-library=LLVM < %s | FileCheck -check-prefix=X86 %s %}
+; RUN: %if aarch64-registered-target %{ opt -S -passes=declare-runtime-libcalls -mtriple=aarch64-unknown-linux -mattr=+neon,+sve -vector-library=LLVM < %s | FileCheck -check-prefix=AARCH64 %s %}
+
+; X86: declare <8 x float> @_LMVdN8v_acosf(<8 x float>) [[ATTRS:#[0-9]+]]
+; X86: declare <8 x float> @_LMVdN8v_acoshf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_asinf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_asinhf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_atanf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_atanhf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_cbrtf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_cosf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_coshf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_cospif(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_erff(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_exp10f(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_exp2f(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_expf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_expm1f(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_log10f(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_log1pf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_log2f(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_logf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_sinf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_sinhf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_sinpif(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_sqrtf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_tanf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_tanhf(<8 x float>) [[ATTRS]]
+; X86: declare <8 x float> @_LMVdN8v_tanpif(<8 x float>) [[ATTRS]]
+
+; X86: attributes [[ATTRS]] = { nocallback nofree nosync nounwind willreturn }
+
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_acosf(<4 x float>) [[ATTRS:#[0-9]+]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_acoshf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_asinf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_asinhf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_atanf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_atanhf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_cbrtf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_cosf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_coshf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_cospif(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_erff(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_exp10f(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_exp2f(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_expf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_expm1f(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_log10f(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_log1pf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_log2f(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_logf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_sinf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_sinhf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_sinpif(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_sqrtf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_tanf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_tanhf(<4 x float>) [[ATTRS]]
+; AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_tanpif(<4 x float>) [[ATTRS]]
+
+; AARCH64: attributes [[ATTRS]] = { nocallback nofree nosync nounwind willreturn }
diff --git a/llvm/test/Transforms/Util/add-TLI-mappings.ll b/llvm/test/Transforms/Util/add-TLI-mappings.ll
index 223d3bec6c0016..a4aefdf6f7baaa 100644
--- a/llvm/test/Transforms/Util/add-TLI-mappings.ll
+++ b/llvm/test/Transforms/Util/add-TLI-mappings.ll
@@ -3,6 +3,8 @@
 ; RUN: opt -mtriple=powerpc64-unknown-linux-gnu -vector-library=MASSV -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,MASSV
 ; RUN: opt -mtriple=aarch64-unknown-linux-gnu -vector-library=LIBMVEC -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,LIBMVEC-AARCH64
 ; RUN: opt -mtriple=x86_64-unknown-linux-gnu -vector-library=LIBMVEC -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,LIBMVEC-X86
+; RUN: opt -mtriple=aarch64-unknown-linux-gnu -vector-library=LLVM -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,LLVM-AARCH64
+; RUN: opt -mtriple=x86_64-unknown-linux-gnu -vector-library=LLVM -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,LLVM-X86
 ; RUN: opt -mtriple=x86_64-unknown-linux-gnu -vector-library=Accelerate -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,ACCELERATE
 ; RUN: opt -mtriple=aarch64-unknown-linux-gnu -vector-library=sleefgnuabi -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,SLEEFGNUABI
 ; RUN: opt -mtriple=riscv64-unknown-linux-gnu -vector-library=sleefgnuabi -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,SLEEFGNUABI_RISCV
@@ -95,6 +97,14 @@
 ; LIBMVEC-X86-SAME: [2 x ptr] [
 ; LIBMVEC-X86-SAME:   ptr @_ZGVbN2v_sin,
 ; LIBMVEC-X86-SAME:   ptr @_ZGVdN4v_sin
+; LLVM-AARCH64-SAME: [3 x ptr] [
+; LLVM-AARCH64-SAME:   ptr @_LMVnN4v_coshf,
+; LLVM-AARCH64-SAME:   ptr @_LMVnN4v_exp10f,
+; LLVM-AARCH64-SAME:   ptr @_LMVnN4v_log10f
+; LLVM-X86-SAME:    [3 x ptr] [
+; LLVM-X86-SAME:      ptr @_LMVdN8v_coshf,
+; LLVM-X86-SAME:      ptr @_LMVdN8v_exp10f,
+; LLVM-X86-SAME:      ptr @_LMVdN8v_log10f
 ; SLEEFGNUABI-SAME: [32 x ptr] [
 ; SLEEFGNUABI-SAME:   ptr @_ZGVnN2vl8_modf,
 ; SLEEFGNUABI-SAME:   ptr @_ZGVsNxvl8_modf,
@@ -329,6 +339,8 @@ define float @cosh_f32(float %in) {
 ; MASSV:              call float @coshf(float %{{.*}}) #[[COSHF:[0-9]+]]
 ; ACCELERATE:         call float @coshf(float %{{.*}}) #[[COSHF:[0-9]+]]
 ; LIBMVEC-AARCH64:    call float @coshf(float %{{.*}}) #[[COSHF:[0-9]+]]
+; LLVM-AARCH64:       call float @coshf(float %{{.*}}) #[[COSHF:[0-9]+]]
+; LLVM-X86:           call float @coshf(float %{{.*}}) #[[COSHF:[0-9]+]]
 ; SLEEFGNUABI:        call float @coshf(float %{{.*}}) #[[COSHF:[0-9]+]]
 ; ARMPL:              call float @coshf(float %{{.*}}) #[[COSHF:[0-9]+]]
   %call = tail call float @coshf(float %in)
@@ -353,6 +365,8 @@ define float @exp10_f32(float %in) {
 ; COMMON-LABEL:       @exp10_f32(
 ; AMDLIBM:            call float @exp10f(float %{{.*}}) #[[EXP10F:[0-9]+]]
 ; LIBMVEC-AARCH64:    call float @exp10f(float %{{.*}}) #[[EXP10F:[0-9]+]]
+; LLVM-AARCH64:       call float @exp10f(float %{{.*}}) #[[EXP10F:[0-9]+]]
+; LLVM-X86:           call float @exp10f(float %{{.*}}) #[[EXP10F:[0-9]+]]
 ; SLEEFGNUABI:        call float @exp10f(float %{{.*}}) #[[EXP10F:[0-9]+]]
 ; ARMPL:              call float @exp10f(float %{{.*}}) #[[EXP10F:[0-9]+]]
   %call = tail call float @exp10f(float %in)
@@ -367,6 +381,8 @@ define float @call_llvm.log10.f32(float %in) {
 ; AMDLIBM:            call float @llvm.log10.f32(float %{{.*}}) #[[LOG10:[0-9]+]]
 ; LIBMVEC-AARCH64:    call float @llvm.log10.f32(float %{{.*}}) #[[LOG10:[0-9]+]]
 ; LIBMVEC-X86:        call float @llvm.log10.f32(float %{{.*}})
+; LLVM-AARCH64:       call float @llvm.log10.f32(float %{{.*}}) #[[LOG10:[0-9]+]]
+; LLVM-X86:           call float @llvm.log10.f32(float %{{.*}}) #[[LOG10:[0-9]+]]
 ; MASSV:              call float @llvm.log10.f32(float %{{.*}}) #[[LOG10:[0-9]+]]
 ; ACCELERATE:         call float @llvm.log10.f32(float %{{.*}}) #[[LOG10:[0-9]+]]
 ; SLEEFGNUABI:        call float @llvm.log10.f32(float %{{.*}}) #[[LOG10:[0-9]+]]
@@ -467,6 +483,14 @@ declare double @ldexp(double, i32 signext) #0
 ; LIBMVEC-X86: declare <2 x double> @_ZGVbN2v_sin(<2 x double>)
 ; LIBMVEC-X86: declare <4 x double> @_ZGVdN4v_sin(<4 x double>)
 
+; LLVM-AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_coshf(<4 x float>)
+; LLVM-AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_exp10f(<4 x float>)
+; LLVM-AARCH64: declare aarch64_vector_pcs <4 x float> @_LMVnN4v_log10f(<4 x float>)
+
+; LLVM-X86: declare <8 x float> @_LMVdN8v_coshf(<8 x float>)
+; LLVM-X86: declare <8 x float> @_LMVdN8v_exp10f(<8 x float>)
+; LLVM-X86: declare <8 x float> @_LMVdN8v_log10f(<8 x float>)
+
 ; ACCELERATE: declare <4 x float> @vcoshf(<4 x float>)
 ; ACCELERATE: declare <4 x float> @vlog10f(<4 x float>)
 
@@ -655,6 +679,20 @@ attributes #0 = { nounwind readnone }
 ; LIBMVEC-X86-SAME:   "_ZGV_LLVM_N2v_sin(_ZGVbN2v_sin),
 ; LIBMVEC-X86-SAME:   _ZGV_LLVM_N4v_sin(_ZGVdN4v_sin)" }
 
+; LLVM-AARCH64:      attributes #[[COSHF]] = { "vector-function-abi-variant"=
+; LLVM-AARCH64-SAME:   _ZGV_LLVM_N4v_coshf(_LMVnN4v_coshf)" }
+; LLVM-AARCH64:      attributes #[[EXP10F]] = { "vector-function-abi-variant"=
+; LLVM-AARCH64-SAME:   _ZGV_LLVM_N4v_exp10f(_LMVnN4v_exp10f)" }
+; LLVM-AARCH64:      attributes #[[LOG10]] = { "vector-function-abi-variant"=
+; LLVM-AARCH64-SAME:   _ZGV_LLVM_N4v_llvm.log10.f32(_LMVnN4v_log10f)" }
+
+; LLVM-X86:      attributes #[[COSHF]] = { "vector-function-abi-variant"=
+; LLVM-X86-SAME:   _ZGV_LLVM_N8v_coshf(_LMVdN8v_coshf)" }
+; LLVM-X86:      attributes #[[EXP10F]] = { "vector-function-abi-variant"=
+; LLVM-X86-SAME:   _ZGV_LLVM_N8v_exp10f(_LMVdN8v_exp10f)" }
+; LLVM-X86:      attributes #[[LOG10]] = { "vector-function-abi-variant"=
+; LLVM-X86-SAME:   _ZGV_LLVM_N8v_llvm.log10.f32(_LMVdN8v_log10f)" }
+
 ; SLEEFGNUABI:      attributes #[[MODF]] = { "vector-function-abi-variant"=
 ; SLEEFGNUABI-SAME:   "_ZGV_LLVM_N2vl8_modf(_ZGVnN2vl8_modf),
 ; SLEEFGNUABI-SAME:   _ZGVsNxvl8_modf(_ZGVsNxvl8_modf)" }



More information about the cfe-commits mailing list