https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302
--- Comment #14 from Zhenqiang Chen <zhenqiang.chen at arm dot com> --- Created attachment 33608 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33608&action=edit patch After investigation, I found I mis-use tree_log2. Please try the attached patch. If it works, I will run all tests and send it for community review. Thanks!