[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lightning] i386 sse support

From: Paulo César Pereira de Andrade
Subject: [Lightning] i386 sse support
Date: Thu, 16 Sep 2010 05:41:57 -0300


  In the latest code in the work branch of
it was enabled support for, and now it uses sse by
default on i386.

  It pass lightning's "make check" and the tests in
as well as the tests in my language (base of the above link),
but there, lightning is used currently almost only to glue
calls to C functions.

  But some work should be done, as currently, while the code
has different paths for x87, sse, i686, and some untested sse4.1
code, it still lacks actual runtime check, as well as support
for sse < 2, as the sse code assumes sse2 or newer.

  What do you think would be the proper way to detect the cpu
features, and add support for runtime reconfiguration?
Maybe there should be some kind of call, like
jit_get_cpu_features(), that one should call before generating
code, so that the macros jit_sse_p(), jit_i686_p(), etc,
could actually be runtime flags. Also, it may be desirable
to allow changing these flags, mainly for testing purposes.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]