On 10/31/2013 02:06 AM, Zhenqiang Chen wrote: > With two compares, we might swap the order of the two compares to get a > valid combination. This is what current ARM does (Please refer > arm_select_dominace_cc_mode, cmp_and, cmp_ior, and_scc_scc and ior_scc_scc). > To improve gen_ccmp_first, we need another function/hook to determine which > compare is done first. I will double check ARM backend to avoid hook.
Hmm. I hadn't thought of that, and missed that point when looking through your previous patches. I think you should have a third hook for that. ARM will need it, but IA-64 doesn't. > Hook gen_ccmp_next needs one more parameter to indicate AND/IOR since they > will generate different instructions. True, I forgot about that while writing the hook descriptions. r~