Skip to content
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

Improve arrayTranslateTROT255 helper for Power #21082

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions runtime/compiler/p/runtime/J9PPCArrayTranslate.spp
Original file line number Diff line number Diff line change
Expand Up @@ -680,18 +680,18 @@ __arrayTranslateTROT255:
.L.__simple_TROT255:
cmpi cr0, 0, r5, 0
beq cr0, .L.__done_TROT255 ! exit if done with input
addi r3, r3, -1 ! adjust so we can use lbzu
addi r4, r4, -2 ! adjust so we can use sthu
.L.__residue_TROT255:
lbz r6, 0(r3)
sth r6, 0(r4)
addi r3, r3, 1
addi r4, r4, 2
addi r5, r5, -1
cmpi cr0, 0, r5, 0
bne cr0, .L.__residue_TROT255
lbzu r6, 1(r3)
sthu r6, 2(r4)
addi r5, r5, -1
cmpi cr0, 0, r5, 0
bne cr0, .L.__residue_TROT255

.L.__done_TROT255:
laddr r3, -ALen(J9SP) ! Return number of elements processed.
blr
blr

#ifdef AIXPPC
.machine "pop"
Expand Down