aboutsummaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorkvn <none@none>2012-06-19 15:12:56 -0700
committerkvn <none@none>2012-06-19 15:12:56 -0700
commit78269e4dfa5b55ba41137a0aab438c0633ebc153 (patch)
tree10f7f503a3fe588fde9fa75b09dc754a16af5566 /src/cpu
parentb3bb45e1db2dd6ae24110a88fe42d326d13c5294 (diff)
7177923: SIGBUS on sparc in compiled code for java.util.Calendar.clear()
Summary: disable vectorization of a memory access with more elements per vector than one which is used for alignment on sparc Reviewed-by: twisti
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/x86/vm/x86.ad10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cpu/x86/vm/x86.ad b/src/cpu/x86/vm/x86.ad
index faa00d703..af5b5f0b0 100644
--- a/src/cpu/x86/vm/x86.ad
+++ b/src/cpu/x86/vm/x86.ad
@@ -2061,7 +2061,7 @@ instruct Repl8I_imm(vecY dst, immI con) %{
// Integer could be loaded into xmm register directly from memory.
instruct Repl2I_mem(vecD dst, memory mem) %{
predicate(n->as_Vector()->length() == 2);
- match(Set dst (ReplicateI mem));
+ match(Set dst (ReplicateI (LoadVector mem)));
format %{ "movd $dst,$mem\n\t"
"pshufd $dst,$dst,0x00\t! replicate2I" %}
ins_encode %{
@@ -2073,7 +2073,7 @@ instruct Repl2I_mem(vecD dst, memory mem) %{
instruct Repl4I_mem(vecX dst, memory mem) %{
predicate(n->as_Vector()->length() == 4);
- match(Set dst (ReplicateI mem));
+ match(Set dst (ReplicateI (LoadVector mem)));
format %{ "movd $dst,$mem\n\t"
"pshufd $dst,$dst,0x00\t! replicate4I" %}
ins_encode %{
@@ -2085,7 +2085,7 @@ instruct Repl4I_mem(vecX dst, memory mem) %{
instruct Repl8I_mem(vecY dst, memory mem) %{
predicate(n->as_Vector()->length() == 8);
- match(Set dst (ReplicateI mem));
+ match(Set dst (ReplicateI (LoadVector mem)));
format %{ "movd $dst,$mem\n\t"
"pshufd $dst,$dst,0x00\n\t"
"vinsertf128h $dst,$dst,$dst\t! replicate8I" %}
@@ -2225,7 +2225,7 @@ instruct Repl4L_imm(vecY dst, immL con) %{
// Long could be loaded into xmm register directly from memory.
instruct Repl2L_mem(vecX dst, memory mem) %{
predicate(n->as_Vector()->length() == 2);
- match(Set dst (ReplicateL mem));
+ match(Set dst (ReplicateL (LoadVector mem)));
format %{ "movq $dst,$mem\n\t"
"movlhps $dst,$dst\t! replicate2L" %}
ins_encode %{
@@ -2237,7 +2237,7 @@ instruct Repl2L_mem(vecX dst, memory mem) %{
instruct Repl4L_mem(vecY dst, memory mem) %{
predicate(n->as_Vector()->length() == 4);
- match(Set dst (ReplicateL mem));
+ match(Set dst (ReplicateL (LoadVector mem)));
format %{ "movq $dst,$mem\n\t"
"movlhps $dst,$dst\n\t"
"vinsertf128h $dst,$dst,$dst\t! replicate4L" %}