From 48438b9e13e8a9ce19dea37a75d29c015968c619 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Tue, 5 Apr 2011 16:29:40 +0200 Subject: [PATCH] Fix code generation for PHIs with type IRT_FLOAT. --- src/lj_asm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_asm.c b/src/lj_asm.c index 85962ab1..8af05e5a 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c @@ -3602,7 +3602,7 @@ static void asm_phi_fixup(ASMState *as) /* Setup right PHI reference. */ static void asm_phi(ASMState *as, IRIns *ir) { - RegSet allow = (irt_isnum(ir->t) ? RSET_FPR : RSET_GPR) & ~as->phiset; + RegSet allow = (irt_isfp(ir->t) ? RSET_FPR : RSET_GPR) & ~as->phiset; RegSet afree = (as->freeset & allow); IRIns *irl = IR(ir->op1); IRIns *irr = IR(ir->op2);