simplified a little; does not seem to make much difference
This commit is contained in:
parent
d363386a38
commit
bfaff9d0ee
1 changed files with 2 additions and 92 deletions
|
@ -806,24 +806,14 @@ with EXACT REG rmorconst
|
||||||
gen add %1,%2 yields %1
|
gen add %1,%2 yields %1
|
||||||
with rmorconst REG
|
with rmorconst REG
|
||||||
gen add %2,%1 yields %2
|
gen add %2,%1 yields %2
|
||||||
with ACC const
|
|
||||||
gen add %1,%2 yields %1
|
|
||||||
with const ACC
|
|
||||||
gen add %2,%1 yields %2
|
|
||||||
|
|
||||||
pat adi $1==4
|
pat adi $1==4
|
||||||
with EXACT REG REG rmorconst rmorconst
|
with EXACT REG REG rmorconst rmorconst
|
||||||
gen add %1,%3
|
gen add %1,%3
|
||||||
adc %2,%4 yields %2 %1
|
adc %2,%4 yields %2 %1
|
||||||
with exact ACC REG const rmorconst
|
|
||||||
gen add %1,%3
|
|
||||||
adc %2,%4 yields %2 %1
|
|
||||||
with rmorconst rmorconst REG REG
|
with rmorconst rmorconst REG REG
|
||||||
gen add %3,%1
|
gen add %3,%1
|
||||||
adc %4,%2 yields %4 %3
|
adc %4,%2 yields %4 %3
|
||||||
with exact const rmorconst ACC REG
|
|
||||||
gen add %3,%1
|
|
||||||
adc %4,%2 yields %4 %3
|
|
||||||
|
|
||||||
pat adi !defined($1)
|
pat adi !defined($1)
|
||||||
with CXREG ACC
|
with CXREG ACC
|
||||||
|
@ -834,22 +824,14 @@ pat sbi $1==2
|
||||||
|
|
||||||
with rmorconst REG
|
with rmorconst REG
|
||||||
gen sub %2,%1 yields %2
|
gen sub %2,%1 yields %2
|
||||||
with const ACC
|
|
||||||
gen sub %2,%1 yields %2
|
|
||||||
with EXACT REG rmorconst
|
with EXACT REG rmorconst
|
||||||
gen sub %1,%2
|
gen sub %1,%2
|
||||||
neg %1 yields %1
|
neg %1 yields %1
|
||||||
with EXACT ACC const
|
|
||||||
gen sub %1,%2
|
|
||||||
neg %1 yields %1
|
|
||||||
|
|
||||||
pat sbi $1==4
|
pat sbi $1==4
|
||||||
with rmorconst rmorconst REG REG
|
with rmorconst rmorconst REG REG
|
||||||
gen sub %3,%1
|
gen sub %3,%1
|
||||||
sbb %4,%2 yields %4 %3
|
sbb %4,%2 yields %4 %3
|
||||||
with exact const rmorconst-ACC ACC REG
|
|
||||||
gen sub %3,%1
|
|
||||||
sbb %4,%2 yields %4 %3
|
|
||||||
|
|
||||||
pat sbi !defined($1)
|
pat sbi !defined($1)
|
||||||
with CXREG ACC
|
with CXREG ACC
|
||||||
|
@ -1862,24 +1844,14 @@ with EXACT REG rmorconst
|
||||||
gen and %1,%2 yields %1
|
gen and %1,%2 yields %1
|
||||||
with rmorconst REG
|
with rmorconst REG
|
||||||
gen and %2,%1 yields %2
|
gen and %2,%1 yields %2
|
||||||
with ACC const
|
|
||||||
gen and %1,%2 yields %1
|
|
||||||
with const ACC
|
|
||||||
gen and %2,%1 yields %2
|
|
||||||
|
|
||||||
pat and $1==4
|
pat and $1==4
|
||||||
with EXACT REG REG rmorconst rmorconst
|
with EXACT REG REG rmorconst rmorconst
|
||||||
gen and %1,%3
|
gen and %1,%3
|
||||||
and %2,%4 yields %2 %1
|
and %2,%4 yields %2 %1
|
||||||
with exact ACC REG const rmorconst
|
|
||||||
gen and %1,%3
|
|
||||||
and %2,%4 yields %2 %1
|
|
||||||
with rmorconst rmorconst REG REG
|
with rmorconst rmorconst REG REG
|
||||||
gen and %3,%1
|
gen and %3,%1
|
||||||
and %4,%2 yields %4 %3
|
and %4,%2 yields %4 %3
|
||||||
with exact const rmorconst-ACC ACC REG
|
|
||||||
gen and %3,%1
|
|
||||||
and %4,%2 yields %4 %3
|
|
||||||
|
|
||||||
pat and defined($1)
|
pat and defined($1)
|
||||||
kills ALL
|
kills ALL
|
||||||
|
@ -1892,28 +1864,18 @@ kills ALL
|
||||||
gen joehoe {label, ".and"}
|
gen joehoe {label, ".and"}
|
||||||
|
|
||||||
pat ior $1==2
|
pat ior $1==2
|
||||||
with REG rmorconst
|
with EXACT REG rmorconst
|
||||||
gen or %1,%2 yields %1
|
gen or %1,%2 yields %1
|
||||||
with EXACT rmorconst REG
|
with rmorconst REG
|
||||||
gen or %2,%1 yields %2
|
|
||||||
with ACC const
|
|
||||||
gen or %1,%2 yields %1
|
|
||||||
with const ACC
|
|
||||||
gen or %2,%1 yields %2
|
gen or %2,%1 yields %2
|
||||||
|
|
||||||
pat ior $1==4
|
pat ior $1==4
|
||||||
with EXACT REG REG rmorconst rmorconst
|
with EXACT REG REG rmorconst rmorconst
|
||||||
gen or %1,%3
|
gen or %1,%3
|
||||||
or %2,%4 yields %2 %1
|
or %2,%4 yields %2 %1
|
||||||
with exact ACC REG const rmorconst
|
|
||||||
gen or %1,%3
|
|
||||||
or %2,%4 yields %2 %1
|
|
||||||
with rmorconst rmorconst REG REG
|
with rmorconst rmorconst REG REG
|
||||||
gen or %3,%1
|
gen or %3,%1
|
||||||
or %4,%2 yields %4 %3
|
or %4,%2 yields %4 %3
|
||||||
with exact const rmorconst-ACC ACC REG
|
|
||||||
gen or %3,%1
|
|
||||||
or %4,%2 yields %4 %3
|
|
||||||
|
|
||||||
pat ior defined($1)
|
pat ior defined($1)
|
||||||
kills ALL
|
kills ALL
|
||||||
|
@ -1930,24 +1892,14 @@ with EXACT REG rmorconst
|
||||||
gen xor %1,%2 yields %1
|
gen xor %1,%2 yields %1
|
||||||
with rmorconst REG
|
with rmorconst REG
|
||||||
gen xor %2,%1 yields %2
|
gen xor %2,%1 yields %2
|
||||||
with ACC const
|
|
||||||
gen xor %1,%2 yields %1
|
|
||||||
with const ACC
|
|
||||||
gen xor %2,%1 yields %2
|
|
||||||
|
|
||||||
pat xor $1==4
|
pat xor $1==4
|
||||||
with EXACT REG REG rmorconst rmorconst
|
with EXACT REG REG rmorconst rmorconst
|
||||||
gen xor %1,%3
|
gen xor %1,%3
|
||||||
xor %2,%4 yields %2 %1
|
xor %2,%4 yields %2 %1
|
||||||
with exact ACC REG const rmorconst
|
|
||||||
gen xor %1,%3
|
|
||||||
xor %2,%4 yields %2 %1
|
|
||||||
with rmorconst rmorconst REG REG
|
with rmorconst rmorconst REG REG
|
||||||
gen xor %3,%1
|
gen xor %3,%1
|
||||||
xor %4,%2 yields %4 %3
|
xor %4,%2 yields %4 %3
|
||||||
with exact const rmorconst-ACC ACC REG
|
|
||||||
gen xor %3,%1
|
|
||||||
xor %4,%2 yields %4 %3
|
|
||||||
|
|
||||||
pat xor defined($1)
|
pat xor defined($1)
|
||||||
kills ALL
|
kills ALL
|
||||||
|
@ -2205,26 +2157,6 @@ with rmorconst register
|
||||||
1:
|
1:
|
||||||
dec %a
|
dec %a
|
||||||
2: yields %a
|
2: yields %a
|
||||||
with ACC const
|
|
||||||
uses REG={ANYCON,0}
|
|
||||||
gen cmp %1,%2
|
|
||||||
je {label,2f}
|
|
||||||
jl {label,1f}
|
|
||||||
inc %a
|
|
||||||
jmp {label,2f}
|
|
||||||
1:
|
|
||||||
dec %a
|
|
||||||
2: yields %a
|
|
||||||
with const ACC
|
|
||||||
uses REG={ANYCON,0}
|
|
||||||
gen cmp %1,%2
|
|
||||||
je {label,2f}
|
|
||||||
jl {label,1f}
|
|
||||||
inc %a
|
|
||||||
jmp {label,2f}
|
|
||||||
1:
|
|
||||||
dec %a
|
|
||||||
2: yields %a
|
|
||||||
|
|
||||||
pat cmi $1==4
|
pat cmi $1==4
|
||||||
kills ALL
|
kills ALL
|
||||||
|
@ -2241,10 +2173,6 @@ with EXACT REG rmorconst
|
||||||
gen sub %1,%2 yields %1
|
gen sub %1,%2 yields %1
|
||||||
with rmorconst REG
|
with rmorconst REG
|
||||||
gen sub %2,%1 yields %2
|
gen sub %2,%1 yields %2
|
||||||
with ACC const
|
|
||||||
gen sub %1,%2 yields %1
|
|
||||||
with const ACC
|
|
||||||
gen sub %2,%1 yields %2
|
|
||||||
|
|
||||||
pat cms $1==4
|
pat cms $1==4
|
||||||
with rmorconst rmorconst REG REG
|
with rmorconst rmorconst REG REG
|
||||||
|
@ -2283,24 +2211,6 @@ uses REG = {ANYCON,0}
|
||||||
1: dec %a
|
1: dec %a
|
||||||
2: yields %a
|
2: yields %a
|
||||||
with rmorconst register
|
with rmorconst register
|
||||||
uses REG = {ANYCON,0}
|
|
||||||
gen cmp %1,%2
|
|
||||||
je {label,2f}
|
|
||||||
jb {label,1f}
|
|
||||||
inc %a
|
|
||||||
jmp {label,2f}
|
|
||||||
1: dec %a
|
|
||||||
2: yields %a
|
|
||||||
with ACC const
|
|
||||||
uses REG = {ANYCON,0}
|
|
||||||
gen cmp %1,%2
|
|
||||||
je {label,2f}
|
|
||||||
jb {label,1f}
|
|
||||||
inc %a
|
|
||||||
jmp {label,2f}
|
|
||||||
1: dec %a
|
|
||||||
2: yields %a
|
|
||||||
with const ACC
|
|
||||||
uses REG = {ANYCON,0}
|
uses REG = {ANYCON,0}
|
||||||
gen cmp %1,%2
|
gen cmp %1,%2
|
||||||
je {label,2f}
|
je {label,2f}
|
||||||
|
|
Loading…
Reference in a new issue