{"id":818513,"url":"http://patchwork.ozlabs.org/api/patches/818513/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/20170926103751.21907-2-krebbel@linux.vnet.ibm.com/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/projects/17/?format=json","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170926103751.21907-2-krebbel@linux.vnet.ibm.com>","list_archive_url":null,"date":"2017-09-26T10:37:44","name":"[1/8] Enable vect testcases on S/390.","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"92e9f6d1bbd881422033e3f3ca7b4530e088a6a6","submitter":{"id":4421,"url":"http://patchwork.ozlabs.org/api/people/4421/?format=json","name":"Andreas Krebbel","email":"krebbel@linux.vnet.ibm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/20170926103751.21907-2-krebbel@linux.vnet.ibm.com/mbox/","series":[{"id":5096,"url":"http://patchwork.ozlabs.org/api/series/5096/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=5096","date":"2017-09-26T10:37:43","name":"S/390: Enable vect tests on S/390 + fixes and improvements","version":1,"mbox":"http://patchwork.ozlabs.org/series/5096/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/818513/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/818513/checks/","tags":{},"related":[],"headers":{"Return-Path":"<gcc-patches-return-462946-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-462946-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"pe9HtT34\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y1cqf5YNhz9t6C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 26 Sep 2017 20:38:22 +1000 (AEST)","(qmail 101008 invoked by alias); 26 Sep 2017 10:38:02 -0000","(qmail 100815 invoked by uid 89); 26 Sep 2017 10:38:01 -0000","from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com)\n\t(148.163.158.5) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tTue, 26 Sep 2017 10:37:59 +0000","from pps.filterd (m0098414.ppops.net [127.0.0.1])\tby\n\tmx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv8QAZN3S133994\tfor <gcc-patches@gcc.gnu.org>;\n\tTue, 26 Sep 2017 06:37:57 -0400","from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com\n\t[195.75.94.110])\tby mx0b-001b2d01.pphosted.com with ESMTP id\n\t2d7n99g5ty-1\t(version=TLSv1.2 cipher=AES256-SHA bits=256\n\tverify=NOT)\tfor <gcc-patches@gcc.gnu.org>;\n\tTue, 26 Sep 2017 06:37:57 -0400","from localhost\tby e06smtp14.uk.ibm.com with IBM ESMTP SMTP\n\tGateway: Authorized Use Only! Violators will be\n\tprosecuted\tfor <gcc-patches@gcc.gnu.org> from\n\t<krebbel@linux.vnet.ibm.com>; Tue, 26 Sep 2017 11:37:55 +0100","from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197)\tby\n\te06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP\n\tGateway: Authorized Use Only! Violators will be prosecuted;\n\tTue, 26 Sep 2017 11:37:53 +0100","from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com\n\t[9.149.105.232])\tby b06cxnps4075.portsmouth.uk.ibm.com\n\t(8.14.9/8.14.9/NCO v10.0) with ESMTP id v8QAbrEY20709538\tfor\n\t<gcc-patches@gcc.gnu.org>; Tue, 26 Sep 2017 10:37:53 GMT","from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1])\tby IMSVA\n\t(Postfix) with ESMTP id 4D31C52041\tfor <gcc-patches@gcc.gnu.org>;\n\tTue, 26 Sep 2017 10:32:43 +0100 (BST)","from maggie.boeblingen.de.ibm.com (unknown [9.152.212.134])\tby\n\td06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id\n\t304AB5203F\tfor <gcc-patches@gcc.gnu.org>;\n\tTue, 26 Sep 2017 10:32:43 +0100 (BST)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:from\n\t:to:subject:date:in-reply-to:references:message-id; q=dns; s=\n\tdefault; b=duE3DrumKy80U0Xo6CO/CJSgJHSSGw4b5hWI3zxnWCVWcpdQsiaFU\n\tzitUo7QiXrhnOeTWRek88PB+HzrC/GCQLxS8XPqR32mcZjEH6pcQ0vitd5EauDej\n\teoTl2wDppaYRC6mHDjxQSWhIWR2TbJ++ZA7dsLbgSJhlfR0Jtnyhfc=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:from\n\t:to:subject:date:in-reply-to:references:message-id; s=default;\n\tbh=mgFhBREryM4fOlLNauYZk/f19Cs=; b=pe9HtT346cef+ofoLBGRkyigWekY\n\tNWIzsYhwRd7dpAdz9Z8ASiItzcdI6VEbyjhPS9brGiDilllIwehafGhlCwTXQt/s\n\tUME9G69ZPiTHyDfZO0aLJOYrgeW22WzdZMHURaiJcmHU8i6+3cPWGxsEp2EEGcfI\n\taTApMWnpxTA7p90=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-24.6 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tKAM_LAZY_DOMAIN_SECURITY,\n\tRCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=","X-HELO":"mx0a-001b2d01.pphosted.com","From":"Andreas Krebbel <krebbel@linux.vnet.ibm.com>","To":"gcc-patches@gcc.gnu.org","Subject":"[PATCH 1/8] Enable vect testcases on S/390.","Date":"Tue, 26 Sep 2017 12:37:44 +0200","In-Reply-To":"<20170926103751.21907-1-krebbel@linux.vnet.ibm.com>","References":"<20170926103751.21907-1-krebbel@linux.vnet.ibm.com>","X-TM-AS-GCONF":"00","x-cbid":"17092610-0016-0000-0000-000004F02822","X-IBM-AV-DETECTION":"SAVI=unused REMOTE=unused XFE=unused","x-cbparentid":"17092610-0017-0000-0000-0000282A7424","Message-Id":"<20170926103751.21907-2-krebbel@linux.vnet.ibm.com>","X-Proofpoint-Virus-Version":"vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-09-26_03:, , signatures=0","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=1 malwarescore=0 phishscore=0\n\tadultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx\n\tscancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1709260158","X-IsSubscribed":"yes"},"content":"Add s390 platform checks where appropriate.\n\ngcc/testsuite/ChangeLog:\n\n2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>\n\n\t* lib/target-supports.exp: Enable tests for S/390.\n---\n gcc/testsuite/ChangeLog               |   4 ++\n gcc/testsuite/lib/target-supports.exp | 131 ++++++++++++++++++++++++++--------\n 2 files changed, 106 insertions(+), 29 deletions(-)","diff":"diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog\nindex 6401706..72cf8c3 100644\n--- a/gcc/testsuite/ChangeLog\n+++ b/gcc/testsuite/ChangeLog\n@@ -1,3 +1,7 @@\n+2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>\n+\n+\t* lib/target-supports.exp: Enable tests for S/390.\n+\n 2017-09-26  Richard Biener  <rguenther@suse.de>\n \n \tPR tree-optimization/82320\ndiff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp\nindex 7834c30..8b25797 100644\n--- a/gcc/testsuite/lib/target-supports.exp\n+++ b/gcc/testsuite/lib/target-supports.exp\n@@ -3066,7 +3066,9 @@ proc check_effective_target_vect_int { } {\n \t     || [is-effective-target arm_neon]\n \t     || ([istarget mips*-*-*]\n \t\t && ([et-is-effective-target mips_loongson]\n-\t\t     || [et-is-effective-target mips_msa])) } {\n+\t\t     || [et-is-effective-target mips_msa]))\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_int_saved($et_index) 1\n \t}\n     }\n@@ -5069,7 +5071,9 @@ proc check_effective_target_vect_shift { } {\n \t     || [is-effective-target arm_neon]\n \t     || ([istarget mips*-*-*]\n \t\t && ([et-is-effective-target mips_msa]\n-\t\t     || [et-is-effective-target mips_loongson])) } {\n+\t\t     || [et-is-effective-target mips_loongson]))\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t   set et_vect_shift_saved($et_index) 1\n \t}\n     }\n@@ -5087,7 +5091,9 @@ proc check_effective_target_whole_vector_shift { } {\n \t || ([is-effective-target arm_neon]\n \t     && [check_effective_target_arm_little_endian])\n \t || ([istarget mips*-*-*]\n-\t     && [et-is-effective-target mips_loongson]) } {\n+\t     && [et-is-effective-target mips_loongson])\n+\t || ([istarget s390*-*-*]\n+\t     && [check_effective_target_s390_vx]) } {\n \tset answer 1\n     } else {\n \tset answer 0\n@@ -5133,7 +5139,9 @@ proc check_effective_target_vect_shift_char { } {\n              && ![istarget powerpc-*-linux*paired*])\n \t     || [is-effective-target arm_neon]\n \t     || ([istarget mips*-*-*]\n-\t\t && [et-is-effective-target mips_msa]) } {\n+\t\t && [et-is-effective-target mips_msa])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t   set et_vect_shift_char_saved($et_index) 1\n \t}\n     }\n@@ -5156,7 +5164,9 @@ proc check_effective_target_vect_long { } {\n \t || ([istarget sparc*-*-*] && [check_effective_target_ilp32])\n \t || [istarget aarch64*-*-*]\n \t || ([istarget mips*-*-*]\n-\t      && [et-is-effective-target mips_msa]) } {\n+\t      && [et-is-effective-target mips_msa])\n+\t || ([istarget s390*-*-*]\n+\t     && [check_effective_target_s390_vx]) } {\n \tset answer 1\n     } else {\n \tset answer 0\n@@ -5219,7 +5229,9 @@ proc check_effective_target_vect_double { } {\n \t     || [istarget spu-*-*]\n \t     || ([istarget powerpc*-*-*] && [check_vsx_hw_available])\n \t     || ([istarget mips*-*-*]\n-\t\t && [et-is-effective-target mips_msa]) } {\n+\t\t && [et-is-effective-target mips_msa])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_double_saved($et_index) 1\n \t}\n     }\n@@ -5243,7 +5255,9 @@ proc check_effective_target_vect_long_long { } {\n \tset et_vect_long_long_saved($et_index) 0\n \tif { [istarget i?86-*-*] || [istarget x86_64-*-*]\n \t     || ([istarget mips*-*-*]\n-\t\t && [et-is-effective-target mips_msa]) } {\n+\t\t && [et-is-effective-target mips_msa])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t   set et_vect_long_long_saved($et_index) 1\n         }\n     }\n@@ -5343,7 +5357,9 @@ proc check_effective_target_vect_perm { } {\n \t     || [istarget i?86-*-*] || [istarget x86_64-*-*]\n \t     || ([istarget mips*-*-*]\n \t\t && ([et-is-effective-target mpaired_single]\n-\t\t     || [et-is-effective-target mips_msa])) } {\n+\t\t     || [et-is-effective-target mips_msa]))\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_perm_saved($et_index) 1\n         }\n     }\n@@ -5372,7 +5388,9 @@ proc check_effective_target_vect_perm_byte { } {\n \t     || [istarget powerpc*-*-*]\n \t     || [istarget spu-*-*]\n \t     || ([istarget mips-*.*]\n-\t\t && [et-is-effective-target mips_msa]) } {\n+\t\t && [et-is-effective-target mips_msa])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_perm_byte_saved($et_index) 1\n         }\n     }\n@@ -5401,7 +5419,9 @@ proc check_effective_target_vect_perm_short { } {\n \t     || [istarget powerpc*-*-*]\n \t     || [istarget spu-*-*]\n \t     || ([istarget mips*-*-*]\n-\t\t  && [et-is-effective-target mips_msa]) } {\n+\t\t  && [et-is-effective-target mips_msa])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_perm_short_saved($et_index) 1\n         }\n     }\n@@ -5560,7 +5580,9 @@ proc check_effective_target_vect_widen_mult_qi_to_hi { } {\n \t}\n         if { [istarget powerpc*-*-*]\n               || [istarget aarch64*-*-*]\n-              || [is-effective-target arm_neon] } {\n+              || [is-effective-target arm_neon]\n+\t      || ([istarget s390*-*-*]\n+\t\t  && [check_effective_target_s390_vx]) } {\n \t    set et_vect_widen_mult_qi_to_hi_saved($et_index) 1\n         }\n     }\n@@ -5597,7 +5619,9 @@ proc check_effective_target_vect_widen_mult_hi_to_si { } {\n \t     || [istarget ia64-*-*]\n \t     || [istarget aarch64*-*-*]\n \t     || [istarget i?86-*-*] || [istarget x86_64-*-*]\n-\t     || [is-effective-target arm_neon] } {\n+\t     || [is-effective-target arm_neon]\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_widen_mult_hi_to_si_saved($et_index) 1\n         }\n     }\n@@ -5622,7 +5646,9 @@ proc check_effective_target_vect_widen_mult_qi_to_hi_pattern { } {\n \tset et_vect_widen_mult_qi_to_hi_pattern_saved($et_index) 0\n         if { [istarget powerpc*-*-*]\n               || ([is-effective-target arm_neon]\n-\t\t  && [check_effective_target_arm_little_endian]) } {\n+\t\t  && [check_effective_target_arm_little_endian])\n+\t      || ([istarget s390*-*-*]\n+\t\t  && [check_effective_target_s390_vx]) } {\n \t    set et_vect_widen_mult_qi_to_hi_pattern_saved($et_index) 1\n         }\n     }\n@@ -5650,7 +5676,9 @@ proc check_effective_target_vect_widen_mult_hi_to_si_pattern { } {\n \t     || [istarget ia64-*-*]\n \t     || [istarget i?86-*-*] || [istarget x86_64-*-*]\n \t     || ([is-effective-target arm_neon]\n-\t\t && [check_effective_target_arm_little_endian]) } {\n+\t\t && [check_effective_target_arm_little_endian])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_widen_mult_hi_to_si_pattern_saved($et_index) 1\n         }\n     }\n@@ -5674,7 +5702,9 @@ proc check_effective_target_vect_widen_mult_si_to_di_pattern { } {\n     } else {\n \tset et_vect_widen_mult_si_to_di_pattern_saved($et_index) 0\n         if {[istarget ia64-*-*]\n-\t    || [istarget i?86-*-*] || [istarget x86_64-*-*] } {\n+\t    || [istarget i?86-*-*] || [istarget x86_64-*-*]\n+\t    || ([istarget s390*-*-*]\n+\t\t&& [check_effective_target_s390_vx]) } {\n \t    set et_vect_widen_mult_si_to_di_pattern_saved($et_index) 1\n         }\n     }\n@@ -5847,7 +5877,9 @@ proc check_effective_target_vect_pack_trunc { } {\n              || ([istarget arm*-*-*] && [check_effective_target_arm_neon_ok]\n \t\t && [check_effective_target_arm_little_endian])\n \t     || ([istarget mips*-*-*]\n-\t\t && [et-is-effective-target mips_msa]) } {\n+\t\t && [et-is-effective-target mips_msa])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_pack_trunc_saved($et_index) 1\n         }\n     }\n@@ -5877,7 +5909,9 @@ proc check_effective_target_vect_unpack { } {\n \t     || ([istarget mips*-*-*]\n \t\t && [et-is-effective-target mips_msa])\n              || ([istarget arm*-*-*] && [check_effective_target_arm_neon_ok]\n-\t\t && [check_effective_target_arm_little_endian]) } {\n+\t\t && [check_effective_target_arm_little_endian])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_unpack_saved($et_index) 1\n         }\n     }\n@@ -5947,7 +5981,9 @@ proc check_effective_target_vect_hw_misalign { } {\n \tif { [istarget i?86-*-*] || [istarget x86_64-*-*]\n \t     || ([istarget powerpc*-*-*] && [check_p8vector_hw_available])\n \t     || [istarget aarch64*-*-*]\n-\t     || ([istarget mips*-*-*] && [et-is-effective-target mips_msa]) } {\n+\t     || ([istarget mips*-*-*] && [et-is-effective-target mips_msa])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t  set et_vect_hw_misalign_saved($et_index) 1\n \t}\n \tif { [istarget arm*-*-*] } {\n@@ -6121,7 +6157,9 @@ proc check_effective_target_vect_condition { } {\n \t     || ([istarget mips*-*-*]\n \t\t && [et-is-effective-target mips_msa])\n \t     || ([istarget arm*-*-*]\n-\t\t && [check_effective_target_arm_neon_ok]) } {\n+\t\t && [check_effective_target_arm_neon_ok])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t   set et_vect_cond_saved($et_index) 1\n \t}\n     }\n@@ -6146,7 +6184,9 @@ proc check_effective_target_vect_cond_mixed { } {\n \t     || [istarget aarch64*-*-*]\n \t     || [istarget powerpc*-*-*] \n \t     || ([istarget mips*-*-*]\n-\t\t && [et-is-effective-target mips_msa]) } {\n+\t\t && [et-is-effective-target mips_msa])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t   set et_vect_cond_mixed_saved($et_index) 1\n \t}\n     }\n@@ -6172,7 +6212,9 @@ proc check_effective_target_vect_char_mult { } {\n \t     || [check_effective_target_arm32]\n \t     || [check_effective_target_powerpc_altivec]\n \t     || ([istarget mips*-*-*]\n-\t\t && [et-is-effective-target mips_msa]) } {\n+\t\t && [et-is-effective-target mips_msa])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t   set et_vect_char_mult_saved($et_index) 1\n \t}\n     }\n@@ -6200,7 +6242,9 @@ proc check_effective_target_vect_short_mult { } {\n \t     || [check_effective_target_arm32]\n \t     || ([istarget mips*-*-*]\n \t\t && ([et-is-effective-target mips_msa]\n-\t\t     || [et-is-effective-target mips_loongson])) } {\n+\t\t     || [et-is-effective-target mips_loongson]))\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t   set et_vect_short_mult_saved($et_index) 1\n \t}\n     }\n@@ -6227,7 +6271,9 @@ proc check_effective_target_vect_int_mult { } {\n \t     || [istarget aarch64*-*-*]\n \t     || ([istarget mips*-*-*]\n \t\t && [et-is-effective-target mips_msa])\n-\t     || [check_effective_target_arm32] } {\n+\t     || [check_effective_target_arm32]\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t   set et_vect_int_mult_saved($et_index) 1\n \t}\n     }\n@@ -6256,7 +6302,9 @@ proc check_effective_target_vect_extract_even_odd { } {\n              || [istarget spu-*-*]\n \t     || ([istarget mips*-*-*]\n \t\t && ([et-is-effective-target mips_msa]\n-\t\t     || [et-is-effective-target mpaired_single])) } {\n+\t\t     || [et-is-effective-target mpaired_single]))\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_extract_even_odd_saved($et_index) 1\n         }\n     }\n@@ -6284,7 +6332,9 @@ proc check_effective_target_vect_interleave { } {\n              || [istarget spu-*-*]\n \t     || ([istarget mips*-*-*]\n \t\t && ([et-is-effective-target mpaired_single]\n-\t\t     || [et-is-effective-target mips_msa])) } {\n+\t\t     || [et-is-effective-target mips_msa]))\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_interleave_saved($et_index) 1\n         }\n     }\n@@ -6401,7 +6451,9 @@ proc check_effective_target_sqrt_insn { } {\n \tif { [istarget i?86-*-*] || [istarget x86_64-*-*]\n \t     || [istarget powerpc*-*-*]\n \t     || [istarget aarch64*-*-*]\n-\t     || ([istarget arm*-*-*] && [check_effective_target_arm_vfp_ok]) } {\n+\t     || ([istarget arm*-*-*] && [check_effective_target_arm_vfp_ok])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t   set et_sqrt_insn_saved 1\n \t}\n     }\n@@ -6422,7 +6474,9 @@ proc check_effective_target_vect_call_sqrtf { } {\n \tset et_vect_call_sqrtf_saved($et_index) 0\n \tif { [istarget aarch64*-*-*]\n \t     || [istarget i?86-*-*] || [istarget x86_64-*-*]\n-\t     || ([istarget powerpc*-*-*] && [check_vsx_hw_available]) } {\n+\t     || ([istarget powerpc*-*-*] && [check_vsx_hw_available])\n+\t     || ([istarget s390*-*-*]\n+\t\t && [check_effective_target_s390_vx]) } {\n \t    set et_vect_call_sqrtf_saved($et_index) 1\n \t}\n     }\n@@ -8027,6 +8081,25 @@ proc check_vect_support_and_set_flags { } {\n         }\n     } elseif [istarget \"aarch64*-*-*\"] {\n         set dg-do-what-default run\n+    } elseif [istarget s390*-*-*] {\n+\t# The S/390 backend set a default of 2 for that value.\n+\t# Override it to have the same situation as with other\n+\t# targets.\n+\tlappend DEFAULT_VECTCFLAGS \"--param\" \"min-vect-loop-bound=1\"\n+\tlappend DEFAULT_VECTCFLAGS \"--param\" \"max-unrolled-insns=200\"\n+\tlappend DEFAULT_VECTCFLAGS \"--param\" \"max-unroll-times=8\"\n+\tlappend DEFAULT_VECTCFLAGS \"--param\" \"max-completely-peeled-insns=200\"\n+\tlappend DEFAULT_VECTCFLAGS \"--param\" \"max-completely-peel-times=16\"\n+        if [check_effective_target_s390_vxe] {\n+\t    lappend DEFAULT_VECTCFLAGS \"-march=z14\" \"-mzarch\"\n+            set dg-do-what-default run\n+\t} elseif [check_effective_target_s390_vx] {\n+\t    lappend DEFAULT_VECTCFLAGS \"-march=z13\" \"-mzarch\"\n+            set dg-do-what-default run\n+        } else {\n+\t    lappend DEFAULT_VECTCFLAGS \"-march=z14\" \"-mzarch\"\n+            set dg-do-what-default compile\n+        }\n     } else {\n         return 0\n     }\n@@ -8453,7 +8526,7 @@ proc check_effective_target_s390_vx { } {\n     } \"-march=z13 -mzarch\" ]\n }\n \n-# Same as above but for the arch12 vector enhancement facility. Test\n+# Same as above but for the z14 vector enhancement facility. Test\n # is performed with the vector nand instruction.\n proc check_effective_target_s390_vxe { } {\n     if ![istarget s390*-*-*] then {\n@@ -8466,7 +8539,7 @@ proc check_effective_target_s390_vxe { } {\n \t    asm (\"vnn %%v24, %%v26, %%v28\" : : : \"v24\", \"v26\", \"v28\");\n \t    return 0;\n \t}\n-    } \"-march=arch12 -mzarch\" ]\n+    } \"-march=z14 -mzarch\" ]\n }\n \n #For versions of ARM architectures that have hardware div insn,\n","prefixes":["1/8"]}