--- a/src/hotspot/cpu/sparc/c1_LIRAssembler_sparc.cpp Mon Nov 04 13:02:40 2019 -0800
+++ b/src/hotspot/cpu/sparc/c1_LIRAssembler_sparc.cpp Thu Oct 31 07:53:16 2019 +0100
@@ -1511,6 +1511,18 @@
}
break;
+ case T_METADATA:
+ // We only need, for now, comparison with NULL for metadata.
+ { assert(condition == lir_cond_equal || condition == lir_cond_notEqual, "oops");
+ Metadata* m = opr2->as_constant_ptr()->as_metadata();
+ if (m == NULL) {
+ __ cmp(opr1->as_register(), 0);
+ } else {
+ ShouldNotReachHere();
+ }
+ }
+ break;
+
default:
ShouldNotReachHere();
break;