diff options
author | Jing Yu <jingyu@google.com> | 2011-12-20 10:27:58 -0800 |
---|---|---|
committer | Jing Yu <jingyu@google.com> | 2011-12-20 10:27:58 -0800 |
commit | cf3cdbf8b3cda61a619299e7966a83df66244036 (patch) | |
tree | 201e2bcfc955f16802d3257112d29736cb3a3ce8 /binutils-2.21/ld/testsuite/ld-spu/icache1.s | |
parent | e4df3e0a5bb640ccfa2f30ee67fe9b3146b152d6 (diff) | |
download | toolchain_binutils-cf3cdbf8b3cda61a619299e7966a83df66244036.zip toolchain_binutils-cf3cdbf8b3cda61a619299e7966a83df66244036.tar.gz toolchain_binutils-cf3cdbf8b3cda61a619299e7966a83df66244036.tar.bz2 |
Add binutils-2.21.
Use --enable-gold=default for dual linker support.
Change-Id: Id1a744c7db58a0b5e7a3be174cdfa875f2f86e49
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-spu/icache1.s')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-spu/icache1.s | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-spu/icache1.s b/binutils-2.21/ld/testsuite/ld-spu/icache1.s new file mode 100644 index 0000000..a65664c --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-spu/icache1.s @@ -0,0 +1,111 @@ + .text + .globl _start + .type _start,@function +_start: + ilhu $3,f5@h + iohl $3,f5@l + br f1 + + .data + .word f1, f2, f3, f4 + + .section ".f1.part1","ax",@progbits + .globl f1 + .type f1,@function +f1: + nop + stqd $0,16($1) + ai $1,$1,-64 + stqd $1,0($1) + brsl $0,f2 + brsl $0,f3 + .fill 800 + br .Lf1.part2 + .size f1,.-f1 + + .section ".f1.part2","ax",@progbits +.Lf1.part2: + ai $1,$1,64 + lqd $0,16($1) + bi $0 + .fill 800 + .size .Lf1.part2,.-.Lf1.part2 + + .section ".f2.part1","ax",@progbits + .globl f2 + .type f2,@function +f2: + ai $1,$1,-128 + stqd $1,0($1) + .fill 512 + ai $1,$1,128 + bi $0 + .size f2,.-f2 + + .section ".f3.part1","ax",@progbits + .type f3,@function +f3: + .fill 256 + bi $0 + .size f3,.-f3 + + .section ".f4.part1","ax",@progbits + .type f4,@function +f4: + stqd $(0),16($1) + stqd $1,-512($1) + ai $1,$1,-512 + brasl $0,f2 + .fill 800 + br .Lf4.part2 + .size f4,.-f4 + + .section ".f4.part2","ax",@progbits +.Lf4.part2: +#alloca + ilhu $3,-4000@h + iohl $3,-4000@l + a $4,$1,$3 + lnop + ori $1,$4,0 + stqd $4,0($4) + brsl $0,f5 +#recursion + brsl $0,f4 + lqd $1,0($1) + .fill 800 + br .Lf4.part3 + .size .Lf4.part2,.-.Lf4.part2 + + .section ".f4.part3","ax",@progbits +.Lf4.part3: +#recursion + brasl $0,f4 + brsl $0,f4 + .fill 800 + br .Lf4.part4 + .size .Lf4.part3,.-.Lf4.part3 + + .section ".f4.part4","ax",@progbits +.Lf4.part4: + .fill 800 + ila $3,512 + a $1,$1,$3 + lqd $0,16($1) +#sibling call + bra f5 + .size .Lf4.part4,.-.Lf4.part4 + + .section ".f5.part1","ax",@progbits + .type f5,@function +f5: + stqd $(0),16($1) + stqd $1,-512($1) + ai $1,$1,-512 + brsl $0,f5 + .fill 800 + ila $3,512 + a $1,$1,$3 + lqd $0,16($1) + bi $0 + .size f5,.-f5 |