summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/m68k/p2663.s
blob: 9f3650fb8aa02b908ffaca6aa35eafb88def32c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
| This code generates an incorrect pc relative offset 
|
bug:       movel  #4,%d7
           jsr    table(%pc,%d7.w)            | wrong
           jsr    %pc@(table-.-2:b,%d7:w)     | correct but cryptic
           nop
           nop
table:
           bra    junk
           bra    junk
           bra    junk

junk:
    nop
    rts