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.129.124]) by sourceware.org (Postfix) with ESMTPS id 9382D3858D1E for ; Tue, 21 May 2024 20:28:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9382D3858D1E 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 9382D3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716323290; cv=none; b=ubl0GF24yLkCFGU5klmW1cNQ9rLZ8IWQn6wxbrzt8VTP1pyYQvGjDzmZvDXb/1TZuTlNhTiHmpuCROj8k4aajwZ2Rd7swLtRUEgt1yVr8b7czRMw12VFB9Q8Sf+0a/buo/N/gzUyPzjFNfn8k0CaqccMXE0QNomYaX7f8xq4EGE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716323290; c=relaxed/simple; bh=F+wwudUkLAHn6Cp9S2pqyIbjU5DXGvjsTFD3FqLR0eM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=DcS89Pht3ubQ9LK9MSVfdrLADvrXepC/hlADNGkKDhBHgNsI99oI0CMgfBO1cAe6dvz/sgmWLkSq9DJsArB6XytGpMorOAzhwB9xiCNER2ytJVXn6DBkHLR9JN5hxHLs9SsmWPSDVofp0ZVmpmaiP8ZY9O3cinffDl+dAvp/K7Q= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716323288; 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=AtkX+05fqMrAqvYCxWnxYpoT5jk3ZzKc9BJZRZalG1s=; b=I5ZbBQfz7Dx/duWj6b+i31f33UUEWt5FHJERRpzN0a5W7Op7iueGCI7FumKjzkHkIw8cqn cD4s5llkvdh0t8gCM0vZcELqLx7DEzcrgQK9txmfCHLw6NHKyJmhLJtU+8t0UHy9aEnk5a jb86IuOL0Oao2yLWfoTYEPx/QI3Udyg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-13-Ne-fzazYPhSouBfJQOVV0w-1; Tue, 21 May 2024 16:28:06 -0400 X-MC-Unique: Ne-fzazYPhSouBfJQOVV0w-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id 72FCB801190 for ; Tue, 21 May 2024 20:28:06 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.96.134.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B5BA7491032; Tue, 21 May 2024 20:28:05 +0000 (UTC) From: Guinevere Larsen To: gdb-patches@sourceware.org Cc: Guinevere Larsen Subject: [PATCH 0/3] Small step in supporting AVX instructions Date: Tue, 21 May 2024 17:27:57 -0300 Message-ID: <20240521202800.2865871-1-blarsen@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 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=-5.4 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,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham 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 :) As for filed bugs, there are 2 that I could find on bugzilla, but both name a specific instruction (vmovdqa and vmovdqu) which were not added by this series, so I figured I should only mention it once those are added. 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 | 170 ++++++++++++++- gdb/i386-tdep.h | 2 + gdb/testsuite/gdb.reverse/i386-avx-reverse.c | 127 +++++++++++ .../gdb.reverse/i386-avx-reverse.exp | 197 ++++++++++++++++++ 5 files changed, 496 insertions(+), 3 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