[llvm] [PowerPC][AIX] Using milicode for memcmp instead of libcall (PR #147093)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 10 03:28:33 PDT 2025


================
@@ -39,7 +39,7 @@ define noundef i32 @_Z11memcmp_testPKvS0_m(ptr noundef readonly captures(none) %
 ; CHECK-AIX-64-P9-NEXT:    mflr r0
 ; CHECK-AIX-64-P9-NEXT:    stdu r1, -112(r1)
 ; CHECK-AIX-64-P9-NEXT:    std r0, 128(r1)
-; CHECK-AIX-64-P9-NEXT:    bl .memcmp[PR]
+; CHECK-AIX-64-P9-NEXT:    bl .___memcmp64[PR]
----------------
arsenm wrote:

This doesn't look like a tail call? Make sure both tail and non-tail cases are tested? 

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


More information about the llvm-commits mailing list