testsuite run-time test for sse2 support

Joel Sherrill joel.sherrill@oarcorp.com
Wed Mar 12 20:05:00 GMT 2008


Hi,

As the traffic over on gcc indicates, I have
been testing on an i386 target with no fancy
extensions.  Since RTEMS multilibs a lot of
variants, the toolset supports more than
the target hardware. 

The attached patch adds a run-time check for
SSE2 support.  I think I picked an instruction
that only shows up at >= SSE2.  At this point,
I didn't see any need to test for each level
individually.

OK to commit?

2008-03-12  Joel Sherrill <joel.sherrill@oarcorp.com>

    * gcc.dg/vect/vect.exp: Add check for target hardware
    supporting SSE2.
    * lib/target-supports.exp: Add check_sse2_hw_available
    function.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985


-------------- next part --------------
A non-text attachment was scrubbed...
Name: sse2_test.diff
Type: text/x-patch
Size: 1859 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080312/01cf86c3/attachment.bin>


More information about the Gcc-patches mailing list