[llvm] [PowerPC] Pre-commit test case to ensure that milicode is not used for memcmp, but instead a library call is used on AIX OS. (PR #146948)
Lei Huang via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 4 07:53:00 PDT 2025
================
@@ -0,0 +1,26 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc -verify-machineinstrs -mcpu=pwr9 -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix < %s | \
+; RUN: FileCheck %s --check-prefix=CHECK-AIX-32-P9
+
+
+define i32 @memcmp_test(ptr nocapture noundef readonly %ptr1, ptr nocapture noundef readonly %ptr2, i32 noundef %num) local_unnamed_addr {
----------------
lei137 wrote:
can we replace `local_unnamed_addr` with `nounwind`? That will prevent the generation of the `.cfi*` inst I believe.
https://github.com/llvm/llvm-project/pull/146948
More information about the llvm-commits
mailing list