From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 5EA643857340 for ; Tue, 11 Jun 2024 15:45:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5EA643857340 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5EA643857340 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718120717; cv=none; b=QAhu0FE7GL4lxXtID5YHXKI2IdvdQlGU5cky42jxW5WSuP1qRs7Lcx+HhyKPx7n94mfPaYJNo8L29NE9okqOy97fpGHcvGAAO8D8Up2yD6edbp788e11AWhBT7BbaiWcW4pyktGGvzgGS5wE0K25MM23JWXr6155Y6yHtx0QCqs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718120717; c=relaxed/simple; bh=yxGYSafRb3yhfojhIJfc+XaUZCc0aOhvDLL/I2FfzuQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=V9q3Qmzlf/EaaJh5bMHv5cCiduoZTNOlIf24L0PQNPxOKcGGy/VAnsLwF4xz/pso09T8HkiQph1q6w0ZZFWZ3VEFWGQQfaaocOjbRm7H8ef5Ktq2PY3NFmA+qfJfxAbOsVY+w/ffC59N2izLRnLrf0HOCeqQyXsbdrulKl+xl8c= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718120715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M6vrp9QnEznKoqQ6O9qNWi+Ng73AnsfoWA6xtK5pqX4=; b=MfeiUlZx7E8NsSAsW52qDbTAEpw66wPdY4vI4B85BZRCo3zPhFG0uqzPrwBnZC5SlSgRMj URRncjsfZPkEpjR0jt5KqH856px2/hW3XZJFWme0ofYZ5I9tbDtxB7I5ZRRPwnkuGtAPRX Qeo72kLhkvjYrA2OgQaybBR0RTdXhhM= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-634-lx5RN_nSPZ6UOqtu5Xt6Fw-1; Tue, 11 Jun 2024 11:45:13 -0400 X-MC-Unique: lx5RN_nSPZ6UOqtu5Xt6Fw-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4EF2D19560AA for ; Tue, 11 Jun 2024 15:45:12 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.96.134.135]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DDA361956087; Tue, 11 Jun 2024 15:45:10 +0000 (UTC) From: Guinevere Larsen To: gdb-patches@sourceware.org Cc: Guinevere Larsen Subject: [PATCH v2 0/3] Small step in supporting AVX instructions Date: Tue, 11 Jun 2024 12:44:57 -0300 Message-ID: <20240611154500.259754-1-blarsen@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This patch series is the first, very small, step in supporting AVX and AVX2 instructions for the record-full target. It is important that we support it since glibc has been using avx instructions for a long time (at least fedora 21), so depending on which functions an inferior uses, they might be very inconvenienced. Patch 1 adds capability to identify the VEX prefix, but no instruction support. Patches 2 and 3 add support for a total of 10 instructions, which covers around 5% of all AVX instructions used by system libraries in my fedora 39 box. While this support is extremely minimal, I figured I could propose the patch series early so it was open for others with more free time could help contributing to this :) --- Changes for v2: * stopped using "error" when finding incorrect encoding in vmov instructions, as suggested by Tom Tromey. * Changed i386-avx-reverse test, to stop failing with clang. * Changed the KFAIL in gdb.reverse/step-precsave, so we don't get new FAILs while AVX support is incomplete. Guinevere Larsen (3): gdb: Start supporting AVX instruction gdb/record: add support to vmovd and vmovq instructions gdb/record: add support to AVX unpack instructions gdb/amd64-tdep.c | 3 +- gdb/i386-tdep.c | 173 ++++++++++++++- gdb/i386-tdep.h | 2 + gdb/testsuite/gdb.reverse/i386-avx-reverse.c | 138 ++++++++++++ .../gdb.reverse/i386-avx-reverse.exp | 203 ++++++++++++++++++ gdb/testsuite/gdb.reverse/step-precsave.exp | 4 +- 6 files changed, 518 insertions(+), 5 deletions(-) create mode 100644 gdb/testsuite/gdb.reverse/i386-avx-reverse.c create mode 100644 gdb/testsuite/gdb.reverse/i386-avx-reverse.exp -- 2.45.1