Mercurial > hg > graal-jvmci-8
comparison src/cpu/x86/vm/x86.ad @ 14261:00f5eff62d18
8002074: Support for AES on SPARC
Summary: Add intrinsics/stub routines support for single-block and multi-block (as used by Cipher Block Chaining mode) AES encryption and decryption operations on the SPARC platform.
Reviewed-by: kvn, roland
Contributed-by: shrinivas.joshi@oracle.com
author | kvn |
---|---|
date | Tue, 14 Jan 2014 17:46:48 -0800 |
parents | b2c669fd8114 |
children | 4ca6dc0799b6 a433eb716ce1 |
comparison
equal
deleted
inserted
replaced
14260:8cdf3f43f63e | 14261:00f5eff62d18 |
---|---|
577 } | 577 } |
578 | 578 |
579 // x86 supports misaligned vectors store/load. | 579 // x86 supports misaligned vectors store/load. |
580 const bool Matcher::misaligned_vectors_ok() { | 580 const bool Matcher::misaligned_vectors_ok() { |
581 return !AlignVector; // can be changed by flag | 581 return !AlignVector; // can be changed by flag |
582 } | |
583 | |
584 // x86 AES instructions are compatible with SunJCE expanded | |
585 // keys, hence we do not need to pass the original key to stubs | |
586 const bool Matcher::pass_original_key_for_aes() { | |
587 return false; | |
582 } | 588 } |
583 | 589 |
584 // Helper methods for MachSpillCopyNode::implementation(). | 590 // Helper methods for MachSpillCopyNode::implementation(). |
585 static int vec_mov_helper(CodeBuffer *cbuf, bool do_size, int src_lo, int dst_lo, | 591 static int vec_mov_helper(CodeBuffer *cbuf, bool do_size, int src_lo, int dst_lo, |
586 int src_hi, int dst_hi, uint ireg, outputStream* st) { | 592 int src_hi, int dst_hi, uint ireg, outputStream* st) { |