Skip to content

Commit 41cc049

Browse files
author
Jatin Bhateja
committed
8350840: C2: x64 Assembler::vpcmpeqq assert: failed: XMM register should be 0-15
Reviewed-by: sviswanathan, kvn
1 parent a347ecd commit 41cc049

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6855,7 +6855,7 @@ void C2_MacroAssembler::vpsign_extend_dq(BasicType elem_bt, XMMRegister dst, XMM
68556855

68566856
void C2_MacroAssembler::vpgenmax_value(BasicType elem_bt, XMMRegister dst, XMMRegister allones, int vlen_enc, bool compute_allones) {
68576857
if (compute_allones) {
6858-
if (vlen_enc == Assembler::AVX_512bit) {
6858+
if (VM_Version::supports_avx512vl() || vlen_enc == Assembler::AVX_512bit) {
68596859
vpternlogd(allones, 0xff, allones, allones, vlen_enc);
68606860
} else {
68616861
vpcmpeqq(allones, allones, allones, vlen_enc);
@@ -6871,7 +6871,7 @@ void C2_MacroAssembler::vpgenmax_value(BasicType elem_bt, XMMRegister dst, XMMRe
68716871

68726872
void C2_MacroAssembler::vpgenmin_value(BasicType elem_bt, XMMRegister dst, XMMRegister allones, int vlen_enc, bool compute_allones) {
68736873
if (compute_allones) {
6874-
if (vlen_enc == Assembler::AVX_512bit) {
6874+
if (VM_Version::supports_avx512vl() || vlen_enc == Assembler::AVX_512bit) {
68756875
vpternlogd(allones, 0xff, allones, allones, vlen_enc);
68766876
} else {
68776877
vpcmpeqq(allones, allones, allones, vlen_enc);

test/jdk/ProblemList.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,6 @@ sun/tools/jstat/jstatLineCounts4.sh 8248691,8268211
748748

749749
jdk/incubator/vector/ShortMaxVectorTests.java 8306592 generic-i586
750750
jdk/incubator/vector/LoadJsvmlTest.java 8305390 windows-x64
751-
jdk/incubator/vector/Long256VectorTests.java 8350840 generic-x64
752751

753752
############################################################################
754753

0 commit comments

Comments
 (0)