Skip to content

Commit a1206f0

Browse files
Mohamed IssaTheRealMDoerr
authored andcommitted
8386578: double_keccak stub does not set its return value on x86
Reviewed-by: mdoerr, vpaprotski
1 parent 2fc458b commit a1206f0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/hotspot/cpu/x86/stubGenerator_x86_64_sha3.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ static address generate_double_keccak(StubGenerator *stubgen, MacroAssembler *_m
484484
__ cmpl(roundsLeft, 0);
485485
__ jcc(Assembler::notEqual, rounds24_loop);
486486

487+
__ xorq(rax, rax); // return 0
488+
487489
// store the states
488490
for (int i = 0; i < 5; i++) {
489491
__ evmovdquq(Address(state0, i * 40), k5, xmm(i), true, Assembler::AVX_512bit);

0 commit comments

Comments
 (0)