This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH,testsuite] add check_ultrasparc_hw_available
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Nathan Froyd <froydnj at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 10 Jul 2007 23:07:28 +0200
- Subject: Re: [PATCH,testsuite] add check_ultrasparc_hw_available
- References: <20070710202343.GA31569@sparrowhawk.codesourcery.com>
> check_ultrasparc_hw_available, then, compiles a simple test case with
> -mcpu=ultrasparc and attempts to run it. If it succeeds, then we know
> we can run executables compiled with -mcpu=ultrasparc.
+ # Set up, compile, and execute a test program probing bit 8 of the
+ # architecture mask, which indicates presence of MAX instructions.
+ set src svect[pid].c
+ set exe svect[pid].x
+
+ set f [open $src "w"]
+ puts $f "int main() { return 0; }"
+ close $f
The comment looks bogus.
> Tested on sparc-wrs-vxworks on the SPARC simulator, where it fixes ~300
> FAILs (they are converted to UNSUPPORTEDs).
Please test it on native UltraSPARC to see if it doesn't change anything.
--
Eric Botcazou