From dec3415da5bf86f602e21620cbf89b8f77d1b5cf Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Mon, 5 Sep 2005 00:23:18 +0000 Subject: [PATCH] updating PowerPC compiler to proper register usage requirements as stipulated by ABI --- library/compiler/ppc/fixnum.factor | 19 ++++++-------- library/compiler/ppc/generator.factor | 37 +++++++++++++-------------- library/compiler/ppc/slots.factor | 7 ++--- 3 files changed, 30 insertions(+), 33 deletions(-) diff --git a/library/compiler/ppc/fixnum.factor b/library/compiler/ppc/fixnum.factor index b9d3a8c85c..b73fd719c6 100644 --- a/library/compiler/ppc/fixnum.factor +++ b/library/compiler/ppc/fixnum.factor @@ -38,7 +38,8 @@ M: %fixnum- generate-node ( vop -- ) \ ADD \ SUBF simple-overflow ; M: %fixnum* generate-node ( vop -- ) - dup >3-vop< dup dup tag-bits SRAWI + #! Note that this assumes the output will be in r3. + >3-vop< dup dup tag-bits SRAWI 0 MTXER [ >r >r drop 4 r> r> MULLWO. 3 ] 2keep