Skip to content

Commit 6e00622

Browse files
eastigsimonis
authored andcommitted
8256488: [aarch64] Use ldpq/stpq instead of ld4/st4 for small copies in StubGenerator::copy_memory
Reviewed-by: simonis
1 parent a93841a commit 6e00622

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,9 +1152,11 @@ class StubGenerator: public StubCodeGenerator {
11521152
// (96 bytes if SIMD because we do 32 byes per instruction)
11531153
__ bind(copy80);
11541154
if (UseSIMDForMemoryOps) {
1155-
__ ld4(v0, v1, v2, v3, __ T16B, Address(s, 0));
1155+
__ ldpq(v0, v1, Address(s, 0));
1156+
__ ldpq(v2, v3, Address(s, 32));
11561157
__ ldpq(v4, v5, Address(send, -32));
1157-
__ st4(v0, v1, v2, v3, __ T16B, Address(d, 0));
1158+
__ stpq(v0, v1, Address(d, 0));
1159+
__ stpq(v2, v3, Address(d, 32));
11581160
__ stpq(v4, v5, Address(dend, -32));
11591161
} else {
11601162
__ ldp(t0, t1, Address(s, 0));

0 commit comments

Comments
 (0)