diff options
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-arm/cortex-a8-fix-blx.s')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-arm/cortex-a8-fix-blx.s | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-arm/cortex-a8-fix-blx.s b/binutils-2.21/ld/testsuite/ld-arm/cortex-a8-fix-blx.s new file mode 100644 index 0000000..5d74024 --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-arm/cortex-a8-fix-blx.s @@ -0,0 +1,44 @@ + .syntax unified + .cpu cortex-a8 + .text + + @ expansion 32 bytes + .macro bw1 + add.w r0, r1, r2 + blx.w armfn + add.w r0, r1, r2 + blx.w armfn + add.w r0, r1, r2 + blx.w armfn + add.w r0, r1, r2 + blx.w armfn + .endm + + @ expansion 128 bytes + .macro bw2 + bw1 + bw1 + bw1 + bw1 + .endm + + .arm + .align 2 +armfn: + mov r2, r3, asl r4 + bx lr + + .global _start + + .thumb + .thumb_func + .align 3 + .type _start, %function +_start: + nop + + @ Trigger Cortex-A8 erratum workaround with blx instructions. + bw2 + bw2 + + bx lr |