diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-12-13 16:14:30 -0200 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-12-20 16:55:26 -0200 |
commit | 8d2d239cb7db9df7b486d5f153c90865443e7abb (patch) | |
tree | 465984a5c7699deb3ef3503aef1c6c06eff3df06 /sysdeps/unix/sysv/linux/tile/clone.S | |
parent | 24d1d8ec9e529ed66c49e17366fe5a889d483670 (diff) | |
download | glibc-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/unix/sysv/linux/tile/clone.S')
-rw-r--r-- | sysdeps/unix/sysv/linux/tile/clone.S | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sysdeps/unix/sysv/linux/tile/clone.S b/sysdeps/unix/sysv/linux/tile/clone.S index 9610acdd8d..2f624e6b0d 100644 --- a/sysdeps/unix/sysv/linux/tile/clone.S +++ b/sysdeps/unix/sysv/linux/tile/clone.S @@ -44,32 +44,32 @@ ENTRY (__clone) /* Create a stack frame so we can pass callee-saves to new task. */ { move r10, sp - ST sp, lr + st sp, lr ADDI_PTR sp, sp, -FRAME_SIZE } cfi_offset (lr, 0) cfi_def_cfa_offset (FRAME_SIZE) ADDI_PTR r11, sp, FRAME_SP { - ST r11, r10 + st r11, r10 ADDI_PTR r11, sp, FRAME_R30 } { - ST r11, r30 + st r11, r30 ADDI_PTR r11, sp, FRAME_R31 } cfi_offset (r30, FRAME_R30 - FRAME_SIZE) { - ST r11, r31 + st r11, r31 ADDI_PTR r11, sp, FRAME_R32 } cfi_offset (r31, FRAME_R31 - FRAME_SIZE) - ST r11, r32 + st r11, r32 cfi_offset (r32, FRAME_R32 - FRAME_SIZE) /* sanity check arguments */ - BEQZ r0, .Linvalid - BEQZ r1, .Linvalid + beqz r0, .Linvalid + beqz r1, .Linvalid /* Make sure child stack is properly aligned, and set up the top frame so that we can call out of it immediately in the @@ -79,7 +79,7 @@ ENTRY (__clone) ADDI_PTR r1, r1, -C_ABI_SAVE_AREA_SIZE andi r1, r1, -C_ABI_SAVE_AREA_SIZE ADDI_PTR r9, r1, REGSIZE /* sp of this frame on entry, i.e. zero */ - ST r9, zero + st r9, zero /* We need to switch the argument convention around from libc to kernel: @@ -118,30 +118,30 @@ ENTRY (__clone) moveli TREG_SYSCALL_NR_NAME, __NR_clone } swint1 - BEQZ r0, .Lthread_start /* If in child task. */ + beqz r0, .Lthread_start /* If in child task. */ .Ldone: /* Restore the callee-saved registers and return. */ ADDLI_PTR lr, sp, FRAME_SIZE { - LD lr, lr + ld lr, lr ADDLI_PTR r30, sp, FRAME_R30 } { - LD r30, r30 + ld r30, r30 ADDLI_PTR r31, sp, FRAME_R31 } { - LD r31, r31 + ld r31, r31 ADDLI_PTR r32, sp, FRAME_R32 } { - LD r32, r32 + ld r32, r32 ADDI_PTR sp, sp, FRAME_SIZE } cfi_def_cfa_offset (0) - BNEZ r1, .Lerror + bnez r1, .Lerror jrp lr .Lerror: |