Mercurial > projects > ldc
changeset 1301:1e30cc395d2e
fix wrong arg order for fmul/fadd
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Tue, 05 May 2009 11:51:00 -0600 |
parents | 329e45865d84 |
children | a26b99b7e293 8215dbf0e09f |
files | gen/asm-x86-32.h gen/asm-x86-64.h |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/asm-x86-32.h Mon May 04 20:26:45 2009 +0200 +++ b/gen/asm-x86-32.h Tue May 05 11:51:00 2009 -0600 @@ -1821,9 +1821,9 @@ else if ( op == Op_FMath0 || op == Op_FdST0ST1 ) { operands[0].cls = Opr_Reg; - operands[0].reg = Reg_ST; + operands[0].reg = Reg_ST1; operands[1].cls = Opr_Reg; - operands[1].reg = Reg_ST1; + operands[1].reg = Reg_ST; nOperands = 2; }
--- a/gen/asm-x86-64.h Mon May 04 20:26:45 2009 +0200 +++ b/gen/asm-x86-64.h Tue May 05 11:51:00 2009 -0600 @@ -1943,9 +1943,9 @@ else if ( op == Op_FMath0 || op == Op_FdST0ST1 ) { operands[0].cls = Opr_Reg; - operands[0].reg = Reg_ST; + operands[0].reg = Reg_ST1; operands[1].cls = Opr_Reg; - operands[1].reg = Reg_ST1; + operands[1].reg = Reg_ST; nOperands = 2; }