src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp
changeset 58925 9bbe560e8131
parent 58356 feff88c68082
child 59014 36fde8064316
equal deleted inserted replaced
58924:c41d1303a87c 58925:9bbe560e8131
  1465               __ cmpd(BOOL_RESULT, opr1->as_register(), R0);
  1465               __ cmpd(BOOL_RESULT, opr1->as_register(), R0);
  1466             }
  1466             }
  1467           }
  1467           }
  1468           break;
  1468           break;
  1469 
  1469 
       
  1470         case T_METADATA:
       
  1471           // We only need, for now, comparison with NULL for metadata.
       
  1472           {
       
  1473             assert(condition == lir_cond_equal || condition == lir_cond_notEqual, "oops");
       
  1474             Metadata* p = opr2->as_constant_ptr()->as_metadata();
       
  1475             if (p == NULL) {
       
  1476               __ cmpdi(BOOL_RESULT, opr1->as_register(), 0);
       
  1477             } else {
       
  1478               ShouldNotReachHere();
       
  1479             }
       
  1480           }
       
  1481           break;
       
  1482 
  1470         default:
  1483         default:
  1471           ShouldNotReachHere();
  1484           ShouldNotReachHere();
  1472           break;
  1485           break;
  1473       }
  1486       }
  1474     } else {
  1487     } else {