Skip to content

Commit cbfbd13

Browse files
iii-iMichael Tokarev
authored andcommitted
tests/tcg: Replace -mpower8-vector with -mcpu=power8
[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 Cc: [email protected] Signed-off-by: Ilya Leoshkevich <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Acked-by: Alex Bennée <[email protected]> Signed-off-by: Nicholas Piggin <[email protected]> (cherry picked from commit ddf4dd4) Signed-off-by: Michael Tokarev <[email protected]>
1 parent 2a5eec6 commit cbfbd13

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/tcg/ppc64/Makefile.target

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VPATH += $(SRC_PATH)/tests/tcg/ppc64
66

77
config-cc.mak: Makefile
88
$(quiet-@)( \
9-
$(call cc-option,-mpower8-vector, CROSS_CC_HAS_POWER8_VECTOR); \
9+
$(call cc-option,-mcpu=power8, CROSS_CC_HAS_CPU_POWER8); \
1010
$(call cc-option,-mpower10, CROSS_CC_HAS_POWER10)) 3> config-cc.mak
1111

1212
-include config-cc.mak
@@ -23,15 +23,15 @@ run-threadcount: threadcount
2323
run-plugin-threadcount-with-%:
2424
$(call skip-test, $<, "BROKEN (flaky with clang) ")
2525

26-
ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),)
26+
ifneq ($(CROSS_CC_HAS_CPU_POWER8),)
2727
PPC64_TESTS=bcdsub non_signalling_xscv
2828
endif
29-
$(PPC64_TESTS): CFLAGS += -mpower8-vector
29+
$(PPC64_TESTS): CFLAGS += -mcpu=power8
3030

31-
ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),)
31+
ifneq ($(CROSS_CC_HAS_CPU_POWER8),)
3232
PPC64_TESTS += vsx_f2i_nan
3333
endif
34-
vsx_f2i_nan: CFLAGS += -mpower8-vector -I$(SRC_PATH)/include
34+
vsx_f2i_nan: CFLAGS += -mcpu=power8 -I$(SRC_PATH)/include
3535

3636
PPC64_TESTS += mtfsf
3737
PPC64_TESTS += mffsce

0 commit comments

Comments
 (0)