A testcase is added for all targets as I think it's a middle-end issue. And sorry for not being able to simplify it. arm-none-eabi has been test on the model, no new issues. bootstrapping and regression tested on x86, no new issues.Is it Okay to commit?Yes. Thanks very much for working on it and fixing it.
Isn't this something that should be considered for the 4.9 branch as the bug was reported there ?
Ramana