From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101941 invoked by alias); 14 May 2017 07:37:55 -0000 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 Received: (qmail 101926 invoked by uid 89); 14 May 2017 07:37:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Received:Sun, Hx-languages-length:846 X-HELO: mail-ua0-f181.google.com Received: from mail-ua0-f181.google.com (HELO mail-ua0-f181.google.com) (209.85.217.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 14 May 2017 07:37:52 +0000 Received: by mail-ua0-f181.google.com with SMTP id j17so64702115uag.3 for ; Sun, 14 May 2017 00:37:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MI55BvGjI3l52nGcyit6Y/matAxd/W7vHhOaV506Znc=; b=i5aZFA6vGEe4QtXaQP3nJaLYmuB8IjqveRbDKJ3IPPbC6Dl61in+R2/U4wwMpB4UTe 5pb+cZ8EhcQ3EZU0LUU5Wc/OsErXAAF4oWnT+7Fdfzdtmubmp9YdTXK99mQM7pTtbbgs x/b4ni7/MIyzL6eMkuSZ8Ph1a5cbk1mjU1GTw2wbGonLw4+KaHJK65CaTeULjfspKNgG sZ3dd7dpqwkON3h7hfWiFuGNa9E2RN4CmuGD2TJx/6ZSiH1DDvdSKQYghoyEAxI/1Fr6 WvecUsU8u2r4G1aDqesUiFAWiqU7HgVwy3lhc3ThsLkubD+0UN7rzk1r2WFIN1KFbeaa GtTg== X-Gm-Message-State: AODbwcAm5SxWi0NmhXkMsMBvxSobjWG70P4vviKQaKfIGT9kRf/eBaQC ftjAcmHRBV2D+Xu7f70ZsPoDxqH4fw== X-Received: by 10.176.75.29 with SMTP id h29mr106719uaf.40.1494747473793; Sun, 14 May 2017 00:37:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.48.200 with HTTP; Sun, 14 May 2017 00:37:53 -0700 (PDT) In-Reply-To: <4E89A029A0F8D443B436A5167BA3C53F19949D53@IRSMSX101.ger.corp.intel.com> References: <4E89A029A0F8D443B436A5167BA3C53F19949D53@IRSMSX101.ger.corp.intel.com> From: Uros Bizjak Date: Sun, 14 May 2017 07:42:00 -0000 Message-ID: Subject: Re: [PATCH][X86] Add missing xgetbv xsetbv intrinsics To: "Koval, Julia" Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2017-05/txt/msg01113.txt.bz2 On Fri, May 12, 2017 at 12:29 PM, Koval, Julia wrote: > Hi, > > This patch add these missing intrinsics: > _xsetbv > _xgetbv > > gcc/ > * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type. > * config/i386/i386-builtin.def (__builtin_ia32_xgetbv, > __builtin_ia32_xsetbv): New builtins. > * config/i386/i386.c (ix86_expand_special_args_builtin): Process new type. > (ix86_expand_builtin): Special expand for new intrinsics. > * config/i386/i386.md: (UNSPECV_XGETBV, UNSPECV_XSETBV): New. > (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New patterns. > * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics. > > gcc/testsuite > * gcc.target/i386/xgetsetbv.c: New test. > > Ok for trunk? Approved and committed to mainline SVN. Thanks, Uros.