[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH v6 23/49] tests/tcg/arm: fix up test-arm-iwmmxt test
From: |
Alex Bennée |
Subject: |
[Qemu-arm] [PATCH v6 23/49] tests/tcg/arm: fix up test-arm-iwmmxt test |
Date: |
Fri, 8 Jun 2018 13:32:41 +0100 |
We need to rename the source file to a .S so we can do a single-line
assemble and link invocation. We also specify the additional CFLAGS
for the compile as it's a non-standard ARM binary.
Signed-off-by: Alex Bennée <address@hidden>
[rth: force fpu configuration]
Signed-off-by: Richard Henderson <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
---
v4
- include rth's -mfpu=fpv4-sp-d16
v5
- merge fixes
---
tests/tcg/arm/Makefile.target | 5 +++++
tests/tcg/arm/{test-arm-iwmmxt.s => test-arm-iwmmxt.S} | 0
2 files changed, 5 insertions(+)
rename tests/tcg/arm/{test-arm-iwmmxt.s => test-arm-iwmmxt.S} (100%)
diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target
index 0312293dca..cadb385890 100644
--- a/tests/tcg/arm/Makefile.target
+++ b/tests/tcg/arm/Makefile.target
@@ -8,9 +8,14 @@ ARM_SRC=$(SRC_PATH)/tests/tcg/arm
# Set search path for all sources
VPATH += $(ARM_SRC)
+TESTS += hello-arm test-arm-iwmmxt
hello-arm: CFLAGS+=-marm -ffreestanding
hello-arm: LDFLAGS+=-nostdlib
+test-arm-iwmmxt: CFLAGS+=-marm -march=iwmmxt -mabi=aapcs -mfpu=fpv4-sp-d16
+test-arm-iwmmxt: test-arm-iwmmxt.S
+ $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
+
# On ARM Linux only supports 4k pages
EXTRA_RUNS+=run-test-mmap-4096
diff --git a/tests/tcg/arm/test-arm-iwmmxt.s b/tests/tcg/arm/test-arm-iwmmxt.S
similarity index 100%
rename from tests/tcg/arm/test-arm-iwmmxt.s
rename to tests/tcg/arm/test-arm-iwmmxt.S
--
2.17.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-arm] [PATCH v6 23/49] tests/tcg/arm: fix up test-arm-iwmmxt test,
Alex Bennée <=