Message ID | 20220119014015.GP2646553@tucnak |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BA8D73857C73 for <patchwork@sourceware.org>; Wed, 19 Jan 2022 01:40:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA8D73857C73 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1642556449; bh=/aRQj4PHwsgcDDhek6VuFoS3NSWne33a28vMJhXdza4=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=FWJ5euH5npfb6RI0Y6qFqArRbqwULUOIhvtEB/CwrxPVxbJojq6gJj4rQlOJg+IWa PZowwAwmHFm15+m5Iz9MzbiaT1QCaev9mbKXHwSYKfk+KyElN7f6+YK9OtILRfW3VK VeUgBTLK3jlVF6L217uloxzwPmWuG1CqpTUbzgMs= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 792443858032 for <gcc-patches@gcc.gnu.org>; Wed, 19 Jan 2022 01:40:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 792443858032 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-495-2RMd3JblMKuaj5zGhxrXNA-1; Tue, 18 Jan 2022 20:40:19 -0500 X-MC-Unique: 2RMd3JblMKuaj5zGhxrXNA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 69CB81853024; Wed, 19 Jan 2022 01:40:18 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.40.192.74]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CC13F5F707; Wed, 19 Jan 2022 01:40:17 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.16.1/8.16.1) with ESMTPS id 20J1eFs12000684 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 19 Jan 2022 02:40:15 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.16.1/8.16.1/Submit) id 20J1eFDl2000683; Wed, 19 Jan 2022 02:40:15 +0100 Date: Wed, 19 Jan 2022 02:40:15 +0100 To: Hongtao Liu <crazylht@gmail.com> Subject: [PATCH] i386: Fix *aes<aeswideklvariant>u8 Message-ID: <20220119014015.GP2646553@tucnak> References: <CA+OydW=3O9G1zCanjFD0LEJF0TkG2+szT2k0CYBKw0R1MTARVQ@mail.gmail.com> <CA+OydWm2KHJpPaL9J=WH+o4y8z-o+fe_u0Djn5Tnzn_xWWArpw@mail.gmail.com> <CAFULd4YPDeRe4trnxCJSvL5nGZV=i8qFWux6XuC_hWn_V881MA@mail.gmail.com> <CA+OydWke2-ePvV4Ozg=SXFZ52AKBnV4e1j61uh6kXp3_43GNjg@mail.gmail.com> <CAFULd4b2ovuOrFtqdvnSS6=1xuqSYLErfbOb8CSC3+dqgES70w@mail.gmail.com> <CA+OydWm+_TthmoEgk-4yn4Z32=yCjtkfmikEASB35K-4Ny8wkg@mail.gmail.com> <CAFULd4Zfo5iOcoumkwbDmwy7DeDww4rDecizwAZ-P0R8SSTtCg@mail.gmail.com> <CAMZc-bzxiitDEvkPn-q6nWzRK=hkECgDgFyj3tQyVqXgrTeWWw@mail.gmail.com> <20220119000016.GO2646553@tucnak> <CAMZc-bwa38c6kckHMtLKA176tRz-c0Z9Nq1Y9UrUmn5M5Yz9cw@mail.gmail.com> MIME-Version: 1.0 In-Reply-To: <CAMZc-bwa38c6kckHMtLKA176tRz-c0Z9Nq1Y9UrUmn5M5Yz9cw@mail.gmail.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=4.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, UNWANTED_LANGUAGE_BODY autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Jakub Jelinek via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Jakub Jelinek <jakub@redhat.com> Cc: GCC Patches <gcc-patches@gcc.gnu.org>, Hongyu Wang <hongyu.wang@intel.com> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Series |
i386: Fix *aes<aeswideklvariant>u8
|
|
Commit Message
Jakub Jelinek
Jan. 19, 2022, 1:40 a.m. UTC
Hi! On Wed, Jan 19, 2022 at 09:09:41AM +0800, Hongtao Liu wrote: > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? > Yes, thanks. Thanks. Committed. grep '{[^|}]*}"' *.md found another spot, though dunno if we have sufficient effective targets etc. to add an -masm=intel test for it (and my installed binutils doesn't support it anyway). Binutils trunk testsuite shows the argument isn't omitted even in the Intel syntax: grep aesencwide *.s keylocker.s: aesencwide128kl 126(%edx) keylocker.s: aesencwide256kl 126(%edx) keylocker.s: aesencwide128kl [edx+126] keylocker.s: aesencwide256kl [edx+126] property-10.s: aesencwide128kl (%eax) x86-64-keylocker.s: aesencwide128kl 126(%rdx) x86-64-keylocker.s: aesencwide256kl 126(%rdx) x86-64-keylocker.s: aesencwide128kl [rdx+126] x86-64-keylocker.s: aesencwide256kl [rdx+126] and doesn't use any WHATEVER PTR. Ok for trunk? 2022-01-19 Jakub Jelinek <jakub@redhat.com> * config/i386/sse.md (*aes<aeswideklvariant>u*): Use %0 instead of {%0}. Jakub
Comments
On Wed, Jan 19, 2022 at 9:40 AM Jakub Jelinek <jakub@redhat.com> wrote: > > Hi! > > On Wed, Jan 19, 2022 at 09:09:41AM +0800, Hongtao Liu wrote: > > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? > > Yes, thanks. > > Thanks. Committed. > grep '{[^|}]*}"' *.md > > found another spot, though dunno if we have sufficient effective targets > etc. to add an -masm=intel test for it (and my installed binutils doesn't > support it anyway). > Binutils trunk testsuite shows the argument isn't omitted even in the Intel > syntax: > grep aesencwide *.s > keylocker.s: aesencwide128kl 126(%edx) > keylocker.s: aesencwide256kl 126(%edx) > keylocker.s: aesencwide128kl [edx+126] > keylocker.s: aesencwide256kl [edx+126] > property-10.s: aesencwide128kl (%eax) > x86-64-keylocker.s: aesencwide128kl 126(%rdx) > x86-64-keylocker.s: aesencwide256kl 126(%rdx) > x86-64-keylocker.s: aesencwide128kl [rdx+126] > x86-64-keylocker.s: aesencwide256kl [rdx+126] > and doesn't use any WHATEVER PTR. > > Ok for trunk? Yes, thanks again. > > 2022-01-19 Jakub Jelinek <jakub@redhat.com> > > * config/i386/sse.md (*aes<aeswideklvariant>u*): Use %0 instead of > {%0}. > > --- gcc/config/i386/sse.md.jj 2022-01-19 02:23:59.762022574 +0100 > +++ gcc/config/i386/sse.md 2022-01-19 02:32:07.953324150 +0100 > @@ -28437,7 +28437,7 @@ (define_insn "*aes<aeswideklvariant>u8" > [(match_operand:BLK 0 "memory_operand" "m")] > AESDECENCWIDEKL))])] > "TARGET_WIDEKL" > - "aes<aeswideklvariant>\t{%0}" > + "aes<aeswideklvariant>\t%0" > [(set_attr "type" "other")]) > > ;; Modes handled by broadcast patterns. NB: Allow V64QI and V32HI with > > > Jakub >
--- gcc/config/i386/sse.md.jj 2022-01-19 02:23:59.762022574 +0100 +++ gcc/config/i386/sse.md 2022-01-19 02:32:07.953324150 +0100 @@ -28437,7 +28437,7 @@ (define_insn "*aes<aeswideklvariant>u8" [(match_operand:BLK 0 "memory_operand" "m")] AESDECENCWIDEKL))])] "TARGET_WIDEKL" - "aes<aeswideklvariant>\t{%0}" + "aes<aeswideklvariant>\t%0" [(set_attr "type" "other")]) ;; Modes handled by broadcast patterns. NB: Allow V64QI and V32HI with