< prev index next >

src/hotspot/cpu/aarch64/c1_LIR_aarch64.cpp

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.
--- 1,7 ---
  /*
!  * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

*** 48,7 ***
--- 48,8 ---
  void LIR_Address::verify() const {
    assert(base()->is_cpu_register(), "wrong base operand");
    assert(index()->is_illegal() || index()->is_double_cpu() || index()->is_single_cpu(), "wrong index operand");
    assert(base()->type() == T_ADDRESS || base()->type() == T_OBJECT || base()->type() == T_LONG || base()->type() == T_METADATA,
           "wrong type for addresses");
+   assert(index()->is_illegal() || disp() == 0, "cannot set both index and displacement");
  }
  #endif // PRODUCT
< prev index next >