[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 10/14] tests/tcg/arm: Use -fno-integrated-as for test-arm-iwmm
From: |
Richard Henderson |
Subject: |
[PATCH v4 10/14] tests/tcg/arm: Use -fno-integrated-as for test-arm-iwmmxt |
Date: |
Sun, 30 Jun 2024 12:00:46 -0700 |
Clang does not support IWMXT instructions.
Fall back to the external assembler.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tests/tcg/arm/Makefile.target | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target
index 0a1965fce7..95f891bf8c 100644
--- a/tests/tcg/arm/Makefile.target
+++ b/tests/tcg/arm/Makefile.target
@@ -8,6 +8,11 @@ ARM_SRC=$(SRC_PATH)/tests/tcg/arm
# Set search path for all sources
VPATH += $(ARM_SRC)
+config-cc.mak: Makefile
+ $(quiet-@)( \
+ $(call cc-option,-fno-integrated-as, CROSS_CC_HAS_FNIA)) 3>
config-cc.mak
+-include config-cc.mak
+
float_madds: CFLAGS+=-mfpu=neon-vfpv4
# Basic Hello World
@@ -17,7 +22,8 @@ hello-arm: LDFLAGS+=-nostdlib
# IWMXT floating point extensions
ARM_TESTS += test-arm-iwmmxt
-test-arm-iwmmxt: CFLAGS+=-marm -march=iwmmxt -mabi=aapcs -mfpu=fpv4-sp-d16
+# Clang assembler does not support IWMXT, so use the external assembler.
+test-arm-iwmmxt: CFLAGS += -marm -march=iwmmxt -mabi=aapcs -mfpu=fpv4-sp-d16
$(CROSS_CC_HAS_FNIA)
test-arm-iwmmxt: test-arm-iwmmxt.S
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
--
2.34.1
- [PATCH v4 00/14] test/tcg: Clang build fixes for arm/aarch64, Richard Henderson, 2024/06/30
- [PATCH v4 01/14] tests/tcg/minilib: Constify digits in print_num, Richard Henderson, 2024/06/30
- [PATCH v4 02/14] tests/tcg: Adjust variable defintion from cc-option, Richard Henderson, 2024/06/30
- [PATCH v4 06/14] tests/tcg/aarch64: Do not use x constraint, Richard Henderson, 2024/06/30
- [PATCH v4 04/14] tests/tcg/aarch64: Explicitly specify register width, Richard Henderson, 2024/06/30
- [PATCH v4 07/14] tests/tcg/aarch64: Add -fno-integrated-as for sme, Richard Henderson, 2024/06/30
- [PATCH v4 05/14] tests/tcg/aarch64: Fix irg operand type, Richard Henderson, 2024/06/30
- [PATCH v4 09/14] tests/tcg/arm: Drop -N from LDFLAGS, Richard Henderson, 2024/06/30
- [PATCH v4 03/14] tests/tcg/aarch64: Drop -fno-tree-loop-distribute-patterns, Richard Henderson, 2024/06/30
- [PATCH v4 10/14] tests/tcg/arm: Use -fno-integrated-as for test-arm-iwmmxt,
Richard Henderson <=
- [PATCH v4 08/14] tests/tcg/arm: Fix fcvt result messages, Richard Henderson, 2024/06/30
- [PATCH v4 14/14] linux-user/main: Suppress out-of-range comparison warning for clang, Richard Henderson, 2024/06/30
- [PATCH v4 11/14] tests/tcg/arm: Manually register allocate half-precision numbers, Richard Henderson, 2024/06/30
- [PATCH v4 12/14] tests/tcg/arm: Use -march and -mfpu for fcvt, Richard Henderson, 2024/06/30
- [PATCH v4 13/14] tests/tcg/arm: Use vmrs/vmsr instead of mcr/mrc, Richard Henderson, 2024/06/30