changeset 30:1f91cc15cd21

A wrong instruction(slt) was used.
author YANG Yongqiang <yangyongqiang@loongson.cn>
date Wed, 17 Nov 2010 17:46:08 +0800
parents 87db8957684e
children 202786aed583
files hotspot/src/cpu/mips/vm/c1_Runtime1_mips.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/cpu/mips/vm/c1_Runtime1_mips.cpp	Fri Nov 12 15:27:30 2010 +0800
+++ b/hotspot/src/cpu/mips/vm/c1_Runtime1_mips.cpp	Wed Nov 17 17:46:08 2010 +0800
@@ -916,7 +916,7 @@
         } else {
           __ set_info("new_object_array", dont_gc_arguments);
         }
-        
+               
         if (UseTLAB && FastTLABRefill) {
           Register arr_size = T0;
           Register t1       = T1; 
@@ -926,7 +926,7 @@
         
           // check that array length is small enough for fast path
           __ move(AT, C1_MacroAssembler::max_array_allocation_length);
-          __ slt(AT, AT, length);
+          __ sltu(AT, AT, length);
           __ bne(AT, ZERO, slow_path);
           __ delayed()->nop();