* [PATCH v2] tests/tcg: Replace -mpower8-vector with -mcpu=power8
@ 2024-10-23 13:12 Ilya Leoshkevich
2024-10-23 16:20 ` Richard Henderson
2024-10-23 19:55 ` Alex Bennée
0 siblings, 2 replies; 3+ messages in thread
From: Ilya Leoshkevich @ 2024-10-23 13:12 UTC (permalink / raw)
To: Nicholas Piggin, Daniel Henrique Barboza
Cc: Richard Henderson, Kewen Lin, qemu-devel, qemu-ppc, John Platts,
Fabiano Rosas, Ilya Leoshkevich
[1] deprecated -mpower8-vector, resulting in:
powerpc64-linux-gnu-gcc: warning: switch '-mpower8-vector' is no longer supported
qemu/tests/tcg/ppc64/vsx_f2i_nan.c:4:15: error: expected ';' before 'float'
4 | typedef vector float vsx_float32_vec_t;
| ^~~~~~
Use -mcpu=power8 instead. In order to properly verify that this works,
one needs a big-endian (the minimum supported CPU for 64-bit
little-endian is power8 anyway) GCC configured with --enable-checking
(see GCC commit e154242724b0 ("[RS6000] Don't pass -many to the
assembler").
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109987
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
---
v1: https://lore.kernel.org/qemu-devel/20241021142830.486149-1-iii@linux.ibm.com/
v1 -> v2: Use -mcpu=power8 instead of -mvsx (Richard).
tests/tcg/ppc64/Makefile.target | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/tcg/ppc64/Makefile.target b/tests/tcg/ppc64/Makefile.target
index 1940886c737..0d058b26006 100644
--- a/tests/tcg/ppc64/Makefile.target
+++ b/tests/tcg/ppc64/Makefile.target
@@ -6,7 +6,7 @@ VPATH += $(SRC_PATH)/tests/tcg/ppc64
config-cc.mak: Makefile
$(quiet-@)( \
- $(call cc-option,-mpower8-vector, CROSS_CC_HAS_POWER8_VECTOR); \
+ $(call cc-option,-mcpu=power8, CROSS_CC_HAS_CPU_POWER8); \
$(call cc-option,-mpower10, CROSS_CC_HAS_POWER10)) 3> config-cc.mak
-include config-cc.mak
@@ -23,15 +23,15 @@ run-threadcount: threadcount
run-plugin-threadcount-with-%:
$(call skip-test, $<, "BROKEN (flaky with clang) ")
-ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),)
+ifneq ($(CROSS_CC_HAS_CPU_POWER8),)
PPC64_TESTS=bcdsub non_signalling_xscv
endif
-$(PPC64_TESTS): CFLAGS += -mpower8-vector
+$(PPC64_TESTS): CFLAGS += -mcpu=power8
-ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),)
+ifneq ($(CROSS_CC_HAS_CPU_POWER8),)
PPC64_TESTS += vsx_f2i_nan
endif
-vsx_f2i_nan: CFLAGS += -mpower8-vector -I$(SRC_PATH)/include
+vsx_f2i_nan: CFLAGS += -mcpu=power8 -I$(SRC_PATH)/include
PPC64_TESTS += mtfsf
PPC64_TESTS += mffsce
--
2.47.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] tests/tcg: Replace -mpower8-vector with -mcpu=power8
2024-10-23 13:12 [PATCH v2] tests/tcg: Replace -mpower8-vector with -mcpu=power8 Ilya Leoshkevich
@ 2024-10-23 16:20 ` Richard Henderson
2024-10-23 19:55 ` Alex Bennée
1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2024-10-23 16:20 UTC (permalink / raw)
To: Ilya Leoshkevich, Nicholas Piggin, Daniel Henrique Barboza
Cc: Kewen Lin, qemu-devel, qemu-ppc, John Platts, Fabiano Rosas
On 10/23/24 06:12, Ilya Leoshkevich wrote:
> [1] deprecated -mpower8-vector, resulting in:
>
> powerpc64-linux-gnu-gcc: warning: switch '-mpower8-vector' is no longer supported
> qemu/tests/tcg/ppc64/vsx_f2i_nan.c:4:15: error: expected ';' before 'float'
> 4 | typedef vector float vsx_float32_vec_t;
> | ^~~~~~
>
> Use -mcpu=power8 instead. In order to properly verify that this works,
> one needs a big-endian (the minimum supported CPU for 64-bit
> little-endian is power8 anyway) GCC configured with --enable-checking
> (see GCC commit e154242724b0 ("[RS6000] Don't pass -many to the
> assembler").
>
> [1]https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109987
>
> Signed-off-by: Ilya Leoshkevich<iii@linux.ibm.com>
> ---
> v1:https://lore.kernel.org/qemu-devel/20241021142830.486149-1-iii@linux.ibm.com/
> v1 -> v2: Use -mcpu=power8 instead of -mvsx (Richard).
>
> tests/tcg/ppc64/Makefile.target | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] tests/tcg: Replace -mpower8-vector with -mcpu=power8
2024-10-23 13:12 [PATCH v2] tests/tcg: Replace -mpower8-vector with -mcpu=power8 Ilya Leoshkevich
2024-10-23 16:20 ` Richard Henderson
@ 2024-10-23 19:55 ` Alex Bennée
1 sibling, 0 replies; 3+ messages in thread
From: Alex Bennée @ 2024-10-23 19:55 UTC (permalink / raw)
To: Ilya Leoshkevich
Cc: Nicholas Piggin, Daniel Henrique Barboza, Richard Henderson,
Kewen Lin, qemu-devel, qemu-ppc, John Platts, Fabiano Rosas
Ilya Leoshkevich <iii@linux.ibm.com> writes:
> [1] deprecated -mpower8-vector, resulting in:
>
> powerpc64-linux-gnu-gcc: warning: switch '-mpower8-vector' is no longer supported
> qemu/tests/tcg/ppc64/vsx_f2i_nan.c:4:15: error: expected ';' before 'float'
> 4 | typedef vector float vsx_float32_vec_t;
> | ^~~~~~
>
> Use -mcpu=power8 instead. In order to properly verify that this works,
> one needs a big-endian (the minimum supported CPU for 64-bit
> little-endian is power8 anyway) GCC configured with --enable-checking
> (see GCC commit e154242724b0 ("[RS6000] Don't pass -many to the
> assembler").
>
> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109987
>
> Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-23 19:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-23 13:12 [PATCH v2] tests/tcg: Replace -mpower8-vector with -mcpu=power8 Ilya Leoshkevich
2024-10-23 16:20 ` Richard Henderson
2024-10-23 19:55 ` Alex Bennée
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 NNTP newsgroup(s).