Tue, 14 Jun 2016 19:48:30 +0200
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
src/cpu/ppc/vm/ppc.ad | file | annotate | diff | comparison | revisions |
1.1 --- a/src/cpu/ppc/vm/ppc.ad Wed Jun 22 13:46:47 2016 +0000 1.2 +++ b/src/cpu/ppc/vm/ppc.ad Tue Jun 14 19:48:30 2016 +0200 1.3 @@ -5469,7 +5469,7 @@ 1.4 %} 1.5 1.6 // Match loading integer and casting it to long. 1.7 -instruct loadI2L(iRegLdst dst, memory mem) %{ 1.8 +instruct loadI2L(iRegLdst dst, memoryAlg4 mem) %{ 1.9 match(Set dst (ConvI2L (LoadI mem))); 1.10 predicate(_kids[0]->_leaf->as_Load()->is_unordered()); 1.11 ins_cost(MEMORY_REF_COST); 1.12 @@ -5485,7 +5485,7 @@ 1.13 %} 1.14 1.15 // Match loading integer and casting it to long - acquire. 1.16 -instruct loadI2L_ac(iRegLdst dst, memory mem) %{ 1.17 +instruct loadI2L_ac(iRegLdst dst, memoryAlg4 mem) %{ 1.18 match(Set dst (ConvI2L (LoadI mem))); 1.19 ins_cost(3*MEMORY_REF_COST); 1.20