Oleg Endo <oleg.e...@t-online.de> wrote: > Uhm, yes, I forgot to add the -fschedule-insns and -mprefergot options. > Regarding the -Os option, I think it's better to test this one at > multiple optimization levels, just in case. I've looked through > gcc.c-torture/compile and found some target specific test cases there, > so I thought it would be OK to do the same :) > Some targets also have their own torture subdir. If it's better, I > could also create gcc.target/sh/torture.
Maybe. For this specific test, I thought that "-Os -fschedule-insns -fPIC -mprefergot" would be enough because empirically these options will give high R0 register pressure which had caused that PR. Regards, kaz