Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8273416: C2: assert(false) failed: bad AD file after JDK-8252372 with UseSSE={0,1} #245

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/hotspot/cpu/x86/x86_32.ad
Expand Up @@ -7189,6 +7189,7 @@ instruct castLL( eRegL dst ) %{
%}

instruct castFF( regF dst ) %{
predicate(UseSSE >= 2);
match(Set dst (CastFF dst));
format %{ "#castFF of $dst" %}
ins_encode( /*empty encoding*/ );
Expand All @@ -7197,6 +7198,25 @@ instruct castFF( regF dst ) %{
%}

instruct castDD( regD dst ) %{
predicate(UseSSE >= 2);
match(Set dst (CastDD dst));
format %{ "#castDD of $dst" %}
ins_encode( /*empty encoding*/ );
ins_cost(0);
ins_pipe( empty );
%}

instruct castFF_PR( regFPR dst ) %{
predicate(UseSSE < 2);
match(Set dst (CastFF dst));
format %{ "#castFF of $dst" %}
ins_encode( /*empty encoding*/ );
ins_cost(0);
ins_pipe( empty );
%}

instruct castDD_PR( regDPR dst ) %{
predicate(UseSSE < 2);
match(Set dst (CastDD dst));
format %{ "#castDD of $dst" %}
ins_encode( /*empty encoding*/ );
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/opto/castnode.hpp
Expand Up @@ -140,7 +140,7 @@ class CastFFNode: public ConstraintCastNode {
init_class_id(Class_CastFF);
}
virtual int Opcode() const;
virtual uint ideal_reg() const { return Op_RegF; }
virtual uint ideal_reg() const { return in(1)->ideal_reg(); }
};

class CastDDNode: public ConstraintCastNode {
Expand All @@ -150,7 +150,7 @@ class CastDDNode: public ConstraintCastNode {
init_class_id(Class_CastDD);
}
virtual int Opcode() const;
virtual uint ideal_reg() const { return Op_RegD; }
virtual uint ideal_reg() const { return in(1)->ideal_reg(); }
};

class CastVVNode: public ConstraintCastNode {
Expand Down