@@ -955,7 +955,7 @@ void MacroAssembler::pop_reg(Register Rd)
955955int MacroAssembler::bitset_to_regs (unsigned int bitset, unsigned char * regs) {
956956 int count = 0 ;
957957 // Scan bitset to accumulate register pairs
958- for (int reg = 31 ; reg >= 0 ; reg --) {
958+ for (int reg = 31 ; reg >= 0 ; reg--) {
959959 if ((1U << 31 ) & bitset) {
960960 regs[count++] = reg;
961961 }
@@ -1008,25 +1008,12 @@ int MacroAssembler::pop_reg(unsigned int bitset, Register stack) {
10081008 return count;
10091009}
10101010
1011- int MacroAssembler::bitset_to_fregs (unsigned int bitset, unsigned char * regs) {
1012- int count = 0 ;
1013- // Scan bitset to accumulate register pairs
1014- for (int reg = 31 ; reg >= 0 ; reg--) {
1015- if ((1U << 31 ) & bitset) {
1016- regs[count++] = reg;
1017- }
1018- bitset <<= 1 ;
1019- }
1020-
1021- return count;
1022- }
1023-
10241011// Push float registers in the bitset, except sp.
10251012// Return the number of heapwords pushed.
10261013int MacroAssembler::push_fp (unsigned int bitset, Register stack) {
10271014 int words_pushed = 0 ;
10281015 unsigned char regs[32 ];
1029- int count = bitset_to_fregs (bitset, regs);
1016+ int count = bitset_to_regs (bitset, regs);
10301017 int push_slots = count + (count & 1 );
10311018
10321019 if (count) {
@@ -1045,7 +1032,7 @@ int MacroAssembler::push_fp(unsigned int bitset, Register stack) {
10451032int MacroAssembler::pop_fp (unsigned int bitset, Register stack) {
10461033 int words_popped = 0 ;
10471034 unsigned char regs[32 ];
1048- int count = bitset_to_fregs (bitset, regs);
1035+ int count = bitset_to_regs (bitset, regs);
10491036 int pop_slots = count + (count & 1 );
10501037
10511038 for (int i = count - 1 ; i >= 0 ; i--) {
0 commit comments