comparison src/cpu/sparc/vm/c1_LinearScan_sparc.hpp @ 1851:357451a9ae6a

6991211: assert failure on sparc: "can not have caller-save register operands at calls" Summary: fixes sparc only assert failure following 6972540 Reviewed-by: never
author roland
date Wed, 13 Oct 2010 10:29:31 +0200
parents c18cbe5936b8
children f95d63e2154a
comparison
equal deleted inserted replaced
1847:a932f331ef90 1851:357451a9ae6a
62 if (allocator()->gen()->is_vreg_flag_set(cur->reg_num(), LIRGenerator::callee_saved)) { 62 if (allocator()->gen()->is_vreg_flag_set(cur->reg_num(), LIRGenerator::callee_saved)) {
63 assert(cur->type() != T_FLOAT && cur->type() != T_DOUBLE, "cpu regs only"); 63 assert(cur->type() != T_FLOAT && cur->type() != T_DOUBLE, "cpu regs only");
64 _first_reg = pd_first_callee_saved_reg; 64 _first_reg = pd_first_callee_saved_reg;
65 _last_reg = pd_last_callee_saved_reg; 65 _last_reg = pd_last_callee_saved_reg;
66 return true; 66 return true;
67 } else if (cur->type() == T_INT || cur->type() == T_LONG || cur->type() == T_OBJECT) { 67 } else if (cur->type() == T_INT || cur->type() == T_LONG || cur->type() == T_OBJECT || cur->type() == T_ADDRESS) {
68 _first_reg = pd_first_cpu_reg; 68 _first_reg = pd_first_cpu_reg;
69 _last_reg = pd_last_allocatable_cpu_reg; 69 _last_reg = pd_last_allocatable_cpu_reg;
70 return true; 70 return true;
71 } 71 }
72 return false; 72 return false;