For x86_64 there are more than just 8 registers.
Unified · Split
| @@ -1416,7 +1416,7 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands, · 1415 unmodified lines | ||
| 1416 | 1416 | /* any general register */ |
| 1417 | 1417 | if ((reg = op->reg) >= 0) |
| 1418 | 1418 | goto reg_found; |
| 1419 | − else for(reg = 0; reg < 8; reg++) { | |
| 1419 | + else for(reg = 0; reg < NB_ASM_REGS; reg++) { | |
| 1420 | 1420 | if (!is_reg_allocated(reg)) |
| 1421 | 1421 | goto reg_found; |
| 1422 | 1422 | } |
| @@ -1451,7 +1451,7 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands, · 28 unmodified lines | ||
| 1451 | 1451 | if (j < nb_outputs || c == 'm') { |
| 1452 | 1452 | if ((op->vt->r & VT_VALMASK) == VT_LLOCAL) { |
| 1453 | 1453 | /* any general register */ |
| 1454 | − for(reg = 0; reg < 8; reg++) { | |
| 1454 | + for(reg = 0; reg < NB_ASM_REGS; reg++) { | |
| 1455 | 1455 | if (!(regs_allocated[reg] & REG_IN_MASK)) |
| 1456 | 1456 | goto reg_found1; |
| 1457 | 1457 | } |
| @@ -1484,7 +1484,7 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands, · 26 unmodified lines | ||
| 1484 | 1484 | if (op->reg >= 0 && |
| 1485 | 1485 | (op->vt->r & VT_VALMASK) == VT_LLOCAL && |
| 1486 | 1486 | !op->is_memory) { |
| 1487 | − for(reg = 0; reg < 8; reg++) { | |
| 1487 | + for(reg = 0; reg < NB_ASM_REGS; reg++) { | |
| 1488 | 1488 | if (!(regs_allocated[reg] & REG_OUT_MASK)) |
| 1489 | 1489 | goto reg_found2; |
| 1490 | 1490 | } |