The attached patch fixes an md test execution problem on S/390. The tests would be built with -march=z13 but executed even on older machines. Build with -march=native instead, so executing the tests should work on any machine generation.
Tested on s390x biarch, but not bootstrapped or regression tested. Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany
gcc/ChangeLog-s390exp * gcc.target/s390/s390.exp: Run md tests with -march=native instead of -march=z13.
>From 3d7b78393a1e1859b4f453f01194ed0ff8fa57c8 Mon Sep 17 00:00:00 2001 From: Dominik Vogt <v...@linux.vnet.ibm.com> Date: Tue, 13 Dec 2016 10:21:08 +0100 Subject: [PATCH] S/390: Run md tests with -march=native instead of -march=z13. Otherwise the tests are built and _run_ with -march=z13 on machines prior to z13, possibly causing failures due to illegal instructions. --- gcc/testsuite/gcc.target/s390/s390.exp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.target/s390/s390.exp b/gcc/testsuite/gcc.target/s390/s390.exp index 450dcaf..9393478 100644 --- a/gcc/testsuite/gcc.target/s390/s390.exp +++ b/gcc/testsuite/gcc.target/s390/s390.exp @@ -112,11 +112,11 @@ torture-finish # Additional md torture tests. torture-init set MD_TEST_OPTS [list \ - {-Os -march=z900} {-Os -march=z13} \ - {-O0 -march=z900} {-O0 -march=z13} \ - {-O1 -march=z900} {-O1 -march=z13} \ - {-O2 -march=z900} {-O2 -march=z13} \ - {-O3 -march=z900} {-O3 -march=z13}] + {-Os -march=z900} {-Os -march=native} \ + {-O0 -march=z900} {-O0 -march=native} \ + {-O1 -march=z900} {-O1 -march=native} \ + {-O2 -march=z900} {-O2 -march=native} \ + {-O3 -march=z900} {-O3 -march=native}] set-torture-options $MD_TEST_OPTS gcc-dg-runtest [lsort [glob -nocomplain $md_tests]] "" $DEFAULT_CFLAGS torture-finish -- 2.3.0