It wasn't strange that Madara would use Izanami on Shiro. To him, even if he couldn't control him, reducing the number of enemies was still a good thing.
Madara's understanding of Shiro was basically limited to the fact that he used a power system utterly different from ninjutsu, and that he had some unusual plans for this world. Though Madara did not know much, it was not hard to analyze that much from the information he could uncover.
Moreover, Emiya Shiro clearly had not attacked him because he had captured Obito. Emiya Shiro's plans had begun long ago. The simplest proof was that White Zetsu had been unable to gather information on him for a long time now.
Thus, Madara had never expected this Izanami to control Shiro. It did not have that effect either. As long as it changed his original thinking and made him stop opposing Madara, that would be enough.
Unfortunately, he had not expected Shiro to possess this kind of genjutsu. In the previous clone battle, "Shiro's" expressions had all changed completely in accordance with the battle situation. Who could have known that it was actually an illusion?
So the instant Izanami failed, all of Madara's Wood Clones attacked at the same time and scattered every last Shadow Clone!
As for the main body, he took that opportunity to switch in Uchiha Yao's pair of Sharingan. As for Shiro...
He was currently receiving an enormous amount of information from his Shadow Clones and was in a dumbfounded state, unable to react at all. Although he had guessed that Madara knew Izanami and Izanagi and had made corresponding preparations, in reality he had not believed that Madara would truly use Izanami.
Shiro had forgotten the specific effect of this technique. He did not know whether the original