8303804: Fix some errors of If-VectorTest and CMove-VectorTest

Reviewed-by: qamai, thartmann
This commit is contained in:
Wang Haomin 2023-03-22 07:36:11 +00:00 committed by Tobias Hartmann
parent 0156909ab3
commit c039d26603
2 changed files with 4 additions and 2 deletions

View File

@ -1192,7 +1192,8 @@ void ArchDesc::buildMustCloneMap(FILE *fp_hpp, FILE *fp_cpp) {
|| strcmp(idealName,"OverflowMulI") == 0
|| strcmp(idealName,"OverflowMulL") == 0
|| strcmp(idealName,"Bool") == 0
|| strcmp(idealName,"Binary") == 0 ) {
|| strcmp(idealName,"Binary") == 0
|| strcmp(idealName,"VectorTest") == 0 ) {
// Removed ConI from the must_clone list. CPUs that cannot use
// large constants as immediates manifest the constant as an
// instruction. The must_clone flag prevents the constant from

View File

@ -3985,7 +3985,8 @@ void ArchDesc::buildMachNode(FILE *fp_cpp, InstructForm *inst, const char *inden
// Fill in the bottom_type where requested
if (inst->captures_bottom_type(_globalNames)) {
if (strncmp("MachCall", inst->mach_base_class(_globalNames), strlen("MachCall"))) {
if (strncmp("MachCall", inst->mach_base_class(_globalNames), strlen("MachCall")) != 0
&& strncmp("MachIf", inst->mach_base_class(_globalNames), strlen("MachIf")) != 0) {
fprintf(fp_cpp, "%s node->_bottom_type = _leaf->bottom_type();\n", indent);
}
}