CMI was translated wrongly; corrected

This commit is contained in:
ceriel
1988-03-14 13:56:33 +00:00
parent 23be652f11
commit bf3cfae610
4 changed files with 45 additions and 17 deletions

View File

@@ -1854,8 +1854,15 @@ pat tge ior $2==4 call txxior("bgt")
pat tgt ior $2==4 call txxior("bge")
pat cmi $1==4
with src4 REG
gen subd %1, %2 yields %2
with src4 src4
uses REG={const4, 0}
gen cmpd %2, %1
blt {label, "1f"}
shid %a
br {label, "2f"}
1:
addd {const4, 0-1}, %a
2: yields %a
#ifndef NOFLOAT
pat cmf $1==4