From: ceriel Date: Thu, 3 Sep 1998 12:51:38 +0000 (+0000) Subject: Fixed bug with 4-byte sets on 2-byte machines X-Git-Tag: release-5-5~14 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=384c4bc698e7f284698f8a53dcd87eaee251c2ce;p=ack.git Fixed bug with 4-byte sets on 2-byte machines --- diff --git a/mach/m68020/ncg/table b/mach/m68020/ncg/table index 58670b6c2..a53b6bcec 100644 --- a/mach/m68020/ncg/table +++ b/mach/m68020/ncg/table @@ -4989,15 +4989,16 @@ pat set $1==2 with conreg2 uses DD_REG = {zero_const, 0} gen bset %1, %a yields %a -#endif +#else pat set $1==4 with conreg2 uses DD_REG4 = {zero_const4, 0} gen bset %1, %a yields %a +#endif #if WORD_SIZE==2 -pat set $1>4 +pat set $1>2 with STACK kills ALL gen move {const, $1}, d0 diff --git a/mach/m68k2/ncg/table b/mach/m68k2/ncg/table index 58670b6c2..a53b6bcec 100644 --- a/mach/m68k2/ncg/table +++ b/mach/m68k2/ncg/table @@ -4989,15 +4989,16 @@ pat set $1==2 with conreg2 uses DD_REG = {zero_const, 0} gen bset %1, %a yields %a -#endif +#else pat set $1==4 with conreg2 uses DD_REG4 = {zero_const4, 0} gen bset %1, %a yields %a +#endif #if WORD_SIZE==2 -pat set $1>4 +pat set $1>2 with STACK kills ALL gen move {const, $1}, d0 diff --git a/mach/m68k4/ncg/table b/mach/m68k4/ncg/table index 58670b6c2..a53b6bcec 100644 --- a/mach/m68k4/ncg/table +++ b/mach/m68k4/ncg/table @@ -4989,15 +4989,16 @@ pat set $1==2 with conreg2 uses DD_REG = {zero_const, 0} gen bset %1, %a yields %a -#endif +#else pat set $1==4 with conreg2 uses DD_REG4 = {zero_const4, 0} gen bset %1, %a yields %a +#endif #if WORD_SIZE==2 -pat set $1>4 +pat set $1>2 with STACK kills ALL gen move {const, $1}, d0 diff --git a/mach/moon3/ncg/table b/mach/moon3/ncg/table index 58670b6c2..a53b6bcec 100644 --- a/mach/moon3/ncg/table +++ b/mach/moon3/ncg/table @@ -4989,15 +4989,16 @@ pat set $1==2 with conreg2 uses DD_REG = {zero_const, 0} gen bset %1, %a yields %a -#endif +#else pat set $1==4 with conreg2 uses DD_REG4 = {zero_const4, 0} gen bset %1, %a yields %a +#endif #if WORD_SIZE==2 -pat set $1>4 +pat set $1>2 with STACK kills ALL gen move {const, $1}, d0