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

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 2 09:30:40 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]
 ; CHECK-AIX-64-P9-NEXT:    nop
----------------
RolandF77 wrote:

The triple underscore names allow the compiler to refer to the millicode functions symbolically. The linker will convert them to bla - it knows the constant addresses.

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


More information about the llvm-commits mailing list