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/getcontext.S | |
parent | 24d1d8ec9e529ed66c49e17366fe5a889d483670 (diff) | |
download | glibc-8d2d239cb7db9df7b486d5f153c90865443e7abb.tar.gz glibc-8d2d239cb7db9df7b486d5f153c90865443e7abb.tar.xz 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/getcontext.S')
-rw-r--r-- | sysdeps/unix/sysv/linux/tile/getcontext.S | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/sysdeps/unix/sysv/linux/tile/getcontext.S b/sysdeps/unix/sysv/linux/tile/getcontext.S index e7561ea798..1a346cffb0 100644 --- a/sysdeps/unix/sysv/linux/tile/getcontext.S +++ b/sysdeps/unix/sysv/linux/tile/getcontext.S @@ -33,38 +33,38 @@ ENTRY (__getcontext) Save value "1" to uc_flags to later recognize getcontext(). */ { movei r11, 1; ADDI_PTR r10, r0, UC_FLAGS_OFFSET } { ST_PTR r10, r11; addli r10, r0, UC_REG(30) } - { ST r10, r30; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r31; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r32; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r33; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r34; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r35; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r36; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r37; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r38; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r39; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r40; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r41; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r42; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r43; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r44; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r45; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r46; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r47; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r48; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r49; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r50; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r51; ADDI_PTR r10, r10, REGSIZE } - { ST r10, r52; ADDI_PTR r10, r10, REGSIZE } - { ST r10, tp; ADDI_PTR r10, r10, REGSIZE } - { ST r10, sp; ADDI_PTR r10, r10, REGSIZE } - { ST r10, lr; ADDI_PTR r10, r10, REGSIZE } + { st r10, r30; ADDI_PTR r10, r10, REGSIZE } + { st r10, r31; ADDI_PTR r10, r10, REGSIZE } + { st r10, r32; ADDI_PTR r10, r10, REGSIZE } + { st r10, r33; ADDI_PTR r10, r10, REGSIZE } + { st r10, r34; ADDI_PTR r10, r10, REGSIZE } + { st r10, r35; ADDI_PTR r10, r10, REGSIZE } + { st r10, r36; ADDI_PTR r10, r10, REGSIZE } + { st r10, r37; ADDI_PTR r10, r10, REGSIZE } + { st r10, r38; ADDI_PTR r10, r10, REGSIZE } + { st r10, r39; ADDI_PTR r10, r10, REGSIZE } + { st r10, r40; ADDI_PTR r10, r10, REGSIZE } + { st r10, r41; ADDI_PTR r10, r10, REGSIZE } + { st r10, r42; ADDI_PTR r10, r10, REGSIZE } + { st r10, r43; ADDI_PTR r10, r10, REGSIZE } + { st r10, r44; ADDI_PTR r10, r10, REGSIZE } + { st r10, r45; ADDI_PTR r10, r10, REGSIZE } + { st r10, r46; ADDI_PTR r10, r10, REGSIZE } + { st r10, r47; ADDI_PTR r10, r10, REGSIZE } + { st r10, r48; ADDI_PTR r10, r10, REGSIZE } + { st r10, r49; ADDI_PTR r10, r10, REGSIZE } + { st r10, r50; ADDI_PTR r10, r10, REGSIZE } + { st r10, r51; ADDI_PTR r10, r10, REGSIZE } + { st r10, r52; ADDI_PTR r10, r10, REGSIZE } + { st r10, tp; ADDI_PTR r10, r10, REGSIZE } + { st r10, sp; ADDI_PTR r10, r10, REGSIZE } + { st r10, lr; ADDI_PTR r10, r10, REGSIZE } lnk r11 /* Point PC at the "jrp lr" instruction. */ addli r11, r11, .Lreturn - . - { ST r10, r11; ADDI_PTR r10, r10, REGSIZE } + { st r10, r11; ADDI_PTR r10, r10, REGSIZE } mfspr r11, INTERRUPT_CRITICAL_SECTION { - ST r10, r11 + st r10, r11 movei r1, 0 } @@ -78,7 +78,7 @@ ENTRY (__getcontext) moveli TREG_SYSCALL_NR_NAME, __NR_rt_sigprocmask } swint1 - BNEZ r1, .Lsyscall_error + bnez r1, .Lsyscall_error .Lreturn: { |