When re-powering things like tanks you have to take the transmissions/steering gear into account.
The V-8 Gas engine in the Sherman was good for about 450hp at 2600rpm. The diesel in the T-34 was good for about 500hp at 1800rpm. The power sounds like a good match but but it practice there are at least 2 sources of trouble.
1. The Max governed speed of the gas engine is 2800rpm which equals about 26-29mph in high gear. The diesel doesn't turn as fast which means that unless you replace the final drive gears top speed will be limited to around 20-22mph?
2. The max torque of the gas engine (an 18 liter engine) is 950ft lbs at 2100rpm. The diesel is making about 1460ft lbs at 1800rpm (and perhaps a bit more lower?). Gears and gear shafts don't really care about horsepower, they do care ( are affected by) torque. Increasing the torque the gears and gear shafts have to handle by over 50% is going to lead to a lot of blown transmissions.