Mercurial > hg > icedtea7-forest > hotspot
changeset 6500:e9ee147de712
8158260: PPC64: unaligned Unsafe.getInt can lead to the generation of illegal instructions
Summary: Adjust instruction generation.
Reviewed-by: goetz
Contributed-by: gromero@linux.vnet.ibm.com, horii@jp.ibm.com
author | simonis |
---|---|
date | Tue, 14 Jun 2016 19:48:30 +0200 |
parents | dcbd95fc5cc6 |
children | 7253ceea2ee1 |
files | src/cpu/ppc/vm/ppc.ad |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cpu/ppc/vm/ppc.ad Wed Jan 27 15:01:46 2016 +0100 +++ b/src/cpu/ppc/vm/ppc.ad Tue Jun 14 19:48:30 2016 +0200 @@ -7653,7 +7653,7 @@ // SAPJVM GL 2013-10-29 Match ConvI2L(LoadI) // Match loading integer and casting it to long. -instruct loadI2L(iRegLdst dst, memory mem) %{ +instruct loadI2L(iRegLdst dst, memoryAlg4 mem) %{ match(Set dst (ConvI2L (LoadI mem))); predicate(_kids[0]->_leaf->as_Load()->is_unordered()); ins_cost(MEMORY_REF_COST); @@ -7665,7 +7665,7 @@ %} // Match loading integer and casting it to long - acquire. -instruct loadI2L_ac(iRegLdst dst, memory mem) %{ +instruct loadI2L_ac(iRegLdst dst, memoryAlg4 mem) %{ match(Set dst (ConvI2L (LoadI mem))); ins_cost(3*MEMORY_REF_COST);