Hi, it depends on the "hiring of ex-employee policy" of HDFC Bank. As long as you were properly relieved from HDFC and ICICI Banks, there should not be any issue.
Normally, in the private sector, when hiring an ex-employee, employers analyze past association details such as last drawn CTC, designation, performance scale, etc. Your last drawn salary will be taken into consideration when fixing your new salary, and they will also compare it with the salaries of existing employees at a similar level who have been with the bank since the beginning.