1 ;;; Bug #1825: gas assemble PC-relative indexed addressing modes incorrectly
2 ;;; http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1825&group_id=2424
8 ldx L1,pc ; Assemble to 5-bit > 0 offset
13 subd L1,pc ; Assemble to 5-bit < 0 offset
16 ldab L3,pc ; 5-bit < 0 offset
17 ldab L4,pc ; 5-bit > 0 offset
21 subd L4,pc ; 9-bit < 0 offset
22 addd L5,pc ; 9-bit > 0 offset
26 orab L5,pc ; 9 bit < 0 offset (min value)
27 oraa L6,pc ; 9 bit > 0 offset (max value)
31 orab L6,pc ; 16 bit < 0 offset
32 anda _main,pc ; 16 bit < 0 offset
36 stab external,pc ; External 16-bit PCREL
47 leax _table,sp ; 16-bit absolute reloc