blob: f15d04b173508641b6f4f1b7b76a959c1e1701da [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From d134dafc2f11e0d247420a0ba360bcdef77b4093 Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <armccurdy@gmail.com>
3Date: Tue, 19 Jan 2016 16:00:00 -0800
4Subject: [PATCH] use appropriate -march/-mcpu/-mfpu for ARM test apps
5
6Ensure that test apps in none/tests/arm are compiled with appropriate
7-march/-mcpu/-mfpu flags to support the instructions being tested.
8The aim is to build all tests, even ones which may not run correctly
9on all target CPUs.
10
11For tests requiring armv7ve instructions, ensure that we set both
12-march=armv7ve and -mcpu=cortex-a15 (since some TUNE_CCARGS may set
13-march=armv7-a and adding -mcpu=cortex-a15 alone is not enough to
14over-ride that).
15
16See similar cases in none/tests/arm/Makefile.am
17
Andrew Geissler78b72792022-06-14 06:47:25 -050018Upstream-Status: Submitted [https://bugs.kde.org/show_bug.cgi?id=454346]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019
20Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
21---
22 none/tests/arm/Makefile.am | 6 ++++--
23 1 file changed, 4 insertions(+), 2 deletions(-)
24
25diff --git a/none/tests/arm/Makefile.am b/none/tests/arm/Makefile.am
26index 4507a20..825290f 100644
27--- a/none/tests/arm/Makefile.am
28+++ b/none/tests/arm/Makefile.am
29@@ -62,8 +62,10 @@ neon64_CFLAGS = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 \
30 -mfpu=neon \
31 -mthumb
32
33-intdiv_CFLAGS = $(AM_CFLAGS) -g -mcpu=cortex-a15 -mthumb
34+intdiv_CFLAGS = $(AM_CFLAGS) -g -march=armv7ve -mcpu=cortex-a15 -mthumb
35 ldrt_CFLAGS = $(AM_CFLAGS) -g -mcpu=cortex-a8 -mthumb
36 ldrt_arm_CFLAGS = $(AM_CFLAGS) -g -mcpu=cortex-a8 -marm
37
38-vfpv4_fma_CFLAGS = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a15 -mfpu=vfpv4 -marm
39+vcvt_fixed_float_VFP_CFLAGS = $(AM_CFLAGS) -g -mcpu=cortex-a8 -mfpu=vfpv3
40+
41+vfpv4_fma_CFLAGS = $(AM_CFLAGS) -g -O0 -march=armv7ve -mcpu=cortex-a15 -mfpu=vfpv4 -marm
42--
431.9.1
44