src/cpu/mips/vm/macroAssembler_mips.cpp

changeset 9245
aef0606c167c
parent 9242
133e3e9881b9
child 9263
adfd32ea5bcf
     1.1 --- a/src/cpu/mips/vm/macroAssembler_mips.cpp	Thu Sep 13 15:03:14 2018 +0800
     1.2 +++ b/src/cpu/mips/vm/macroAssembler_mips.cpp	Thu Sep 13 15:14:28 2018 +0800
     1.3 @@ -1816,9 +1816,8 @@
     1.4    ld_ptr(obj, thread, in_bytes(JavaThread::tlab_top_offset()));
     1.5  
     1.6    if (var_size_in_bytes == NOREG) {
     1.7 -    // i dont think we need move con_size_in_bytes to a register first.
     1.8 -    assert(is_simm16(con_size_in_bytes), "fixme by moving imm to a register first");
     1.9 -    addi(end, obj, con_size_in_bytes);
    1.10 +    set64(AT, con_size_in_bytes);
    1.11 +    add(end, obj, AT);
    1.12    } else {
    1.13      add(end, obj, var_size_in_bytes);
    1.14    }
    1.15 @@ -1859,9 +1858,8 @@
    1.16  
    1.17      bind(retry);
    1.18      if (var_size_in_bytes == NOREG) {
    1.19 -    // i dont think we need move con_size_in_bytes to a register first.
    1.20 -      assert(is_simm16(con_size_in_bytes), "fixme by moving imm to a register first");
    1.21 -      addi(end, obj, con_size_in_bytes);
    1.22 +      set64(AT, con_size_in_bytes);
    1.23 +      add(end, obj, AT);
    1.24      } else {
    1.25        add(end, obj, var_size_in_bytes);
    1.26      }

mercurial