From f8fa3ece4241a1892505cd5270bdfadca2a82604 Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 20 Nov 2016 19:35:34 +0100 Subject: [PATCH] inn on ncg now passes the CPU tests. --- mach/powerpc/ncg/table | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mach/powerpc/ncg/table b/mach/powerpc/ncg/table index 6f10c7d4c..77fdaedf1 100644 --- a/mach/powerpc/ncg/table +++ b/mach/powerpc/ncg/table @@ -328,6 +328,7 @@ INSTRUCTIONS lhax GPR:wo, GPR:ro, GPR:ro cost(4, 3). lhz GPR:wo, GPRINDIRECT:ro cost(4, 3). lhzx GPR:wo, GPR:ro, GPR:ro cost(4, 3). + li32 GPR:wo, CONST:ro cost(8, 2). li32 GPR:wo, LABEL:ro cost(8, 2). lwzu GPR:wo, GPRINDIRECT:ro cost(4, 3). lwzx GPR:wo, GPR:ro, GPR:ro cost(4, 3). @@ -1637,14 +1638,13 @@ PATTERNS gen bl {LABEL, ".set"} - pat inn defined($1) /* Test for set bit */ - leaving - set INT32 - and INT32 - - pat inn !defined($1) /* Test for set bit (variable) */ - with GPR3 STACK + pat inn /* Test for set bit */ + with STACK + kills ALL + uses REG gen + li32 %a, {CONST, $1} + stwu %a, {GPRINDIRECT, SP, 0-4} bl {LABEL, ".inn"}