Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From d134dafc2f11e0d247420a0ba360bcdef77b4093 Mon Sep 17 00:00:00 2001 |
| 2 | From: Andre McCurdy <armccurdy@gmail.com> |
| 3 | Date: Tue, 19 Jan 2016 16:00:00 -0800 |
| 4 | Subject: [PATCH] use appropriate -march/-mcpu/-mfpu for ARM test apps |
| 5 | |
| 6 | Ensure that test apps in none/tests/arm are compiled with appropriate |
| 7 | -march/-mcpu/-mfpu flags to support the instructions being tested. |
| 8 | The aim is to build all tests, even ones which may not run correctly |
| 9 | on all target CPUs. |
| 10 | |
| 11 | For 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 |
| 14 | over-ride that). |
| 15 | |
| 16 | See similar cases in none/tests/arm/Makefile.am |
| 17 | |
| 18 | Upstream-Status: Pending |
| 19 | |
| 20 | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> |
| 21 | --- |
| 22 | none/tests/arm/Makefile.am | 6 ++++-- |
| 23 | 1 file changed, 4 insertions(+), 2 deletions(-) |
| 24 | |
| 25 | diff --git a/none/tests/arm/Makefile.am b/none/tests/arm/Makefile.am |
| 26 | index 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 | -- |
| 43 | 1.9.1 |
| 44 | |