xa51, work in progress
[fw/sdcc] / src / pic / peeph.def
index 6cbd71ad4e4d70378bdd92a3d4eed777185995f7..d6a80a0e98c17d71c130ef1b786c23edbe24353e 100644 (file)
@@ -94,6 +94,30 @@ replace restart {
 %2:    %4
 }
 
+replace restart {
+        btfss  %1
+        goto   %4
+%2:    %3
+%4:    %5
+} by {
+       ;peep 1b - test/jump to test/skip
+       btfsc   %1
+%2:    %3
+%4:    %5
+}
+
+replace restart {
+        btfsc  %1
+        goto   %4
+%2:    %3
+%4:    %5
+} by {
+       ;peep 1c - test/jump to test/skip
+       btfss   %1
+%2:    %3
+%4:    %5
+}
+
 
 //bogus test for pcode
 //replace restart {