public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/3] sparc: build with -mvis on sparc32/sparcv9 and sparc64
@ 2016-08-04  1:09 Aurelien Jarno
  2016-08-04  1:09 ` [PATCH 3/3] sparc32/sparcv9: add a VIS3 version of fdim Aurelien Jarno
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Aurelien Jarno @ 2016-08-04  1:09 UTC (permalink / raw)
  To: libc-alpha; +Cc: David Miller, Aurelien Jarno

When building for sparc32/sparcv9 or sparc64, we assume that VIS
instructions are available and use them in the sparc specific assembly
code. However we do not tell GCC to use such instructions, resulting in
slightly suboptimal code.

Fix that by passing -Wa,-Av9a -mvis to GCC.

Changelog:
	* sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
	* sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
	-Wa,-Av9a -mvis.
---
 ChangeLog                              | 6 ++++++
 sysdeps/sparc/sparc32/sparcv9/Makefile | 2 +-
 sysdeps/sparc/sparc64/Makefile         | 2 ++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ac692dc..c3fe9fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-08-04  Aurelien Jarno  <aurelien@aurel32.net>
+
+	* sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
+	* sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
+	-Wa,-Av9a -mvis.
+
 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
 
 	* bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
diff --git a/sysdeps/sparc/sparc32/sparcv9/Makefile b/sysdeps/sparc/sparc32/sparcv9/Makefile
index fefc742..08c5a96 100644
--- a/sysdeps/sparc/sparc32/sparcv9/Makefile
+++ b/sysdeps/sparc/sparc32/sparcv9/Makefile
@@ -1,4 +1,4 @@
-sysdep-CFLAGS += -mcpu=ultrasparc -Wa,-Av9a
+sysdep-CFLAGS += -mcpu=ultrasparc -Wa,-Av9a -mvis
 
 ifeq ($(have-as-vis3),yes)
 ASFLAGS-.o += -Wa,-Av9d
diff --git a/sysdeps/sparc/sparc64/Makefile b/sysdeps/sparc/sparc64/Makefile
index 3a12510..fbabf69 100644
--- a/sysdeps/sparc/sparc64/Makefile
+++ b/sysdeps/sparc/sparc64/Makefile
@@ -1,3 +1,5 @@
+sysdep-CFLAGS += -Wa,-Av9a -mvis
+
 ifeq ($(subdir),string)
 sysdep_routines += align-cpy
 endif
-- 
2.8.1

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-08-26 18:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04  1:09 [PATCH 1/3] sparc: build with -mvis on sparc32/sparcv9 and sparc64 Aurelien Jarno
2016-08-04  1:09 ` [PATCH 3/3] sparc32/sparcv9: add a VIS3 version of fdim Aurelien Jarno
2016-08-26 14:25   ` Paul E. Murphy
2016-08-26 14:34     ` Paul E. Murphy
2016-08-26 16:02       ` Joseph Myers
2016-08-26 18:34         ` David Miller
2016-08-26 17:41       ` Aurelien Jarno
2016-08-04  1:09 ` [PATCH 2/3] sparc: remove fdim sparc specific implementations Aurelien Jarno
2016-08-04  5:19 ` [PATCH 1/3] sparc: build with -mvis on sparc32/sparcv9 and sparc64 David Miller
2016-08-05 20:36   ` Aurelien Jarno
2016-08-04 11:29 ` Mike Frysinger
2016-08-04 12:58   ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).