From: ceriel Date: Tue, 12 Sep 1995 12:09:08 +0000 (+0000) Subject: Fixed some bugs with the setxx instructions X-Git-Tag: release-5-5~81 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=71da2cdda92d6d7e3f3f45cc262fbbf38ff9cb91;p=ack.git Fixed some bugs with the setxx instructions --- diff --git a/mach/i386/ncg/table b/mach/i386/ncg/table index d1ea809ad..b7efb3c12 100644 --- a/mach/i386/ncg/table +++ b/mach/i386/ncg/table @@ -233,9 +233,9 @@ jne label cost(1,4). jmp label cost(1,4). proccall "call" label+rm cost(1,8). jxx "syntax error" label cost(1,4). -setxx "syntax error" REG:rw cost(2,4). -setle REG:rw cost(2,4). -setgt REG:rw cost(2,4). +setxx "syntax error" REG1:rw cost(2,4). +setle REG1:rw cost(2,4). +setg REG1:rw cost(2,4). lea anyreg:rw, halfindir:ro. lea LOCAL:rw, halfindir:ro. /* only for register variables, UNSAFE!!! */ leave cost(1,4). @@ -2451,9 +2451,9 @@ uses REG = {ANYCON,0} proc txx with rm -uses REG = {ANYCON,0} +uses GENREG = {ANYCON,0} gen test %1 - setxx* %a yields %a + setxx* %a.1 yields %a pat tlt call txx("sets") pat teq call txx("sete") @@ -2465,20 +2465,20 @@ pat tge call txx("setns") */ pat tle with rm -uses REG = {ANYCON,0} +uses GENREG = {ANYCON,0} gen killcc. test %1 - setle %a + setle %a.1 yields %a pat tgt with rm -uses REG = {ANYCON,0} +uses GENREG = {ANYCON,0} gen killcc. test %1 - setgt %a + setg %a.1 yields %a proc txxior