VectorAPI and C2 compiler

Paul Sandoz paul.sandoz at oracle.com
Tue Jan 12 17:07:49 UTC 2021


Hi Jose,

Shifting over to panama-dev (bcc’ing discuss at openjdk.java.net <mailto:discuss at openjdk.java.net>).

Can you share a complete example on x86 that is not producing what you expect?

I suspect in the PPC case some wiring up to the vector intrinsics are missing.

Paul.

> On Jan 11, 2021, at 1:07 PM, joserz at linux.ibm.com wrote:
> 
> Hello team,
> 
> I'm currently working on the VectorAPI support to PowerPC64 but none of my instructions, defined in ppc64.ad, gets executed. I decided to take a look at x86, but again no Vector instructions printed.
> 
> Basically, I have a test case like this:
>        for (int j = 0; j < 1_000_000; j++) {
>            int[] iin128 = {25, -398, 415, Short.MAX_VALUE + 2};
>            short[] sout64 = new short[ShortVector.SPECIES_64.length()];
> 
>            vectorCastIntToShort(IntVector.SPECIES_128,
>                                 ShortVector.SPECIES_64,
>                                 iin128, sout64);
>        }
> 
> That I execute like:
>        java -Xcomp -XX:-TieredCompilation -XX:CompileThreshold=1 \
>             -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly \
>             -XX:+PrintOptoAssembly -XX:+UnlockExperimentalVMOptions \
>             -XX:+EnableVectorSupport -XX:+EnableVectorReboxing \
>             -XX:+EnableVectorAggressiveReboxing -XX:UseAVX=2 Cast
> 
> And expected to see any of `format %{ "vector_* ... %}` instructions, defined in x86.ad, being printed.
> 
> Am I missing anything?
> 
> Thank you,
> 
> Jose R Ziviani



More information about the panama-dev mailing list