diff --git a/util/opt/patterns b/util/opt/patterns index 03db7f93c..fb4d4f620 100644 --- a/util/opt/patterns +++ b/util/opt/patterns @@ -1,10 +1,10 @@ "$Header$" loc adi loc sbi $2==w && $4==w: loc $1-$3 adi w inc dec: -inc loc adi $3==w: loc $1+1 adi w -inc loc sbi $3==w: loc $1-1 sbi w -dec loc adi $3==w: loc $1-1 adi w -dec loc sbi $3==w: loc $1+1 sbi w +inc loc adi $3==w: loc $2+1 adi w +inc loc sbi $3==w: loc $2-1 sbi w +dec loc adi $3==w: loc $2-1 adi w +dec loc sbi $3==w: loc $2+1 sbi w ldc adi ldc sbi $2==2*w && $4==2*w: ldc $1-$3 adi 2*w loc adi loc adi $2==w && $4==w: loc $1+$3 adi w ldc adi ldc adi $2==2*w && $4==2*w: ldc $1+$3 adi 2*w