This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] S/390: Fix warning in "*movstr" pattern.
- From: Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org, vogt at linux dot vnet dot ibm dot com
- Cc: Ulrich Weigand <Ulrich dot Weigand at de dot ibm dot com>
- Date: Wed, 2 Dec 2015 09:59:10 +0100
- Subject: Re: [PATCH] S/390: Fix warning in "*movstr" pattern.
- Authentication-results: sourceware.org; auth=none
- References: <20151103171748 dot GA27406 at linux dot vnet dot ibm dot com> <20151103174728 dot 64047F82F at oc7340732750 dot ibm dot com> <20151104013914 dot GA4859 at linux dot vnet dot ibm dot com> <56409293 dot 1060603 at linux dot vnet dot ibm dot com> <20151130144537 dot GA21875 at linux dot vnet dot ibm dot com>
On 11/30/2015 03:45 PM, Dominik Vogt wrote:
> On Mon, Nov 09, 2015 at 01:33:23PM +0100, Andreas Krebbel wrote:
>> On 11/04/2015 02:39 AM, Dominik Vogt wrote:
>>> On Tue, Nov 03, 2015 at 06:47:28PM +0100, Ulrich Weigand wrote:
>>>> Dominik Vogt wrote:
+++ b/gcc/testsuite/gcc.target/s390/md/movstr-1.c
@@ -0,0 +1,11 @@
+/* Machine description pattern tests. */
+
+/* { dg-do assemble } */
+/* { dg-options "-dP -save-temps" } */
-save-temps is not necessary for a dg-do assemble test.
+# 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}]
+set-torture-options $MD_TEST_OPTS
+gcc-dg-runtest [lsort [glob -nocomplain $md_tests]] "" $DEFAULT_CFLAGS
torture-finish
Does it really make sense to use different -march options for the md/ tests? Whether a certain
pattern will match usually depends on the -march level. I would say the -march option needs to be
part of testcase.
-Andreas-