Enforcing data alignment for intrinsics

Bruno Alexandre Rosa bruno.rosa at eldorado.org.br
Fri Jan 20 18:45:25 UTC 2017

Oops, wrong mailing list. Sorry.
Already forward it to hotspot-compiler-dev at openjdk.java.net :)

Bruno Rosa

-----Original Message-----
From: ppc-aix-port-dev [mailto:ppc-aix-port-dev-bounces at openjdk.java.net] On Behalf Of Bruno Alexandre Rosa
Sent: sexta-feira, 20 de janeiro de 2017 16:43
To: compiler-dev at openjdk.java.net; ppc-aix-port-dev at openjdk.java.net
Subject: Enforcing data alignment for intrinsics

Hi all,

Currently I'm working on a patch to implement SHA2 intrinsics for ppc64 and came upon this issue: vector load instructions (lvx) assume that the data is 16bytes-aligned. It is possible to access unaligned data, but that requires more than just one instruction, incurring in a performance loss. 

Is it possible to enforce 16bytes alignment for the input buffer available to the intrinsics? If it is so, can someone give me pointers for making this change?

Bruno Rosa

More information about the compiler-dev mailing list