5 // ; Peephole 1 removed pop %1 push %1 (not push pop)
13 // ; Peephole 2 removed pop %1 push %1 (not push pop)
18 // added by Jean Louis VERN for
24 ; Peephole 2.a removed redundant xch xch
32 ; Peephole 3.a changed mov to clr
42 ; Peephole 3.b changed mov to clr
48 // saving 1 byte, loosing 1 cycle but maybe allowing peephole 3.b to start
53 ; Peephole 3.c changed mov to clr
69 ; Peephole 3.d removed redundant clr
83 ; Peephole 3.e removed redundant clr
99 ; Peephole 3.f removed redundant clr
117 ; Peephole 3.g removed redundant clr
129 ; Peephole 3.h changed mov %3,#0x00 to %3,a
144 ; Peephole 3.i changed mov %4,#0x00 to %4,a
161 ; Peephole 3.j changed mov %5,#0x00 to %5,a
180 ; Peephole 3.k changed mov %6,#0x00 to %6,a
190 ; Peephole 100 removed redundant mov
203 ; Peephole 101 removed redundant mov
221 ; Peephole 102 removed redundant mov
243 ; Peephole 103 removed redundant mov
260 ; Peephole 104 optimized increment (acc not set to r%1, flags undefined)
269 ; Peephole 105 removed redundant mov
278 ; Peephole 106 removed redundant mov
287 ; Peephole 107 removed redundant ljmp
296 ; Peephole 108 removed ljmp by inverse jump logic
306 ; Peephole 109 removed ljmp by inverse jump logic
316 ; Peephole 110 removed ljmp by inverse jump logic
326 ; Peephole 111 removed ljmp by inverse jump logic
336 ; Peephole 112.a removed ljmp by inverse jump logic
345 ; Peephole 112.b changed ljmp to sjmp
358 ; Peephole 113 optimized misc sequence
363 } if labelRefCount %3 1
374 ; Peephole 114 optimized misc sequence
380 } if labelRefCount %3 2
389 ; Peephole 115.a jump optimization
393 } if labelRefCount %3 1
401 ; Peephole 115.b jump optimization
415 ; Peephole 116 jump optimization
420 } if labelRefCount %3 2
431 ; Peephole 117 jump optimization
437 } if labelRefCount %3 3
449 ; Peephole 118 jump optimization
456 } if labelRefCount %3 4
465 ; Peephole 119 jump optimization
468 } if labelRefCount %3 1
478 ; Peephole 120 jump optimization
482 } if labelRefCount %3 2
493 ; Peephole 121 jump optimization
498 } if labelRefCount %3 3
510 ; Peephole 122 jump optimization
516 } if labelRefCount %3 4
525 ; Peephole 123 jump optimization
529 } if labelRefCount %3 1
539 ; Peephole 124 jump optimization
544 } if labelRefCount %3 2
555 ; Peephole 125 jump optimization
561 } if labelRefCount %3 3
573 ; Peephole 126 jump optimization
580 } if labelRefCount %3 4
593 ; Peephole 127 removed misc sequence
595 } if labelRefCount %3 0
602 ; Peephole 128 jump optimization
611 ; Peephole 129 jump optimization
618 ; Peephole 130 changed target address mode r%1 to ar%1
628 ; Peephole 131 optimized decrement (not caring for c)
633 // ideally the optimizations of rules 132.x should be done in genCmpXX
640 ; Peephole 132.a optimized genCmpGt by inverse logic (acc differs)
652 ; Peephole 132.b optimized genCmpGt by inverse logic (acc differs)
664 ; Peephole 132.c optimized genCmpGt by inverse logic (acc differs)
676 ; Peephole 132.d optimized genCmpGt by inverse logic
680 } if operandsNotRelated('0x00' %2)
688 ; Peephole 132.e optimized genCmpLt by inverse logic (carry differs)
692 } if operandsNotRelated('0x00' %2)
700 ; Peephole 132.f optimized genCmpLt by inverse logic (carry differs)
704 } if operandsNotRelated('0x00' %2)
714 ; Peephole 133 removed redundant moves
727 ; Peephole 134 removed redundant moves
738 ; Peephole 135 removed redundant mov
749 ; Peephole 136 removed redundant moves
755 // WTF? Doesn't look sensible to me...
765 // ; Peephole 137 optimized misc jump sequence
769 //} if labelRefCount %4 1
780 // ; Peephole 138 optimized misc jump sequence
785 //} if labelRefCount %4 1
792 ; Peephole 139 removed redundant mov
802 ; Peephole 140 removed redundant mov
811 ; Peephole 141 removed redundant mov
821 ; Peephole 142 removed redundant moves
830 ; Peephole 143 converted rlc to rl
838 ; Peephole 144 converted rrc to rc
846 ; Peephole 145 changed to add without carry
855 ; Peephole 146 changed to add without carry
863 ; Peephole 147 changed target address mode r%1 to ar%1
870 ; Peephole 148 changed target address mode r%1 to ar%1
877 ; Peephole 149 changed target address mode r%1 to ar%1
887 ; Peephole 150 removed misc moves via dpl before return
900 ; Peephole 151 removed misc moves via dph, dpl before return
912 ; Peephole 152 removed misc moves via dph, dpl before return
927 ; Peephole 153 removed misc moves via dph, dpl, b before return
940 ; Peephole 154 removed misc moves via dph, dpl, b before return
954 ; Peephole 155 removed misc moves via dph, dpl, b before return
971 ; Peephole 156 removed misc moves via dph, dpl, b, a before return
986 ; Peephole 157 removed misc moves via dph, dpl, b, a before return
1000 ; Peephole 158 removed misc moves via dph, dpl, b, a before return
1009 ; Peephole 159 avoided xrl during execution
1018 ; Peephole 160 removed sjmp by inverse jump logic
1028 ; Peephole 161 removed sjmp by inverse jump logic
1038 ; Peephole 162 removed sjmp by inverse jump logic
1048 ; Peephole 163 removed sjmp by inverse jump logic
1058 ; Peephole 164 removed sjmp by inverse jump logic
1068 ; Peephole 165 removed sjmp by inverse jump logic
1078 ; Peephole 166 removed redundant mov
1081 } if notVolatile %1 %2
1088 ; Peephole 167 removed redundant bit moves (c not set to %1)
1097 ; Peephole 168 jump optimization
1107 ; Peephole 169 jump optimization
1119 ; Peephole 170 jump optimization
1122 } if labelRefCount %3 1
1132 ; Peephole 171 jump optimization
1136 } if labelRefCount %3 2
1147 ; Peephole 172 jump optimization
1152 } if labelRefCount %3 3
1164 ; Peephole 173 jump optimization
1170 } if labelRefCount %3 4
1179 ; Peephole 174 optimized decrement (acc not set to %2, flags undefined)
1190 ; Peephole 175 optimized increment (acc not set to %2, flags undefined)
1200 ; Peephole 176 optimized increment, removed redundant mov
1205 // this one will screw assignes to volatile/sfr's
1210 ; Peephole 177.a removed redundant mov
1212 } if notVolatile %1 %2
1214 // applies to f.e. scott-add.asm (--model-large)
1219 ; Peephole 177.b removed redundant mov
1223 // applies to f.e. bug-408972.c
1228 ; Peephole 177.c removed redundant move
1230 } if notVolatile %1 %2
1232 // applies to f.e. bug-408972.c
1233 // not before peephole 177.c
1239 ; Peephole 177.d removed redundant move
1242 } if notVolatile(%1 %2),operandsNotRelated(%1 %3)
1244 // applies to f.e. bug-607243.c
1245 // also check notVolatile %3, as it will return FALSE if it's @r%1
1250 ; peephole 177.e removed redundant move
1252 } if notVolatile %2 %3
1258 ; peephole 177.f removed redundant move
1266 ; peephole 177.g optimized mov sequence
1275 ; peephole 177.h optimized mov sequence
1285 ; Peephole 178 removed redundant mov
1290 // rules 179-182 provided by : Frieder <fe@lake.iup.uni-heidelberg.de>
1291 // saving 2 byte, 1 cycle
1296 ; Peephole 179 changed mov to clr
1302 // volatile xdata char t; t=0x01; t=0x03;
1309 ; Peephole 180.a removed redundant mov to dptr
1315 // volatile xdata char t; t=0x01; t=0x03; t=0x01;
1324 ; Peephole 180.b removed redundant mov to dptr
1332 // saving 1 byte, 0 cycles
1336 ; Peephole 181 changed mov to clr
1340 // saving 3 bytes, 2 cycles
1341 // provided by Bernhard Held <bernhard.held@de.westinghouse.com>
1346 ; Peephole 182.a used 16 bit load of DPTR
1350 // saving 3 byte, 2 cycles, return(NULL) profits here
1355 ; Peephole 182.b used 16 bit load of dptr
1359 // saving 3 byte, 2 cycles. Probably obsoleted by 182.b
1364 ; Peephole 182.c used 16 bit load of dptr
1365 mov dptr,#(((%2)<<8) + %1)
1368 // applies to return 0.0; in f.e. sincosf.c
1374 ; Peephole 182.d used 16 bit load of dptr
1375 mov dptr,#(%1&0x00ff)
1383 ; Peephole 183 avoided anl during execution
1392 ; Peephole 184 removed redundant mov
1398 // acc being incremented might cause problems
1402 ; Peephole 185 changed order of increment (acc incremented also!)
1427 ; Peephole 186.a optimized movc sequence
1460 ; Peephole 186.b optimized movc sequence
1485 ; Peephole 186.c optimized movc sequence
1494 // char indexed access to: char code table[] = {4,3,2,1};
1504 ; Peephole 186.d optimized movc sequence
1509 // char indexed access to: int code table[] = {4,3,2,1};
1524 ; Peephole 186.e optimized movc sequence (b, dptr differ)
1542 ; Peephole 187 used a instead of ar%1 for anl
1554 ; Peephole 188 removed redundant mov
1566 ; Peephole 189 removed redundant mov and anl
1571 // rules 190 & 191 need to be in order
1577 ; Peephole 190 removed redundant mov
1589 ; Peephole 191 removed redundant mov
1600 ; Peephole 192 used a instead of ar%1 as source
1617 ; Peephole 193.a optimized misc jump sequence
1627 } if labelRefCount %3 4
1641 ; Peephole 193.b optimized misc jump sequence
1651 } if labelRefCount %3 4
1665 ; Peephole 193.c optimized misc jump sequence
1675 } if labelRefCount %3 4
1686 ; Peephole 194 optimized misc jump sequence
1693 } if labelRefCount %3 4
1705 ; Peephole 195.a optimized misc jump sequence
1713 } if labelRefCount %3 3
1725 ; Peephole 195.b optimized misc jump sequence
1733 } if labelRefCount %3 3
1745 ; Peephole 195.c optimized misc jump sequence
1753 } if labelRefCount %3 3
1763 ; Peephole 196 optimized misc jump sequence
1769 } if labelRefCount %3 3
1779 ; Peephole 197.a optimized misc jump sequence
1785 } if labelRefCount %3 2
1795 ; Peephole 197.b optimized misc jump sequence
1801 } if labelRefCount %3 2
1811 ; Peephole 197.c optimized misc jump sequence
1817 } if labelRefCount %3 2
1826 ; Peephole 198 optimized misc jump sequence
1831 } if labelRefCount %3 2
1839 ; Peephole 199 optimized misc jump sequence
1843 } if labelRefCount %3 1
1849 ; Peephole 200 removed redundant sjmp
1858 ; Peephole 201 removed redundant sjmp
1868 ; Peephole 202 removed redundant push pop
1877 ; Peephole 203 removed mov r%1,_spx
1886 ; Peephole 204 removed redundant mov
1898 ; Peephole 205 optimized misc jump sequence
1902 } if labelRefCount %2 1
1907 ; Peephole 206 removed redundant mov %1,%1
1915 ; Peephole 207 removed zero add (acc not set to %1, flags undefined)
1924 ; Peephole 208 removed redundant push pop
1934 ; Peephole 209 optimized increment (acc not set to %1, flags undefined)
1940 mov dptr,#((((%1 >> 8)) <<8) + %1)
1942 ; Peephole 210 simplified expression
1950 ; Peephole 211 removed redundant push %1 pop %1
1958 ; Peephole 212 reduced add sequence to inc
1964 mov %1,#(( %2 >> 8 ) ^ 0x80)
1966 ; Peephole 213.a inserted fix
1972 mov %1,#(( %2 + %3 >> 8 ) ^ 0x80)
1974 ; Peephole 213.b inserted fix
1975 mov %1,#((%2 + %3) >> 8)
1985 ; Peephole 214 reduced some extra moves
1988 } if operandsNotSame
1995 ; Peephole 215 removed some moves
1998 } if operandsNotSame
2008 ; Peephole 216 simplified clear (2bytes)
2027 ; Peephole 217 simplified clear (3bytes)
2051 ; Peephole 218 simplified clear (4bytes)
2070 ; Peephole 219 removed redundant clear
2086 ; Peephole 219.a removed redundant clear
2099 ; Peephole 220.a removed bogus DPS set
2107 ; Peephole 220.b removed bogus DPS set
2112 mov %1 + %2,(%2 + %1)
2114 ; Peephole 221.a remove redundant move
2118 mov (%1 + %2 + %3),((%2 + %1) + %3)
2120 ; Peephole 221.b remove redundant move
2127 ; Peephole 222 removed dec/inc pair
2136 ; Peephole 223 removed redundant dph/dpl moves
2139 } if notVolatile %1 %2
2147 ; Peephole 224 removed redundant dph/dpl moves
2160 ; Peephole 225 removed redundant move to acc
2176 ; Peephole 226 removed unnecessary clr
2198 ; Peephole 227 replaced inefficient 32 bit clear
2226 ; Peephole 228 replaced inefficient 32 constant
2248 ; Peephole 229 replaced inefficient 16 bit clear
2266 ; Peephole 230 replaced inefficient 16 bit constant
2276 // this last peephole often removes the last mov from 227-230
2281 ; Peephole 231 removed redundant mov to dptr
2288 ; Peephole 232 using movc to read xdata (--xram-movc)
2296 ; Peephole 233 using _gptrgetc instead of _gptrget (--xram-movc)
2306 ; Peephole 234 loading dpl directly from a(ccumulator), r%1 not set
2319 ; Peephole 235 loading dph directly from a(ccumulator), r%1 not set
2326 // 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
2331 ; Peephole 236.a used r%1 instead of ar%1
2338 ; Peephole 236.b used r%1 instead of ar%1
2345 ; Peephole 236.c used r%1 instead of ar%1
2352 ; Peephole 236.d used r%1 instead of ar%1
2359 ; Peephole 236.e used r%1 instead of ar%1
2366 ; Peephole 236.f used r%1 instead of ar%1
2373 ; Peephole 236.g used r%1 instead of ar%1
2380 ; Peephole 236.h used r%1 instead of ar%1
2387 ; Peephole 236.i used r%1 instead of ar%1
2394 ; Peephole 236.j used r%1 instead of ar%1
2401 ; Peephole 236.k used r%1 instead of ar%1
2408 ; Peephole 236.l used r%1 instead of ar%1
2415 ; Peephole 236.m used r%1 instead of ar%1
2422 ; Peephole 236.n used r%1 instead of ar%1
2433 ; Peephole 237.a removed sjmp to ret
2450 ; Peephole 237.b removed sjmp to ret
2460 // applies to f.e. device/lib/log10f.c
2486 ; Peephole 238.a removed 4 redundant moves
2487 } if operandsNotSame8 %1 %2 %3 %4 %5 %6 %7 %8
2489 // applies to device/lib/log10f.c
2504 ; Peephole 238.b removed 3 redundant moves
2505 } if operandsNotSame7 %1 %2 %3 %4 %5 %6 %7
2507 // applies to f.e. device/lib/time.c
2523 ; Peephole 238.c removed 2 redundant moves
2524 } if operandsNotSame4 %1 %2 %3 %4
2526 // applies to f.e. support/regression/tests/bug-524209.c
2539 ; Peephole 238.d removed 3 redundant moves
2540 } if operandsNotSame6 %1 %2 %3 %4 %5 %6
2542 // applies to f.e. ser_ir.asm
2546 ; Peephole 239 used a instead of acc
2554 ; Peephole 240 use clr instead of addc a,#0
2559 // peepholes 241.a to 241.c and 241.d to 241.f need to be in order
2571 ; Peephole 241.a optimized compare
2582 // applies to f.e. time.c
2592 ; Peephole 241.b optimized compare
2601 // applies to f.e. malloc.c
2610 ; Peephole 241.c optimized compare
2618 // applies to f.e. j = (k!=0x1000);
2619 // with volatile idata long k;
2634 ; Peephole 241.d optimized compare
2648 // applies to f.e. j = (k!=0x1000);
2649 // with volatile idata int k;
2660 ; Peephole 241.e optimized compare
2670 // applies to f.e. vprintf.asm (--stack-auto)
2679 ; Peephole 241.f optimized compare
2687 // applies to f.e. scott-bool1.c
2694 ; Peephole 242.a avoided branch jnz to jz
2699 } if labelRefCount %1 1
2701 // applies to f.e. scott-bool1.c
2709 ; Peephole 242.b avoided branch jnz to jz
2715 } if labelRefCount %1 1
2717 // applies to f.e. logic.c
2727 ; Peephole 242.c avoided branch jnz to jz
2735 } if labelRefCount %1 1
2737 // applies to f.e. vprintf.c
2738 // this is a rare case, usually the "tail increment" is noticed earlier
2745 ; Peephole 243 avoided branch to sjmp
2752 // applies to f.e. simplefloat.c (saving 1 cycle)
2757 ; Peephole 244.a moving first to a instead of r%1
2762 // applies to f.e. _itoa.c (saving 1 cycle)
2767 ; Peephole 244.b moving first to a instead of r%1
2773 // applies to f.e. bug-460010.c (saving 1 cycle)
2778 ; Peephole 244.c loading dpl from a instead of r%1
2787 ; Peephole 244.d loading dph from a instead of r%1
2792 // this one is safe but disables 245.a 245.b
2793 // please remove 245 if 245.a 245.b are found to be safe
2794 // applies to f.e. scott-compare.c
2805 ; Peephole 245 optimized complement (r%1 and acc set needed?)
2810 } if labelRefCount %2 1
2812 // this one will not be triggered if 245 is present
2813 // please remove 245 if 245.a 245.b are found to be safe
2814 // applies to f.e. vprintf.c
2826 ; Peephole 245.a optimized conditional jump (r%1 and acc not set!)
2828 } if labelRefCount %2 1
2830 // this one will not be triggered if 245 is present
2831 // please remove 245 if 245.a 245.b are found to be safe
2832 // applies to f.e. scott-compare.c
2844 ; Peephole 245.b optimized conditional jump (r%1 and acc not set!)
2846 } if labelRefCount %2 1
2849 // rules 246.x apply to f.e. bitfields.c
2860 ; Peephole 246.a combined clr/clr
2877 ; Peephole 246.b combined set/set
2894 ; Peephole 246.c combined set/clr
2912 ; Peephole 246.d combined clr/set
2931 ; Peephole 246.e combined set/clr/clr
2950 ; Peephole 246.f combined set/clr/set
2970 ; Peephole 246.g combined clr/set/clr
2990 ; Peephole 246.h combined clr/set/set
3001 // rules 247.x apply to f.e. bitfields.c
3012 ; Peephole 247.a combined clr/clr
3029 ; Peephole 247.b combined set/set
3046 ; Peephole 247.c combined set/clr
3064 ; Peephole 247.d combined clr/set
3083 ; Peephole 247.e combined set/clr/clr
3102 ; Peephole 247.f combined set/clr/set
3122 ; Peephole 247.g combined clr/set/clr
3142 ; Peephole 247.h combined clr/set/set
3151 // Peepholes 248.x have to be compatible with the keyword volatile.
3152 // They optimize typical accesses to memory mapped I/O devices:
3153 // volatile xdata char t; t|=0x01;
3163 ; Peephole 248.a optimized or to xdata
3171 // volatile xdata char t; t&=0x01;
3181 ; Peephole 248.b optimized and to xdata
3189 // volatile xdata char t; t^=0x01;
3199 ; Peephole 248.c optimized xor to xdata
3207 // volatile xdata char t; t|=0x01; t&=~0x01; t|=0x01;
3227 ; Peephole 248.d optimized or/and/or to volatile xdata
3241 // volatile xdata char t; t&=~0x01; t|=0x01; t&=~0x01;
3261 ; Peephole 248.e optimized and/or/and to volatile xdata
3275 // volatile xdata char t; t|=0x01; t&=~0x01;
3289 ; Peephole 248.f optimized or/and to volatile xdata
3300 // volatile xdata char t; t&=~0x01; t|=0x01;
3314 ; Peephole 248.g optimized and/or to volatile xdata
3325 // volatile xdata char t; t^=0x01; t^=0x01;
3339 ; Peephole 248.h optimized xor/xor to volatile xdata
3350 // Peeepholes 248.i to 248.m are like 248.d to 248.h except they apply to bitfields:
3351 // xdata struct { unsigned b0:1; unsigned b1:1; unsigned b2:1; } xport;
3352 // xport.b0=1; xport.b0=0; xport.b0=1;
3369 ; Peephole 248.i optimized or/and/or to xdata bitfield
3398 ; Peephole 248.j optimized and/or/and to xdata bitfield
3422 ; Peephole 248.k optimized or/and to xdata bitfield
3443 ; Peephole 248.l optimized and/or to xdata bitfield
3464 ; Peephole 248.m optimized xor/xor to xdata bitfield
3479 ; Peephole 249.a jump optimization
3480 } if labelRefCount %1 1
3486 ; Peephole 249.b jump optimization
3487 } if labelRefCount %1 1
3490 // This allows non-interrupt and interrupt code to safely compete
3491 // for a resource without the non-interrupt code having to disable
3493 // volatile bit resource_is_free;
3494 // if( resource_is_free ) {
3495 // resource_is_free=0; do_something; resource_is_free=1;
3502 ; Peephole 250.a using atomic test and clear
3506 } if labelRefCount %3 0
3514 ; Peephole 250.b using atomic test and clear
3518 } if labelRefCount %2 1
3521 // not before peephole 250.b
3525 ; Peephole 251.a replaced ljmp to ret with ret
3527 } if labelIsReturnOnly
3529 // not before peephole 250.b
3533 ; Peephole 251.b replaced sjmp to ret with ret
3535 } if labelIsReturnOnly
3537 // applies to shifts.c and when accessing arrays with an unsigned integer index
3538 // saving 1 byte, 2 cycles
3548 ; Peephole 252 optimized left shift
3557 // applies to: void test( char c ) { if( c ) func1(); else func2(); }
3562 ; Peephole 253.a replaced lcall/ret with ljmp
3566 // applies to: void test( char c ) { if( c ) func1(); else func2(); }
3572 ; Peephole 253.b replaced lcall/ret with ljmp
3574 } if labelRefCount %2 0
3576 // applies to f.e. scott-bool1.c
3582 ; Peephole 253.c replaced lcall with ljmp
3589 // applies to f.e. funptrs.c
3590 // saves one byte if %1 is a register or @register
3595 ; Peephole 254 optimized left shift
3600 // applies to f.e. switch.c
3613 ; Peephole 255 optimized jump table index calculation
3615 cjne a,#(%1+0x01),.+1
3624 // applies to f.e. jump tables and scott-bool1.c.
3625 // similar peepholes can be constructed for other instructions
3626 // after which a flag or a register is known (like: djnz, cjne, jnc)
3632 ; Peephole 256.a removed redundant clr c
3635 } if labelRefCount %2 0
3637 // applies to f.e. logf.c
3643 ; Peephole 256.b removed redundant clr a
3646 } if labelRefCount %2 0
3648 // applies to f.e. bug-905492.c
3654 ; Peephole 256.c loading %3 with zero from a
3658 } if labelRefCount %2 0
3660 // applies to f.e. malloc.c
3667 ; Peephole 256.d loading %3 with zero from a
3672 } if labelRefCount(%2 0),operandsNotRelated('a' %4)
3681 ; Peephole 256.e loading %3 with zero from a
3687 } if labelRefCount(%2 0),operandsNotRelated('a' %4 %6)
3697 ; Peephole 256.f loading %2 with zero from a
3704 } if labelRefCount(%2 0),operandsNotRelated('a' %4 %6 %8)
3707 // unsigned char i=8; do{ } while(--i != 0);
3708 // this currently only applies if i is kept in a register
3713 ; Peephole 257 optimized decrement with compare
3718 // in_byte<<=1; if(in_bit) in_byte|=1;
3719 // helps f.e. reading data on a 3-wire (SPI) bus
3729 ; Peephole 258.a optimized bitbanging
3738 // in_byte<<=1; if(in_bit) in_byte|=1;
3748 ; Peephole 258.b optimized bitbanging
3757 // in_byte>>=1; if(in_bit) in_byte|=0x80;
3768 ; Peephole 258.c optimized bitbanging
3777 // in_byte>>=1; if(in_bit) in_byte|=0x80;
3788 ; Peephole 258.d optimized bitbanging
3797 // out_bit=out_byte&0x80; out_byte<<=1;
3798 // helps f.e. writing data on a 3-wire (SPI) bus
3807 ; Peephole 258.e optimized bitbanging
3814 // out_bit=out_byte&0x01; out_byte>>=1;
3824 ; Peephole 258.f optimized bitbanging
3832 // Peepholes 259.x are not compatible with peepholex 250.x
3833 // Peepholes 250.x add jumps to a previously unused label. As the
3834 // labelRefCount is not increased, peepholes 259.x are (mistakenly) applied.
3835 // (Mail on sdcc-devel 2004-10-25)
3836 // Note: Peepholes 193..199, 251 remove jumps to previously used labels without
3837 // decreasing labelRefCount (less dangerous - this f.e. leads to 253.c being
3838 // applied instead of 253.b))
3840 // applies to f.e. vprintf.c
3847 // ; Peephole 259.a removed redundant label %2 and ret
3849 //} if labelRefCount %2 0
3851 // applies to f.e. gets.c
3858 // ; Peephole 259.b removed redundant label %2 and ret
3860 //} if labelRefCount %2 0
3862 // optimizing jumptables
3863 // Please note: to enable peephole 260.x you currently have to set
3864 // the environment variable SDCC_SJMP_JUMPTABLE
3876 ; Peephole 260.a used sjmp in jumptable
3887 // optimizing jumptables
3900 ; Peephole 260.b used sjmp in jumptable
3912 // optimizing jumptables
3926 ; Peephole 260.c used sjmp in jumptable
3939 // optimizing jumptables
3954 ; Peephole 260.d used sjmp in jumptable
3968 // optimizing jumptables
3984 ; Peephole 260.e used sjmp in jumptable
3999 // optimizing jumptables
4017 ; Peephole 260.f used sjmp in jumptable
4034 // optimizing jumptables
4053 ; Peephole 260.g used sjmp in jumptable
4071 // optimizing jumptables
4091 ; Peephole 260.h used sjmp in jumptable
4110 // optimizing jumptables
4131 ; Peephole 260.i used sjmp in jumptable
4151 // optimizing jumptables
4173 ; Peephole 260.j used sjmp in jumptable
4194 // optimizing jumptables
4217 ; Peephole 260.k used sjmp in jumptable
4239 // optimizing jumptables
4263 ; Peephole 260.l used sjmp in jumptable
4286 // optimizing jumptables
4311 ; Peephole 260.m used sjmp in jumptable
4335 // applies to: a = (a << 1) | (a >> 15);
4347 ; Peephole 261.a optimized left rol
4357 // applies to: a = (a << 15) | (a >> 1);
4369 ; Peephole 261.b optimized right rol