[vector] Infrastructure for calling math routines in .s files

Lupusoru, Razvan A razvan.a.lupusoru at intel.com
Fri May 18 23:34:14 UTC 2018


Hi everyone,

The Vector API defines multiple math operations for FP including sin, cos, tan, exp. In order to get good performance, it is desirable to have implementations that perform these operations in vectorized manner (instead of what is happening now which is boxing and calling of scalar optimized routine).

We would like to contribute assembly files which contain these vectorized implementations. These implementations are from Intel Short Vector Math Library (https://software.intel.com/en-us/node/524289).

So I am sending out the initial patch which adds infrastructure (plus one implementation - exp) in order to be able to call these assembly routines from JIT compiled code. In a subsequent patches, we will contribute the other implementations in form of assembly files.
http://cr.openjdk.java.net/~rlupusoru/panama/webrev_callsvml_09/index.html

Please take a look at the patch and let me know if you have any questions. I would like to point out that among changes there are also a few which make sure that compiler does not tag with "NO_FP" any calls that may end up calling methods that are using FP/vector code. This is quite important for Vector API since unlike auto-vectorizer, there may be live vector registers at any point in the code.

Thanks,
Razvan



More information about the panama-dev mailing list