This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] test for altivec h/w on PowerPC


On Tue, Mar 01, 2005 at 03:19:39PM -0800, Paul Gilliam wrote:
> testsuite/gdb.arch/altivec-abi.exp and testsuite/gdb.arch/altivec-regs.exp 
> test for relivance by checking if the configuration string ends in 'altivec'.  
> This wasn't working for me and doesn't seem like the right way to do this.
> 
> So I replaced it by adding a new routine to testsuit/lib/gdb.exp that compiles 
> and runs a tiny little program.  If we are on any machine that doesn't have 
> altivec hardware, then either the compile fails or the tiny little program 
> gets an illegal instruction trap when run. This is a modification of a 
> similar routine in the gcc testsuite. (cut-and-paste code re-use)
> 
> I then changed the two tests mentioned above to use the new routine.
> 
> Ok to commit?

Not quite.

- You've missed a changelog entry.

- You're running a test on the build system instead of the target
system.

- This code is based on Janis's check_vmx_hw_available from GCC, so you
might want to give credit.  Incidentally, the original version runs the
test on $target...

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]