~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/ld/testsuite/ld-arm/cortex-a8-fix-blx.s

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
        .syntax unified
 
2
        .cpu cortex-a8
 
3
        .text
 
4
 
 
5
        @ expansion 32 bytes
 
6
        .macro bw1
 
7
        add.w r0, r1, r2
 
8
        blx.w armfn
 
9
        add.w r0, r1, r2
 
10
        blx.w armfn
 
11
        add.w r0, r1, r2
 
12
        blx.w armfn
 
13
        add.w r0, r1, r2
 
14
        blx.w armfn
 
15
        .endm
 
16
 
 
17
        @ expansion 128 bytes
 
18
        .macro bw2
 
19
        bw1
 
20
        bw1
 
21
        bw1
 
22
        bw1
 
23
        .endm
 
24
 
 
25
        .arm
 
26
        .align  2
 
27
armfn:
 
28
        mov     r2, r3, asl r4
 
29
        bx      lr
 
30
 
 
31
        .global _start
 
32
 
 
33
        .thumb
 
34
        .thumb_func
 
35
        .align 3
 
36
        .type   _start, %function
 
37
_start:
 
38
        nop
 
39
 
 
40
        @ Trigger Cortex-A8 erratum workaround with blx instructions.
 
41
        bw2
 
42
        bw2
 
43
 
 
44
        bx      lr