PATCH: Add SSE4.1 testcases

Uros Bizjak ubizjak@gmail.com
Tue May 22 14:09:00 GMT 2007


On 5/22/07, Daniel Jacobowitz <drow@false.org> wrote:

> FYI, I have been coming to the opinion that the runtime feature tests
> in each test are a very bad idea.  They rely on signal handling; you
> can't test on a bare metal target that way, but if you use an
> effective target keyword then you can.

"runtime tests" in this context is a cpuid check at the start of the
test. If the target doesn't support requested feature, it simply
returns 0.

There is a bit of confusion w.r.t. to "target_supports" stuff.
target_supports_sse4 means that sse4 code can be _compiled_ with the
toolchain. Real runtime check would be target_supports_sse4_runtime.

Uros.



More information about the Gcc-patches mailing list