diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2018-04-13 14:56:17 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2018-06-20 20:22:34 +0100 |
commit | 65eab0f8cb2b13e03b8608fd255e4bc0c5df5a59 (patch) | |
tree | 1a375b5b462d03ff7f982f5ce4545cc0241b8b25 /tests | |
parent | ab4aac50231473515eb20430e4002841b6505d61 (diff) | |
download | qemu-65eab0f8cb2b13e03b8608fd255e4bc0c5df5a59.zip |
tests/tcg/arm: fix up test-arm-iwmmxt test
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 <alex.bennee@linaro.org>
[rth: force fpu configuration]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tcg/arm/Makefile.target | 5 | ||||
-rw-r--r-- | tests/tcg/arm/test-arm-iwmmxt.S (renamed from tests/tcg/arm/test-arm-iwmmxt.s) | 0 |
2 files changed, 5 insertions, 0 deletions
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 index d647f9404a..d647f9404a 100644 --- a/tests/tcg/arm/test-arm-iwmmxt.s +++ b/tests/tcg/arm/test-arm-iwmmxt.S |