about summary refs log tree commit diff
path: root/sysdeps/tile/start.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/start.S
parent24d1d8ec9e529ed66c49e17366fe5a889d483670 (diff)
downloadglibc-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/tile/start.S')
-rw-r--r--sysdeps/tile/start.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/tile/start.S b/sysdeps/tile/start.S
index da3ba9c013..7cdabed49e 100644
--- a/sysdeps/tile/start.S
+++ b/sysdeps/tile/start.S
@@ -109,11 +109,11 @@ _start:
 
 	 /* Zero out callee space for return address. Unnecessary but free.
 	    This is just paranoia to help backtracing not go awry. */
-	 ST sp, zero
+	 st sp, zero
 	}
 	{
 	 /* Zero out our frame pointer for __libc_start_main. */
-	 ST r12, zero
+	 st r12, zero
 
 	 /* Zero out lr to make __libc_start_main the end of backtrace.  */
 	 move lr, zero