aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/tile/_mcount.S
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-12-13 16:14:30 -0200
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-12-20 16:55:26 -0200
commit8d2d239cb7db9df7b486d5f153c90865443e7abb (patch)
tree465984a5c7699deb3ef3503aef1c6c06eff3df06 /sysdeps/tile/_mcount.S
parent24d1d8ec9e529ed66c49e17366fe5a889d483670 (diff)
downloadglibc-8d2d239cb7db9df7b486d5f153c90865443e7abb.tar
glibc-8d2d239cb7db9df7b486d5f153c90865443e7abb.tar.gz
glibc-8d2d239cb7db9df7b486d5f153c90865443e7abb.tar.bz2
glibc-8d2d239cb7db9df7b486d5f153c90865443e7abb.zip
Simplify tile assembly definitions
With tilepro removal, the uppercase instruction are not anymore required to be defines as potentially macros. This is a mechanical change done by the following shell script: --- INSNS="LD LD4U ST ST4 BNEZ BEQZ BEQZT BGTZ CMPEQI CMPEQ CMOVEQZ CMOVNEZ" FILES=$(find sysdeps/tile sysdeps/unix/sysv/linux/tile -iname *.S) for insn in $INSNS; do repl=$(echo $insn | tr '[:upper:]' '[:lower:]') sed -i 's/\b'$insn'\b/'$repl'/g' $FILES done --- Checked with a build for tilegx-linux-gnu and tilegx-linux-gnu-32 with and without the patch, there is no difference in generated binary with a dissassemble. * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions. * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise. * sysdeps/tile/_mcount.S (__mcount): Likewise. * sysdeps/tile/crti.S (_init, _fini): Likewise. * sysdeps/tile/crtn.S: Likewise. * sysdeps/tile/dl-start.S (_start): Likewise. * sysdeps/tile/dl-trampoline.S: Likewise. * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise. * sysdeps/tile/start.S (_start): Likewise. * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise. * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise. * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise. * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise. * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise. * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise. * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
Diffstat (limited to 'sysdeps/tile/_mcount.S')
-rw-r--r--sysdeps/tile/_mcount.S50
1 files changed, 25 insertions, 25 deletions
diff --git a/sysdeps/tile/_mcount.S b/sysdeps/tile/_mcount.S
index c350084630..d6ecb9304a 100644
--- a/sysdeps/tile/_mcount.S
+++ b/sysdeps/tile/_mcount.S
@@ -33,27 +33,27 @@
.text
ENTRY(__mcount)
{
- ST sp, lr
+ st sp, lr
ADDI_PTR r29, sp, - (12 * REGSIZE)
}
cfi_offset (lr, 0)
{
ADDI_PTR sp, sp, - (13 * REGSIZE)
- ST r29, sp
+ st r29, sp
ADDI_PTR r29, r29, REGSIZE
}
cfi_def_cfa_offset (13 * REGSIZE)
- { ST r29, r0; ADDI_PTR r29, r29, REGSIZE }
- { ST r29, r1; ADDI_PTR r29, r29, REGSIZE }
- { ST r29, r2; ADDI_PTR r29, r29, REGSIZE }
- { ST r29, r3; ADDI_PTR r29, r29, REGSIZE }
- { ST r29, r4; ADDI_PTR r29, r29, REGSIZE }
- { ST r29, r5; ADDI_PTR r29, r29, REGSIZE }
- { ST r29, r6; ADDI_PTR r29, r29, REGSIZE }
- { ST r29, r7; ADDI_PTR r29, r29, REGSIZE }
- { ST r29, r8; ADDI_PTR r29, r29, REGSIZE }
- { ST r29, r9; ADDI_PTR r29, r29, REGSIZE }
- { ST r29, r10; ADDI_PTR r29, r29, REGSIZE; move r0, r10 }
+ { st r29, r0; ADDI_PTR r29, r29, REGSIZE }
+ { st r29, r1; ADDI_PTR r29, r29, REGSIZE }
+ { st r29, r2; ADDI_PTR r29, r29, REGSIZE }
+ { st r29, r3; ADDI_PTR r29, r29, REGSIZE }
+ { st r29, r4; ADDI_PTR r29, r29, REGSIZE }
+ { st r29, r5; ADDI_PTR r29, r29, REGSIZE }
+ { st r29, r6; ADDI_PTR r29, r29, REGSIZE }
+ { st r29, r7; ADDI_PTR r29, r29, REGSIZE }
+ { st r29, r8; ADDI_PTR r29, r29, REGSIZE }
+ { st r29, r9; ADDI_PTR r29, r29, REGSIZE }
+ { st r29, r10; ADDI_PTR r29, r29, REGSIZE; move r0, r10 }
{
move r1, lr
jal __mcount_internal
@@ -61,20 +61,20 @@ ENTRY(__mcount)
{
ADDI_PTR r29, sp, (2 * REGSIZE)
}
- { LD r0, r29; ADDI_PTR r29, r29, REGSIZE }
- { LD r1, r29; ADDI_PTR r29, r29, REGSIZE }
- { LD r2, r29; ADDI_PTR r29, r29, REGSIZE }
- { LD r3, r29; ADDI_PTR r29, r29, REGSIZE }
- { LD r4, r29; ADDI_PTR r29, r29, REGSIZE }
- { LD r5, r29; ADDI_PTR r29, r29, REGSIZE }
- { LD r6, r29; ADDI_PTR r29, r29, REGSIZE }
- { LD r7, r29; ADDI_PTR r29, r29, REGSIZE }
- { LD r8, r29; ADDI_PTR r29, r29, REGSIZE }
- { LD r9, r29; ADDI_PTR r29, r29, REGSIZE }
- { LD r10, r29; ADDI_PTR sp, sp, (13 * REGSIZE) }
+ { ld r0, r29; ADDI_PTR r29, r29, REGSIZE }
+ { ld r1, r29; ADDI_PTR r29, r29, REGSIZE }
+ { ld r2, r29; ADDI_PTR r29, r29, REGSIZE }
+ { ld r3, r29; ADDI_PTR r29, r29, REGSIZE }
+ { ld r4, r29; ADDI_PTR r29, r29, REGSIZE }
+ { ld r5, r29; ADDI_PTR r29, r29, REGSIZE }
+ { ld r6, r29; ADDI_PTR r29, r29, REGSIZE }
+ { ld r7, r29; ADDI_PTR r29, r29, REGSIZE }
+ { ld r8, r29; ADDI_PTR r29, r29, REGSIZE }
+ { ld r9, r29; ADDI_PTR r29, r29, REGSIZE }
+ { ld r10, r29; ADDI_PTR sp, sp, (13 * REGSIZE) }
cfi_def_cfa_offset (0)
{
- LD lr, sp
+ ld lr, sp
}
{
move lr, r10