-
Notifications
You must be signed in to change notification settings - Fork 14.7k
[PowerPC][AIX] Using milicode for memcmp instead of libcall #147093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a46d818
cc21f3a
d835a24
97837a2
26e6c75
0d8e632
c5dac80
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't look like a tail call? Make sure both tail and non-tail cases are tested? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
you are correct, the IR in the test case is tail call, but in AIX, it is not tail callable when using a toc - the reason being you have to do a toc restore after returning from the definition of memcmp since it lives in another library and the call sequence modifies r2 to point to the defining modules toc. |
||
; CHECK-AIX-64-P9-NEXT: nop | ||
; CHECK-AIX-64-P9-NEXT: addi r1, r1, 112 | ||
; CHECK-AIX-64-P9-NEXT: ld r0, 16(r1) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort forward declarations alphabetically