On Thu, 13 Mar 2008, Joel Sherrill wrote: > > Also, if you use a multilib option in testing, that option goes on the > > command line *after* the options specified in dg-options. The tests may > > need to use dg-skip-if to skip them if any CPU option other than the one > > in the test is explicitly specified (so it would be tested if no explicit > > -mcpu option is used, or if -mcpu=405 is the multilib option being > > tested). > > > > Are you thinking of something roughly like this? > > /* { dg-skip-if "" { { !-mcpu=405 } } { "*" } { "" } } */
I'm thinking of /* { dg-skip-if "" { *-*-* } { "-mcpu=*" } { "-mcpu=405" } } */ but I don't guarantee that will work as expected. (There are some tests in gcc.target/cris skipping on "-march*", which seems similar.) -- Joseph S. Myers [EMAIL PROTECTED]