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
126 ; Peephole 100 removed redundant mov
139 ; Peephole 101 removed redundant mov
157 ; Peephole 102 removed redundant mov
179 ; Peephole 103 removed redundant mov
196 ; Peephole 104 optimized increment (acc not set to r%1, flags undefined)
205 ; Peephole 105 removed redundant mov
214 ; Peephole 106 removed redundant mov
223 ; Peephole 107 removed redundant ljmp
232 ; Peephole 108 removed ljmp by inverse jump logic
242 ; Peephole 109 removed ljmp by inverse jump logic
252 ; Peephole 110 removed ljmp by inverse jump logic
262 ; Peephole 111 removed ljmp by inverse jump logic
272 ; Peephole 112.a removed ljmp by inverse jump logic
281 ; Peephole 112.b changed ljmp to sjmp
295 ; Peephole 113 optimized misc sequence
300 } if labelRefCount %3 1
311 ; Peephole 114 optimized misc sequence
317 } if labelRefCount %3 2
326 ; Peephole 115 jump optimization
330 } if labelRefCount %3 1
340 ; Peephole 116 jump optimization
345 } if labelRefCount %3 2
356 ; Peephole 117 jump optimization
362 } if labelRefCount %3 3
374 ; Peephole 118 jump optimization
381 } if labelRefCount %3 4
390 ; Peephole 119 jump optimization
393 } if labelRefCount %3 1
403 ; Peephole 120 jump optimization
407 } if labelRefCount %3 2
418 ; Peephole 121 jump optimization
423 } if labelRefCount %3 3
435 ; Peephole 122 jump optimization
441 } if labelRefCount %3 4
450 ; Peephole 123 jump optimization
454 } if labelRefCount %3 1
464 ; Peephole 124 jump optimization
469 } if labelRefCount %3 2
480 ; Peephole 125 jump optimization
486 } if labelRefCount %3 3
498 ; Peephole 126 jump optimization
505 } if labelRefCount %3 4
518 ; Peephole 127 removed misc sequence
520 } if labelRefCount %3 0
527 ; Peephole 128 jump optimization
536 ; Peephole 129 jump optimization
543 ; Peephole 130 changed target address mode r%1 to ar%1
553 ; Peephole 131 optimized decrement (not caring for c)
565 ; Peephole 133 removed redundant moves
578 ; Peephole 134 removed redundant moves
589 ; Peephole 135 removed redundant mov
600 ; Peephole 136 removed redundant moves
606 // WTF? Doesn't look sensible to me...
616 // ; Peephole 137 optimized misc jump sequence
620 //} if labelRefCount %4 1
631 // ; Peephole 138 optimized misc jump sequence
636 //} if labelRefCount %4 1
643 ; Peephole 139 removed redundant mov
653 ; Peephole 140 removed redundant mov
662 ; Peephole 141 removed redundant mov
672 ; Peephole 142 removed redundant moves
681 ; Peephole 143 converted rlc to rl
689 ; Peephole 144 converted rrc to rc
697 ; Peephole 145 changed to add without carry
706 ; Peephole 146 changed to add without carry
714 ; Peephole 147 changed target address mode r%1 to ar%1
721 ; Peephole 148 changed target address mode r%1 to ar%1
728 ; Peephole 149 changed target address mode r%1 to ar%1
738 ; Peephole 150 removed misc moves via dpl before return
751 ; Peephole 151 removed misc moves via dph, dpl before return
763 ; Peephole 152 removed misc moves via dph, dpl before return
778 ; Peephole 153 removed misc moves via dph, dpl, b before return
791 ; Peephole 154 removed misc moves via dph, dpl, b before return
805 ; Peephole 155 removed misc moves via dph, dpl, b before return
822 ; Peephole 156 removed misc moves via dph, dpl, b, a before return
837 ; Peephole 157 removed misc moves via dph, dpl, b, a before return
851 ; Peephole 158 removed misc moves via dph, dpl, b, a before return
860 ; Peephole 159 avoided xrl during execution
869 ; Peephole 160 removed sjmp by inverse jump logic
879 ; Peephole 161 removed sjmp by inverse jump logic
889 ; Peephole 162 removed sjmp by inverse jump logic
899 ; Peephole 163 removed sjmp by inverse jump logic
909 ; Peephole 164 removed sjmp by inverse jump logic
919 ; Peephole 165 removed sjmp by inverse jump logic
929 ; Peephole 166 removed redundant mov
932 } if notVolatile %1 %2
939 ; Peephole 167 removed redundant bit moves (c not set to %1)
948 ; Peephole 168 jump optimization
958 ; Peephole 169 jump optimization
970 ; Peephole 170 jump optimization
973 } if labelRefCount %3 1
983 ; Peephole 171 jump optimization
987 } if labelRefCount %3 2
998 ; Peephole 172 jump optimization
1003 } if labelRefCount %3 3
1015 ; Peephole 173 jump optimization
1021 } if labelRefCount %3 4
1030 ; Peephole 174 optimized decrement (acc not set to %2, flags undefined)
1041 ; Peephole 175 optimized increment (acc not set to %2, flags undefined)
1051 ; Peephole 176 optimized increment, removed redundant mov
1056 // this one will screw assignes to volatile/sfr's
1061 ; Peephole 177.a removed redundant mov
1063 } if notVolatile %1 %2
1065 // applies to f.e. scott-add.asm (--model-large)
1070 ; Peephole 177.b removed redundant mov
1074 // applies to f.e. bug-408972.c
1079 ; Peephole 177.c removed redundant move
1081 } if notVolatile %1 %2
1083 // applies to f.e. bug-408972.c
1084 // not before peephole 177.c
1085 // Bug #1076940, this rule erroneously applies to:
1095 // ; Peephole 177.d removed redundant move
1098 //} if notVolatile %1 %2
1100 // applies to f.e. bug-607243.c
1101 // also check notVolatile %3, as it will return FALSE if it's @r%1
1106 ; peephole 177.e removed redundant move
1108 } if notVolatile %2 %3
1114 ; peephole 177.f removed redundant move
1122 ; peephole 177.g optimized mov sequence
1131 ; peephole 177.h optimized mov sequence
1141 ; Peephole 178 removed redundant mov
1146 // rules 179-182 provided by : Frieder <fe@lake.iup.uni-heidelberg.de>
1147 // saving 2 byte, 1 cycle
1152 ; Peephole 179 changed mov to clr
1158 // volatile xdata char t; t=0x01; t=0x03;
1165 ; Peephole 180.a removed redundant mov to dptr
1171 // volatile xdata char t; t=0x01; t=0x03; t=0x01;
1180 ; Peephole 180.b removed redundant mov to dptr
1188 // saving 1 byte, 0 cycles
1192 ; Peephole 181 changed mov to clr
1196 // saving 3 bytes, 2 cycles
1197 // provided by Bernhard Held <bernhard.held@de.westinghouse.com>
1202 ; Peephole 182.a used 16 bit load of DPTR
1206 // saving 3 byte, 2 cycles, return(NULL) profits here
1211 ; Peephole 182.b used 16 bit load of dptr
1215 // saving 3 byte, 2 cycles. Probably obsoleted by 182.b
1220 ; Peephole 182.c used 16 bit load of dptr
1221 mov dptr,#(((%2)<<8) + %1)
1224 // applies to return 0.0; in f.e. sincosf.c
1230 ; Peephole 182.d used 16 bit load of dptr
1231 mov dptr,#(%1&0x00ff)
1239 ; Peephole 183 avoided anl during execution
1248 ; Peephole 184 removed redundant mov
1254 // acc being incremented might cause problems
1258 ; Peephole 185 changed order of increment (acc incremented also!)
1283 ; Peephole 186.a optimized movc sequence
1316 ; Peephole 186.b optimized movc sequence
1341 ; Peephole 186.c optimized movc sequence
1350 // char indexed access to: char code table[] = {4,3,2,1};
1360 ; Peephole 186.d optimized movc sequence
1365 // char indexed access to: int code table[] = {4,3,2,1};
1380 ; Peephole 186.e optimized movc sequence (b, dptr differ)
1398 ; Peephole 187 used a instead of ar%1 for anl
1410 ; Peephole 188 removed redundant mov
1422 ; Peephole 189 removed redundant mov and anl
1427 // rules 190 & 191 need to be in order
1433 ; Peephole 190 removed redundant mov
1445 ; Peephole 191 removed redundant mov
1456 ; Peephole 192 used a instead of ar%1 as source
1473 ; Peephole 193.a optimized misc jump sequence
1483 } if labelRefCount %3 4
1497 ; Peephole 193.b optimized misc jump sequence
1507 } if labelRefCount %3 4
1521 ; Peephole 193.c optimized misc jump sequence
1531 } if labelRefCount %3 4
1542 ; Peephole 194 optimized misc jump sequence
1549 } if labelRefCount %3 4
1561 ; Peephole 195.a optimized misc jump sequence
1569 } if labelRefCount %3 3
1581 ; Peephole 195.b optimized misc jump sequence
1589 } if labelRefCount %3 3
1601 ; Peephole 195.c optimized misc jump sequence
1609 } if labelRefCount %3 3
1619 ; Peephole 196 optimized misc jump sequence
1625 } if labelRefCount %3 3
1635 ; Peephole 197.a optimized misc jump sequence
1641 } if labelRefCount %3 2
1651 ; Peephole 197.b optimized misc jump sequence
1657 } if labelRefCount %3 2
1667 ; Peephole 197.c optimized misc jump sequence
1673 } if labelRefCount %3 2
1682 ; Peephole 198 optimized misc jump sequence
1687 } if labelRefCount %3 2
1695 ; Peephole 199 optimized misc jump sequence
1699 } if labelRefCount %3 1
1705 ; Peephole 200 removed redundant sjmp
1714 ; Peephole 201 removed redundant sjmp
1724 ; Peephole 202 removed redundant push pop
1733 ; Peephole 203 removed mov r%1,_spx
1742 ; Peephole 204 removed redundant mov
1754 ; Peephole 205 optimized misc jump sequence
1758 } if labelRefCount %2 1
1763 ; Peephole 206 removed redundant mov %1,%1
1771 ; Peephole 207 removed zero add (acc not set to %1, flags undefined)
1780 ; Peephole 208 removed redundant push pop
1790 ; Peephole 209 optimized increment (acc not set to %1, flags undefined)
1796 mov dptr,#((((%1 >> 8)) <<8) + %1)
1798 ; Peephole 210 simplified expression
1806 ; Peephole 211 removed redundant push %1 pop %1
1814 ; Peephole 212 reduced add sequence to inc
1820 mov %1,#(( %2 >> 8 ) ^ 0x80)
1822 ; Peephole 213.a inserted fix
1828 mov %1,#(( %2 + %3 >> 8 ) ^ 0x80)
1830 ; Peephole 213.b inserted fix
1831 mov %1,#((%2 + %3) >> 8)
1841 ; Peephole 214 reduced some extra moves
1844 } if operandsNotSame
1851 ; Peephole 215 removed some moves
1854 } if operandsNotSame
1864 ; Peephole 216 simplified clear (2bytes)
1883 ; Peephole 217 simplified clear (3bytes)
1907 ; Peephole 218 simplified clear (4bytes)
1926 ; Peephole 219 removed redundant clear
1942 ; Peephole 219.a removed redundant clear
1955 ; Peephole 220.a removed bogus DPS set
1963 ; Peephole 220.b removed bogus DPS set
1968 mov %1 + %2,(%2 + %1)
1970 ; Peephole 221.a remove redundant move
1974 mov (%1 + %2 + %3),((%2 + %1) + %3)
1976 ; Peephole 221.b remove redundant move
1983 ; Peephole 222 removed dec/inc pair
1992 ; Peephole 223 removed redundant dph/dpl moves
1995 } if notVolatile %1 %2
2003 ; Peephole 224 removed redundant dph/dpl moves
2016 ; Peephole 225 removed redundant move to acc
2032 ; Peephole 226 removed unnecessary clr
2054 ; Peephole 227 replaced inefficient 32 bit clear
2082 ; Peephole 228 replaced inefficient 32 constant
2104 ; Peephole 229 replaced inefficient 16 bit clear
2122 ; Peephole 230 replaced inefficient 16 bit constant
2132 // this last peephole often removes the last mov from 227-230
2137 ; Peephole 231 removed redundant mov to dptr
2144 ; Peephole 232 using movc to read xdata (--xram-movc)
2152 ; Peephole 233 using _gptrgetc instead of _gptrget (--xram-movc)
2162 ; Peephole 234 loading dpl directly from a(ccumulator), r%1 not set
2175 ; Peephole 235 loading dph directly from a(ccumulator), r%1 not set
2182 // 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
2187 ; Peephole 236.a used r%1 instead of ar%1
2194 ; Peephole 236.b used r%1 instead of ar%1
2201 ; Peephole 236.c used r%1 instead of ar%1
2208 ; Peephole 236.d used r%1 instead of ar%1
2215 ; Peephole 236.e used r%1 instead of ar%1
2222 ; Peephole 236.f used r%1 instead of ar%1
2229 ; Peephole 236.g used r%1 instead of ar%1
2236 ; Peephole 236.h used r%1 instead of ar%1
2243 ; Peephole 236.i used r%1 instead of ar%1
2250 ; Peephole 236.j used r%1 instead of ar%1
2257 ; Peephole 236.k used r%1 instead of ar%1
2264 ; Peephole 236.l used r%1 instead of ar%1
2271 ; Peephole 236.m used r%1 instead of ar%1
2278 ; Peephole 236.n used r%1 instead of ar%1
2289 ; Peephole 237.a removed sjmp to ret
2306 ; Peephole 237.b removed sjmp to ret
2316 // applies to f.e. device/lib/log10f.c
2342 ; Peephole 238.a removed 4 redundant moves
2343 } if operandsNotSame8 %1 %2 %3 %4 %5 %6 %7 %8
2345 // applies to device/lib/log10f.c
2360 ; Peephole 238.b removed 3 redundant moves
2361 } if operandsNotSame7 %1 %2 %3 %4 %5 %6 %7
2363 // applies to f.e. device/lib/time.c
2379 ; Peephole 238.c removed 2 redundant moves
2380 } if operandsNotSame4 %1 %2 %3 %4
2382 // applies to f.e. support/regression/tests/bug-524209.c
2395 ; Peephole 238.d removed 3 redundant moves
2396 } if operandsNotSame6 %1 %2 %3 %4 %5 %6
2398 // applies to f.e. ser_ir.asm
2402 ; Peephole 239 used a instead of acc
2410 ; Peephole 240 use clr instead of addc a,#0
2415 // peepholes 241.a to 241.c and 241.d to 241.f need to be in order
2427 ; Peephole 241.a optimized compare
2438 // applies to f.e. time.c
2448 ; Peephole 241.b optimized compare
2457 // applies to f.e. malloc.c
2466 ; Peephole 241.c optimized compare
2474 // applies to f.e. j = (k!=0x1000);
2475 // with volatile idata long k;
2490 ; Peephole 241.d optimized compare
2504 // applies to f.e. j = (k!=0x1000);
2505 // with volatile idata int k;
2516 ; Peephole 241.e optimized compare
2526 // applies to f.e. vprintf.asm (--stack-auto)
2535 ; Peephole 241.f optimized compare
2543 // applies to f.e. scott-bool1.c
2550 ; Peephole 242.a avoided branch jnz to jz
2555 } if labelRefCount %1 1
2557 // applies to f.e. scott-bool1.c
2565 ; Peephole 242.b avoided branch jnz to jz
2571 } if labelRefCount %1 1
2573 // applies to f.e. logic.c
2583 ; Peephole 242.c avoided branch jnz to jz
2591 } if labelRefCount %1 1
2593 // applies to f.e. vprintf.c
2594 // this is a rare case, usually the "tail increment" is noticed earlier
2601 ; Peephole 243 avoided branch to sjmp
2608 // applies to f.e. simplefloat.c (saving 1 cycle)
2613 ; Peephole 244.a moving first to a instead of r%1
2618 // applies to f.e. _itoa.c (saving 1 cycle)
2623 ; Peephole 244.b moving first to a instead of r%1
2629 // applies to f.e. bug-460010.c (saving 1 cycle)
2634 ; Peephole 244.c loading dpl from a instead of r%1
2643 ; Peephole 244.d loading dph from a instead of r%1
2648 // this one is safe but disables 245.a 245.b
2649 // please remove 245 if 245.a 245.b are found to be safe
2650 // applies to f.e. scott-compare.c
2661 ; Peephole 245 optimized complement (r%1 and acc set needed?)
2666 } if labelRefCount %2 1
2668 // this one will not be triggered if 245 is present
2669 // please remove 245 if 245.a 245.b are found to be safe
2670 // applies to f.e. vprintf.c
2682 ; Peephole 245.a optimized conditional jump (r%1 and acc not set!)
2684 } if labelRefCount %2 1
2686 // this one will not be triggered if 245 is present
2687 // please remove 245 if 245.a 245.b are found to be safe
2688 // applies to f.e. scott-compare.c
2700 ; Peephole 245.b optimized conditional jump (r%1 and acc not set!)
2702 } if labelRefCount %2 1
2705 // rules 246.x apply to f.e. bitfields.c
2716 ; Peephole 246.a combined clr/clr
2733 ; Peephole 246.b combined set/set
2750 ; Peephole 246.c combined set/clr
2768 ; Peephole 246.d combined clr/set
2787 ; Peephole 246.e combined set/clr/clr
2806 ; Peephole 246.f combined set/clr/set
2826 ; Peephole 246.g combined clr/set/clr
2846 ; Peephole 246.h combined clr/set/set
2857 // rules 247.x apply to f.e. bitfields.c
2868 ; Peephole 247.a combined clr/clr
2885 ; Peephole 247.b combined set/set
2902 ; Peephole 247.c combined set/clr
2920 ; Peephole 247.d combined clr/set
2939 ; Peephole 247.e combined set/clr/clr
2958 ; Peephole 247.f combined set/clr/set
2978 ; Peephole 247.g combined clr/set/clr
2998 ; Peephole 247.h combined clr/set/set
3007 // Peepholes 248.x have to be compatible with the keyword volatile.
3008 // They optimize typical accesses to memory mapped I/O devices:
3009 // volatile xdata char t; t|=0x01;
3019 ; Peephole 248.a optimized or to xdata
3027 // volatile xdata char t; t&=0x01;
3037 ; Peephole 248.b optimized and to xdata
3045 // volatile xdata char t; t^=0x01;
3055 ; Peephole 248.c optimized xor to xdata
3063 // volatile xdata char t; t|=0x01; t&=~0x01; t|=0x01;
3083 ; Peephole 248.d optimized or/and/or to volatile xdata
3097 // volatile xdata char t; t&=~0x01; t|=0x01; t&=~0x01;
3117 ; Peephole 248.e optimized and/or/and to volatile xdata
3131 // volatile xdata char t; t|=0x01; t&=~0x01;
3145 ; Peephole 248.f optimized or/and to volatile xdata
3156 // volatile xdata char t; t&=~0x01; t|=0x01;
3170 ; Peephole 248.g optimized and/or to volatile xdata
3181 // volatile xdata char t; t^=0x01; t^=0x01;
3195 ; Peephole 248.h optimized xor/xor to volatile xdata
3206 // Peeepholes 248.i to 248.m are like 248.d to 248.h except they apply to bitfields:
3207 // xdata struct { unsigned b0:1; unsigned b1:1; unsigned b2:1; } xport;
3208 // xport.b0=1; xport.b0=0; xport.b0=1;
3225 ; Peephole 248.i optimized or/and/or to xdata bitfield
3254 ; Peephole 248.j optimized and/or/and to xdata bitfield
3278 ; Peephole 248.k optimized or/and to xdata bitfield
3299 ; Peephole 248.l optimized and/or to xdata bitfield
3320 ; Peephole 248.m optimized xor/xor to xdata bitfield
3335 ; Peephole 249.a jump optimization
3336 } if labelRefCount %1 1
3342 ; Peephole 249.b jump optimization
3343 } if labelRefCount %1 1
3346 // This allows non-interrupt and interrupt code to safely compete
3347 // for a resource without the non-interrupt code having to disable
3349 // volatile bit resource_is_free;
3350 // if( resource_is_free ) {
3351 // resource_is_free=0; do_something; resource_is_free=1;
3358 ; Peephole 250.a using atomic test and clear
3362 } if labelRefCount %3 0
3370 ; Peephole 250.b using atomic test and clear
3374 } if labelRefCount %2 1
3377 // not before peephole 250.b
3381 ; Peephole 251.a replaced ljmp to ret with ret
3383 } if labelIsReturnOnly
3385 // not before peephole 250.b
3389 ; Peephole 251.b replaced sjmp to ret with ret
3391 } if labelIsReturnOnly
3393 // applies to shifts.c and when accessing arrays with an unsigned integer index
3394 // saving 1 byte, 2 cycles
3404 ; Peephole 252 optimized left shift
3413 // applies to: void test( char c ) { if( c ) func1(); else func2(); }
3418 ; Peephole 253.a replaced lcall/ret with ljmp
3422 // applies to: void test( char c ) { if( c ) func1(); else func2(); }
3428 ; Peephole 253.b replaced lcall/ret with ljmp
3430 } if labelRefCount %2 0
3432 // applies to f.e. scott-bool1.c
3438 ; Peephole 253.c replaced lcall with ljmp
3445 // applies to f.e. funptrs.c
3446 // saves one byte if %1 is a register or @register
3451 ; Peephole 254 optimized left shift
3456 // applies to f.e. switch.c
3469 ; Peephole 255 optimized jump table index calculation
3471 cjne a,#(%1+0x01),.+1
3480 // applies to f.e. jump tables and scott-bool1.c.
3481 // similar peepholes can be constructed for other instructions
3482 // after which a flag or a register is known (like: djnz, cjne, jnc)
3488 ; Peephole 256.a removed redundant clr c
3491 } if labelRefCount %2 0
3493 // applies to f.e. logf.c
3499 ; Peephole 256.b removed redundant clr a
3502 } if labelRefCount %2 0
3504 // applies to f.e. malloc.c
3511 ; Peephole 256.c loading %3,%4 with zero from a
3515 } if labelRefCount %2 0
3517 // applies to f.e. bug-905492.c
3523 ; Peephole 256.d loading %3 with zero from a
3526 } if labelRefCount %2 0
3529 // unsigned char i=8; do{ } while(--i != 0);
3530 // this currently only applies if i is kept in a register
3535 ; Peephole 257 optimized decrement with compare
3540 // in_byte<<=1; if(in_bit) in_byte|=1;
3541 // helps f.e. reading data on a 3-wire (SPI) bus
3551 ; Peephole 258.a optimized bitbanging
3560 // in_byte<<=1; if(in_bit) in_byte|=1;
3570 ; Peephole 258.b optimized bitbanging
3579 // in_byte>>=1; if(in_bit) in_byte|=0x80;
3590 ; Peephole 258.c optimized bitbanging
3599 // in_byte>>=1; if(in_bit) in_byte|=0x80;
3610 ; Peephole 258.d optimized bitbanging
3619 // out_bit=out_byte&0x80; out_byte<<=1;
3620 // helps f.e. writing data on a 3-wire (SPI) bus
3629 ; Peephole 258.e optimized bitbanging
3636 // out_bit=out_byte&0x01; out_byte>>=1;
3646 ; Peephole 258.f optimized bitbanging
3654 // Peepholes 259.x are not compatible with peepholex 250.x
3655 // Peepholes 250.x add jumps to a previously unused label. As the
3656 // labelRefCount is not increased, peepholes 259.x are (mistakenly) applied.
3657 // (Mail on sdcc-devel 2004-10-25)
3658 // Note: Peepholes 193..199, 251 remove jumps to previously used labels without
3659 // decreasing labelRefCount (less dangerous - this f.e. leads to 253.c being
3660 // applied instead of 253.b))
3662 // applies to f.e. vprintf.c
3669 // ; Peephole 259.a removed redundant label %2 and ret
3671 //} if labelRefCount %2 0
3673 // applies to f.e. gets.c
3680 // ; Peephole 259.b removed redundant label %2 and ret
3682 //} if labelRefCount %2 0
3684 // optimizing jumptables
3685 // Please note: to enable peephole 260.x you currently have to set
3686 // the environment variable SDCC_SJMP_JUMPTABLE
3698 ; Peephole 260.a used sjmp in jumptable
3709 // optimizing jumptables
3722 ; Peephole 260.b used sjmp in jumptable
3734 // optimizing jumptables
3748 ; Peephole 260.c used sjmp in jumptable
3761 // optimizing jumptables
3776 ; Peephole 260.d used sjmp in jumptable
3790 // optimizing jumptables
3806 ; Peephole 260.e used sjmp in jumptable
3821 // optimizing jumptables
3839 ; Peephole 260.f used sjmp in jumptable
3856 // optimizing jumptables
3875 ; Peephole 260.g used sjmp in jumptable
3893 // optimizing jumptables
3913 ; Peephole 260.h used sjmp in jumptable
3932 // optimizing jumptables
3953 ; Peephole 260.i used sjmp in jumptable
3973 // optimizing jumptables
3995 ; Peephole 260.j used sjmp in jumptable
4016 // optimizing jumptables
4039 ; Peephole 260.k used sjmp in jumptable
4061 // optimizing jumptables
4085 ; Peephole 260.l used sjmp in jumptable
4108 // optimizing jumptables
4133 ; Peephole 260.m used sjmp in jumptable