Successfully identified regression in *gcc* in CI configuration 
tcwg_bmk_gnu_tk1/gnu-release-arm-spec2k6-O2_LTO.  So far, this commit has 
regressed CI configurations:
 - tcwg_bmk_gnu_tk1/gnu-release-arm-spec2k6-O2_LTO

Culprit:
<cut>
commit 268d509d67efac45f01b356602036e1dc7c6935e
Author: Andrew Stubbs <a...@codesourcery.com>
Date:   Thu Jun 6 15:11:59 2019 +0000

    Add -march=gfx906 for AMD GCN.
    
    2019-06-06  Andrew Stubbs  <a...@codesourcery.com>
    
            gcc/
            * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
            * config/gcn/gcn.opt (gpu_type): Add gfx906.
            * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
            (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
            Add gfx906.
    
    From-SVN: r272007
</cut>

Results regressed to (for first_bad == 268d509d67efac45f01b356602036e1dc7c6935e)
# reset_artifacts:
-10
# build_abe binutils:
-9
# build_abe stage1 -- --set gcc_override_configure=--with-mode=arm --set 
gcc_override_configure=--disable-libsanitizer:
-8
# build_abe linux:
-7
# build_abe glibc:
-6
# build_abe stage2 -- --set gcc_override_configure=--with-mode=arm --set 
gcc_override_configure=--disable-libsanitizer:
-5
# true:
0
# benchmark -O2_LTO_marm -- 
artifacts/build-268d509d67efac45f01b356602036e1dc7c6935e/results_id:
1
# 459.GemsFDTD,GemsFDTD_base.default                            regressed by 103

from (for last_good == 41dab855dce20d5d7042c9330dd8124d0ece19c0)
# reset_artifacts:
-10
# build_abe binutils:
-9
# build_abe stage1 -- --set gcc_override_configure=--with-mode=arm --set 
gcc_override_configure=--disable-libsanitizer:
-8
# build_abe linux:
-7
# build_abe glibc:
-6
# build_abe stage2 -- --set gcc_override_configure=--with-mode=arm --set 
gcc_override_configure=--disable-libsanitizer:
-5
# true:
0
# benchmark -O2_LTO_marm -- 
artifacts/build-41dab855dce20d5d7042c9330dd8124d0ece19c0/results_id:
1

Artifacts of last_good build: 
https://ci.linaro.org/job/tcwg_bmk_ci_gnu-bisect-tcwg_bmk_tk1-gnu-release-arm-spec2k6-O2_LTO/21/artifact/artifacts/build-41dab855dce20d5d7042c9330dd8124d0ece19c0/
Results ID of last_good: 
tk1_32/tcwg_bmk_gnu_tk1/bisect-gnu-release-arm-spec2k6-O2_LTO/1715
Artifacts of first_bad build: 
https://ci.linaro.org/job/tcwg_bmk_ci_gnu-bisect-tcwg_bmk_tk1-gnu-release-arm-spec2k6-O2_LTO/21/artifact/artifacts/build-268d509d67efac45f01b356602036e1dc7c6935e/
Results ID of first_bad: 
tk1_32/tcwg_bmk_gnu_tk1/bisect-gnu-release-arm-spec2k6-O2_LTO/1700
Build top page/logs: 
https://ci.linaro.org/job/tcwg_bmk_ci_gnu-bisect-tcwg_bmk_tk1-gnu-release-arm-spec2k6-O2_LTO/21/

Configuration details:


Reproduce builds:
<cut>
mkdir investigate-gcc-268d509d67efac45f01b356602036e1dc7c6935e
cd investigate-gcc-268d509d67efac45f01b356602036e1dc7c6935e

git clone https://git.linaro.org/toolchain/jenkins-scripts

mkdir -p artifacts/manifests
curl -o artifacts/manifests/build-baseline.sh 
https://ci.linaro.org/job/tcwg_bmk_ci_gnu-bisect-tcwg_bmk_tk1-gnu-release-arm-spec2k6-O2_LTO/21/artifact/artifacts/manifests/build-baseline.sh
 --fail
curl -o artifacts/manifests/build-parameters.sh 
https://ci.linaro.org/job/tcwg_bmk_ci_gnu-bisect-tcwg_bmk_tk1-gnu-release-arm-spec2k6-O2_LTO/21/artifact/artifacts/manifests/build-parameters.sh
 --fail
curl -o artifacts/test.sh 
https://ci.linaro.org/job/tcwg_bmk_ci_gnu-bisect-tcwg_bmk_tk1-gnu-release-arm-spec2k6-O2_LTO/21/artifact/artifacts/test.sh
 --fail
chmod +x artifacts/test.sh

# Reproduce the baseline build (build all pre-requisites)
./jenkins-scripts/tcwg_bmk-build.sh @@ artifacts/manifests/build-baseline.sh

# Save baseline build state (which is then restored in artifacts/test.sh)
rsync -a --del --delete-excluded --exclude bisect/ --exclude artifacts/ 
--exclude gcc/ ./ ./bisect/baseline/

cd gcc

# Reproduce first_bad build
git checkout --detach 268d509d67efac45f01b356602036e1dc7c6935e
../artifacts/test.sh

# Reproduce last_good build
git checkout --detach 41dab855dce20d5d7042c9330dd8124d0ece19c0
../artifacts/test.sh

cd ..
</cut>

History of pending regressions and results: 
https://git.linaro.org/toolchain/ci/base-artifacts.git/log/?h=linaro-local/ci/tcwg_bmk_gnu_tk1/gnu-release-arm-spec2k6-O2_LTO

Artifacts: 
https://ci.linaro.org/job/tcwg_bmk_ci_gnu-bisect-tcwg_bmk_tk1-gnu-release-arm-spec2k6-O2_LTO/21/artifact/artifacts/
Build log: 
https://ci.linaro.org/job/tcwg_bmk_ci_gnu-bisect-tcwg_bmk_tk1-gnu-release-arm-spec2k6-O2_LTO/21/consoleText

Full commit (up to 1000 lines):
<cut>
commit 268d509d67efac45f01b356602036e1dc7c6935e
Author: Andrew Stubbs <a...@codesourcery.com>
Date:   Thu Jun 6 15:11:59 2019 +0000

    Add -march=gfx906 for AMD GCN.
    
    2019-06-06  Andrew Stubbs  <a...@codesourcery.com>
    
            gcc/
            * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
            * config/gcn/gcn.opt (gpu_type): Add gfx906.
            * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
            (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
            Add gfx906.
    
    From-SVN: r272007
---
 gcc/ChangeLog            | 8 ++++++++
 gcc/config.gcc           | 2 +-
 gcc/config/gcn/gcn.opt   | 3 +++
 gcc/config/gcn/t-gcn-hsa | 4 ++--
 4 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ae15b05c65f..3c587a17da0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2019-06-06  Andrew Stubbs  <a...@codesourcery.com>
+
+       * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
+       * config/gcn/gcn.opt (gpu_type): Add gfx906.
+       * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
+       (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
+       Add gfx906.
+
 2019-06-06  Kyrylo Tkachov  <kyrylo.tkac...@arm.com>
 
        PR tree-optimization/90332
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 67c3c2c7a42..6b00c387247 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -4127,7 +4127,7 @@ case "${target}" in
                for which in arch tune; do
                        eval "val=\$with_$which"
                        case ${val} in
-                       "" | carrizo | fiji | gfx900 )
+                       "" | carrizo | fiji | gfx900 | gfx906 )
                                # OK
                                ;;
                        *)
diff --git a/gcc/config/gcn/gcn.opt b/gcc/config/gcn/gcn.opt
index 2fd3996edba..bdc878f35ad 100644
--- a/gcc/config/gcn/gcn.opt
+++ b/gcc/config/gcn/gcn.opt
@@ -34,6 +34,9 @@ Enum(gpu_type) String(fiji) Value(PROCESSOR_FIJI)
 EnumValue
 Enum(gpu_type) String(gfx900) Value(PROCESSOR_VEGA)
 
+EnumValue
+Enum(gpu_type) String(gfx906) Value(PROCESSOR_VEGA)
+
 march=
 Target RejectNegative Joined ToLower Enum(gpu_type) Var(gcn_arch) 
Init(PROCESSOR_CARRIZO)
 Specify the name of the target GPU.
diff --git a/gcc/config/gcn/t-gcn-hsa b/gcc/config/gcn/t-gcn-hsa
index 085ba429c9d..1600a586ac4 100644
--- a/gcc/config/gcn/t-gcn-hsa
+++ b/gcc/config/gcn/t-gcn-hsa
@@ -42,8 +42,8 @@ ALL_HOST_OBJS += gcn-run.o
 gcn-run$(exeext): gcn-run.o
        +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $< -ldl
 
-MULTILIB_OPTIONS = march=gfx900
-MULTILIB_DIRNAMES = gcn5
+MULTILIB_OPTIONS = march=gfx900 march=gfx906
+MULTILIB_DIRNAMES = gfx900 gfx906
 
 PASSES_EXTRA += $(srcdir)/config/gcn/gcn-passes.def
 gcn-tree.o: $(srcdir)/config/gcn/gcn-tree.c
</cut>
_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to