From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26346 invoked by alias); 17 Jul 2012 20:07:24 -0000 Received: (qmail 26310 invoked by uid 22791); 17 Jul 2012 20:07:18 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from mailout09.t-online.de (HELO mailout09.t-online.de) (194.25.134.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Jul 2012 20:07:04 +0000 Received: from fwd54.aul.t-online.de (fwd54.aul.t-online.de ) by mailout09.t-online.de with smtp id 1SrE2w-0005R2-On; Tue, 17 Jul 2012 22:07:02 +0200 Received: from [192.168.0.100] (Zes6NUZG8h3YdeQU+NsqlnuPxSbFNW4cw1p5JslyvRuEJB5KIxaRpXC9yUtiqReZdL@[93.218.163.95]) by fwd54.t-online.de with esmtp id 1SrE2q-1QzFHE0; Tue, 17 Jul 2012 22:06:56 +0200 Message-ID: <1342555610.2213.20.camel@yam-132-YW-E178-FTW> Subject: [SH] Add test case for PR 38621 From: Oleg Endo To: gcc-patches Date: Tue, 17 Jul 2012 20:07:00 -0000 Content-Type: multipart/mixed; boundary="=-n6p5niXlQv7MHc7kfLdJ" Mime-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-07/txt/msg00772.txt.bz2 --=-n6p5niXlQv7MHc7kfLdJ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-length: 403 Hello, The attached patch adds the test case from comment #3 of PR 38621 to the test suite. Tested with make check-gcc RUNTESTFLAGS="compile.exp=pr38621.c --target_board=sh-sim \{-m2/-ml,-m2/-mb,-m2a/-mb,-m2a-single/-mb,-m4/-ml,-m4/-mb,-m4-single/-ml, -m4-single/-mb,-m4a-single/-ml,-m4a-single/-mb}" OK? Cheers, Oleg testsuite/ChangeLog: target PR/38621 * gcc.c-torture/compile/pr38621.c: New. --=-n6p5niXlQv7MHc7kfLdJ Content-Disposition: attachment; filename="pr38621_testcase.patch" Content-Type: text/x-patch; name="pr38621_testcase.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-length: 451 Index: gcc/testsuite/gcc.c-torture/compile/pr38621.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/pr38621.c (revision 0) +++ gcc/testsuite/gcc.c-torture/compile/pr38621.c (revision 0) @@ -0,0 +1,17 @@ +/* PR target/38621 */ +struct s +{ + char a[512]; + int b; + int c; +}; + +long long +foo (struct s *p, int m, int r) +{ + if (r == m) + p->b = 3; + p->c = 1; + return m; +} + --=-n6p5niXlQv7MHc7kfLdJ--