On 11/12/2011 07:56 AM, Richard Henderson wrote: > On 11/11/2011 07:39 PM, Kaz Kojima wrote: >> It seems that expand_builtin sets "target" variable to >> const0_trx when "ignore" argument is set and this causes >> the above ICE. I'm trying a patch ... > > I think the fix belongs in expand_builtin_compare_and_swap. > I'm testing the following.
Full test completed on x86_64-linux. I verified that the test you mentioned no longer ICEs on sh4-linux. Committed. r~