From patchwork Tue Oct 20 21:27:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 533194 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 681E01401DE for ; Wed, 21 Oct 2015 08:30:27 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=UpSpSloQ; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=LMzYuHCEx5hKesZ07b0dCSYW+3Fs8rRDQVLTxlpitGNjDiq9itaKJ mqrbJnb4UzGZWsq3ktZblDeY6AVAS3o3XlFGTqeJH7u/LOQ+dOYQax9wXg2/IPHF 1Ks/zAgaXP7D989tsUZJZxYEJGbepXIs3MWXbObbc32J6wrfpFGtOM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; s= default; bh=EKewHaKExfDpueZnCbceiukLMj8=; b=UpSpSloQlEfo6I9i11es 7RZ7Kh6351yR4rrTWBJYDE46TWdHBdBEfxSrhrX4zU8vQ/4sEXAfU7ytM4ir+vE8 +7BMpRKR14Fei9mX86dpz/1PGeQUoNgQdGRfT4Z/eRElafhiKtzWWvTNKx0Exs9d 8g/BD1EfrTgZRvhrZ9gxyG8= Received: (qmail 112987 invoked by alias); 20 Oct 2015 21:28:31 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 110846 invoked by uid 89); 20 Oct 2015 21:28:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f45.google.com Received: from mail-pa0-f45.google.com (HELO mail-pa0-f45.google.com) (209.85.220.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 20 Oct 2015 21:28:11 +0000 Received: by pacfv9 with SMTP id fv9so33500459pac.3 for ; Tue, 20 Oct 2015 14:28:09 -0700 (PDT) X-Received: by 10.68.87.161 with SMTP id az1mr6203142pbb.47.1445376489648; Tue, 20 Oct 2015 14:28:09 -0700 (PDT) Received: from bigtime.com (cpe-50-113-10-46.hawaii.res.rr.com. [50.113.10.46]) by smtp.gmail.com with ESMTPSA id de4sm5422136pbb.60.2015.10.20.14.28.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Oct 2015 14:28:09 -0700 (PDT) From: Richard Henderson To: gcc-patches@gcc.gnu.org Cc: richard.guenther@gmail.com Subject: [PATCH v2 11/13] Test case for conversion from __seg_tls:0 Date: Tue, 20 Oct 2015 11:27:11 -1000 Message-Id: <1445376433-14658-12-git-send-email-rth@redhat.com> In-Reply-To: <1445376433-14658-1-git-send-email-rth@redhat.com> References: <1445376433-14658-1-git-send-email-rth@redhat.com> X-IsSubscribed: yes --- gcc/testsuite/gcc.target/i386/addr-space-3.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/addr-space-3.c diff --git a/gcc/testsuite/gcc.target/i386/addr-space-3.c b/gcc/testsuite/gcc.target/i386/addr-space-3.c new file mode 100644 index 0000000..63f1f03 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/addr-space-3.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-O" } */ +/* { dg-final { scan-assembler "[fg]s:0" } } */ + +void test(int *y) +{ + int *x = (int __seg_tls *)0; + if (x == y) + asm(""); +}