From ef6cf1f225a5bff17c6a1eb7712cd7a06900ea44 Mon Sep 17 00:00:00 2001 From: never Date: Thu, 2 Sep 2010 11:40:02 -0700 Subject: [PATCH] 6981773: incorrect fill value with OptimizeFill Reviewed-by: kvn, twisti --- hotspot/src/cpu/sparc/vm/stubGenerator_sparc.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hotspot/src/cpu/sparc/vm/stubGenerator_sparc.cpp b/hotspot/src/cpu/sparc/vm/stubGenerator_sparc.cpp index 8ec6255308..3ccfa4a312 100644 --- a/hotspot/src/cpu/sparc/vm/stubGenerator_sparc.cpp +++ b/hotspot/src/cpu/sparc/vm/stubGenerator_sparc.cpp @@ -1683,12 +1683,6 @@ class StubGenerator: public StubCodeGenerator { } #endif - Label L_check_fill_8_bytes; - // Fill 32-byte chunks - __ subcc(count, 8 << shift, count); - __ brx(Assembler::less, false, Assembler::pt, L_check_fill_8_bytes); - __ delayed()->nop(); - if (t == T_INT) { // Zero extend value __ srl(value, 0, value); @@ -1698,6 +1692,12 @@ class StubGenerator: public StubCodeGenerator { __ or3(value, O3, value); } + Label L_check_fill_8_bytes; + // Fill 32-byte chunks + __ subcc(count, 8 << shift, count); + __ brx(Assembler::less, false, Assembler::pt, L_check_fill_8_bytes); + __ delayed()->nop(); + Label L_fill_32_bytes_loop; __ align(16); __ BIND(L_fill_32_bytes_loop); -- GitLab