This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Add SSE4.1 testcases


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.


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