sparc: build with -mvis on sparc32/sparcv9 and sparc64

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.
This commit is contained in:
Aurelien Jarno 2016-08-05 22:35:01 +02:00
parent d4cf133100
commit 9c8addbc1c
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2016-08-05 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-05 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
* math/gen-libm-test.pl (apply_lit): Rewrite to apply

View File

@ -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

View File

@ -1,3 +1,5 @@
sysdep-CFLAGS += -Wa,-Av9a -mvis
ifeq ($(subdir),string)
sysdep_routines += align-cpy
endif