181.mcf (cpu2000) runs (almost) twice as fast when built with Armhf complier versus an AArch64 compiler
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro GCC |
New
|
Undecided
|
Kugan Vivekanandarajah |
Bug Description
181.mcf is part of the cpu2000 integer suite. I have built this suite with both the linaro armhf and Aarch64 toolchains 4.8-2014.04 and 4.9- 2014.05). In both cases the Armhf binary ran (almost) twice as fast as the AArch64 binary. The table below shows the SPEC score for each run. These were all run on the same processor. Each was run three (3) times.
181.mcf 695 386 690 358
For Armhf toolchains (4.8-2014.04 and 4.9-2014.05) the same flags are used:
CC = /opt/gcc-
CC = /opt/gcc-
COPTIMIZE = -O3 -march=armv7-a -mfpu=vfpv3-d16 -fno-use-
For AArch64 toolchains (4.8-2014.04 and 4.9-2014.05) the same flags are used:
CC = /opt/gcc-
CC = /opt/gcc-
COPTIMIZE = -O3 -march=
Changed in gcc-linaro: | |
assignee: | nobody → Kugan Vivekanandarajah (kugan-vivekanandarajah) |
I cant reproduce this with Linaro GCC 2014.09. I ran on AArch64 hardware with the following (somewhat similar to your options) and I cant see any regression in the order you are seeing. Could you kindly give more info on how you did?
For AArch32 kugan/cbuild/ builds/ destdir/ aarch64- unknown- linux-gnu/ bin/arm- none-linux- gnueabi- gcc -Wl,--dynamic- linker= /home/tcwg/ kugan/cbuild/ builds/ sysroot- arm-none- linux-gnueabi/ lib/ld- linux.so. 3 -Wl,-rpath= /home/tcwg/ kugan/cbuild/ builds/ sysroot- arm-none- linux-gnueabi/ libc/lib/ aarch64- linux-gnu: /home/tcwg/ kugan/cbuild/ builds/ sysroot- arm-none- linux-gnueabi/ lib
CC = /home/tcwg/
COPTIMIZE = -O3 -march=armv7-a -mfpu=vfpv3-d16 -fno-use- linker- plugin -flto -marm -ffast-math -ftree-vectorize -fno-common
For AArch64 kugan/cbuild/ builds/ destdir/ aarch64- unknown- linux-gnu/ bin/aarch64- none-linux- gnu-gcc -Wl,--dynamic- linker= /home/tcwg/ kugan/cbuild/ builds/ sysroot- aarch64- none-linux- gnu/lib/ ld-linux- aarch64. so.1 -Wl,-rpath= /home/tcwg/ kugan/cbuild/ builds/ sysroot- aarch64- none-linux- gnu/libc/ lib/aarch64- linux-gnu: /home/tcwg/ kugan/cbuild/ builds/ sysroot- aarch64- none-linux- gnu/lib
CC = /home/tcwg/
COPTIMIZE = -O3 -march= armv8-a+ crypto -ffast-math -ftree-vectorize -fno-use- linker- plugin -flto -fno-common -mcpu=cortex-a57