ld/testsuite/ld-sh/sh64/shmix-1.s
raw| 1 | ! Check mixed-mode objects; different sections holding different ISA:s. |
| 2 | .mode SHcompact |
| 3 | .text |
| 4 | .global start |
| 5 | start: |
| 6 | bt forw |
| 7 | mova start2,r0 |
| 8 | start2: |
| 9 | nop |
| 10 | nop |
| 11 | forw: |
| 12 | nop |
| 13 | .align 2 |
| 14 | .long $ |
| 15 | .long start2 |
| 16 | .long mediacode2 |
| 17 | |
| 18 | .data |
| 19 | .long $ |
| 20 | .long start2 |
| 21 | .long mediacode2 |
| 22 | |
| 23 | .section .text.media,"ax" |
| 24 | .mode SHmedia |
| 25 | .align 2 |
| 26 | mediacode: |
| 27 | ptb forw,tr4 |
| 28 | pt start2,tr5 |
| 29 | mediacode2: |
| 30 | movi start2,r54 |
| 31 | movi mediacode2,r45 |
| 32 | pta mediacode2,tr7 |
| 33 | nop |