From patchwork Wed May 24 05:28:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Namhyung Kim X-Patchwork-Id: 98298 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2615972vqo; Tue, 23 May 2023 22:45:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ypos3ATxvgf5tmAOpkuseR9zkTH04qU9R/GtE/etcbohM449QGqS5Dr2t8chOjOuvIBve X-Received: by 2002:a05:6a20:918a:b0:101:282c:2b with SMTP id v10-20020a056a20918a00b00101282c002bmr18398651pzd.32.1684907107058; Tue, 23 May 2023 22:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684907107; cv=none; d=google.com; s=arc-20160816; b=PHDgkIwjb1cdoZ+Eod7DxrgTrdkY/h8jjckHXknR/16qy/e9t38d/9guVFxePGzWcE kYIyWfPE3ADlbUHX7Lypb66mZVMNdpUAs/mGTYaYPtnmUgf6HE/e/zy6YSPSOQr6ZQgM 6OOn69QnIrNxK6KvNct5ppZcgCYJHehEMty9kEOtryIjWILso9dZvMtHdvUnpZEIMO75 YeSm7Y4s8QcySTMdjRy5v6vH8ORZcbXeanBZrI0iE1dW8rS1Iq3qy6EbOJbbDGATTfEl wAAyur5o/zfLKWxvo7+W1mRJKSLzU8C9YonFsdkFKXwaB0wuDtFFLTxYX0MqaX/HjMVM TBww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=W6kUveazmI/2mChCTnueKXfUry75ocgV/yH5bVTAw9A=; b=MFnyIkOkTSMxo0Kg97AjJ7tSZUK6SveO1QYbtyiBuBCi8JCadX1esjJ6hk1xTJwKl3 rOmLDPmUVJppHNTfkeiMjPYuK+LxDfctRJsEKmBq10FJQuuFiq2faBcIXSlE/RXIC157 nYxZsR/Pt6QgtbxXv9RQXU5rkPHn1DEoFLgoJPGVaCtGm8g3yDiSInLXoO2LcrNWZ4lG HXvax+p1OZ8Vhuuu/lt+vhVsh8GIvwU6+T9Y/VufaMKw5c8nECpgxT5qdDAJn6M8q2JM KM6zISaXqufWDYG7ZQnOEvAVdt29WuLEZemyNu3JfQJc5zSNYtkelaq0XQ7UoSha3zxx fyQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XjDPkqRK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a170902aa8d00b001afaae8a0a8si541727plr.8.2023.05.23.22.44.53; Tue, 23 May 2023 22:45:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XjDPkqRK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239359AbjEXF2m (ORCPT + 99 others); Wed, 24 May 2023 01:28:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239347AbjEXF2j (ORCPT ); Wed, 24 May 2023 01:28:39 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89E0213E; Tue, 23 May 2023 22:28:37 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1ae4d1d35e6so4208605ad.0; Tue, 23 May 2023 22:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684906117; x=1687498117; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=W6kUveazmI/2mChCTnueKXfUry75ocgV/yH5bVTAw9A=; b=XjDPkqRK9rr1M8kESs++g8i2DeggEfB1cY59xqV+hFKaoZDNJcbIOuA8avK4mRKeUv 3CGu+OQZSAUsLX/Mfo5keCG84W6IN4yVYpW3iWlr0t+wLZh8w/Xj6wc42uqfNDMPfo4G qB7+s+Jk4qan3k2GfhT4SFv4+Hzw1Ov6VWotsWjcqfTyoAm8rbT9sc9E8nuiHJAxKv+8 MdN2+8ZaTC7+f2FOq0oZj5etQEgq+p5pGB1K0rBkgrDPK0WEbhb7F4xsQRhheiQ0oAYR nb4mtR0jxEUxJHrf4CyfGTBihfKxOb9JnssxSnzNYLdQ/KGdRbEVfO/3ueiWwm+g/bvx 5bow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684906117; x=1687498117; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W6kUveazmI/2mChCTnueKXfUry75ocgV/yH5bVTAw9A=; b=Unzt9fxR4+uIRDeUAqXQjdn/EpEmjByjSLeNWRkMs/5WOHEmxlpeS6UWNho/9SnLy0 xBrCsL36czs6rMzl0YJcs1r1PeKD7aZExuc7Uul1OnrPBYPqmcR46kzr10MyiDNoXe3V vX81KSorD02qKOroLcjN5zVUgVuKOHY2zepI4J8KZqqPXb3zlEGoPXfXue5RKC4xv6Kf AZyBmgKufkP39oLbemcHzSgtsMB8qaxQ2HerBZPBQbWXQmSrVUB0QKOQVCxMKmOalDKH Xq8zsUf+3d5vFefsk9n1JCRn6N9lTKMMEzkqkPTfYSDIplb8D6zE5kBLbQw+K34x0He6 k18Q== X-Gm-Message-State: AC+VfDx/Ahefr5gai71s6nhbOEkaJDQwibQvjhzzcnx0he2lbafouuqK y04aoMjqFmRKYCN48Pnm6Yt9Ad7AYCs= X-Received: by 2002:a17:903:2341:b0:1a6:7ed0:147e with SMTP id c1-20020a170903234100b001a67ed0147emr20337766plh.33.1684906116826; Tue, 23 May 2023 22:28:36 -0700 (PDT) Received: from bangji.hsd1.ca.comcast.net ([2601:647:6700:7f00:806f:2bdc:cf65:f76b]) by smtp.gmail.com with ESMTPSA id f10-20020a170902ce8a00b001a64011899asm7706626plg.25.2023.05.23.22.28.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 22:28:36 -0700 (PDT) Sender: Namhyung Kim From: Namhyung Kim To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ian Rogers , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Andi Kleen , Masami Hiramatsu , Kan Liang Subject: [PATCH 1/2] perf annotate: Handle x86 instruction suffix generally Date: Tue, 23 May 2023 22:28:33 -0700 Message-ID: <20230524052834.1041418-1-namhyung@kernel.org> X-Mailer: git-send-email 2.40.1.698.g37aff9b760-goog MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766753154631292924?= X-GMAIL-MSGID: =?utf-8?q?1766753154631292924?= Most of x86 instructions can have size suffix like b, w, l or q. Instead of adding all these instructions in the table, we can handle them in a general way. For example, it can try to find an instruction as is. If not found, it'd try again without the suffix if it's one of the allowed suffixes. Signed-off-by: Namhyung Kim --- tools/perf/util/annotate.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index b708bbc49c9e..7f05f2a2aa83 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -70,6 +70,7 @@ struct arch { struct ins_ops *(*associate_instruction_ops)(struct arch *arch, const char *name); bool sorted_instructions; bool initialized; + const char *insn_suffix; void *priv; unsigned int model; unsigned int family; @@ -179,6 +180,7 @@ static struct arch architectures[] = { .init = x86__annotate_init, .instructions = x86__instructions, .nr_instructions = ARRAY_SIZE(x86__instructions), + .insn_suffix = "bwlq", .objdump = { .comment_char = '#', }, @@ -720,6 +722,26 @@ static struct ins_ops *__ins__find(struct arch *arch, const char *name) } ins = bsearch(name, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); + if (ins) + return ins->ops; + + if (arch->insn_suffix) { + char tmp[32]; + char suffix; + size_t len = strlen(name); + + if (len == 0 || len >= sizeof(tmp)) + return NULL; + + suffix = name[len - 1]; + if (strchr(arch->insn_suffix, suffix) == NULL) + return NULL; + + strcpy(tmp, name); + tmp[len - 1] = '\0'; /* remove the suffix and check again */ + + ins = bsearch(tmp, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); + } return ins ? ins->ops : NULL; } From patchwork Wed May 24 05:28:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Namhyung Kim X-Patchwork-Id: 98296 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2614905vqo; Tue, 23 May 2023 22:42:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7d6hMLSeZgb9fpmLOKUZ8vve5jJr3av9z7yO39x13wXTGo8yXWLlNpJcMhbALuq16k0WV5 X-Received: by 2002:a05:6a20:1441:b0:10b:acb4:620e with SMTP id a1-20020a056a20144100b0010bacb4620emr9391204pzi.41.1684906921669; Tue, 23 May 2023 22:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684906921; cv=none; d=google.com; s=arc-20160816; b=Z8s3aMPgdN1u4955pAqBSbEPyIUWeENzu9hjzp3RDz3cXkHIUE5hLc/Abrta9lC9CU nBf8cesLf5yE90oOOyr6XaSC7fFaLoKKA59Mt6HD7fjdwdjHJd0Am8AcUxW15suyvx6I mrLfvaKwvjJ87o0JivH9wVlby7Gz3Nn7FfAnJZ4L2xkmdB50n6ks7+QHhgcl7OOo3ULi 9ob3E021U4WBu1ggtNFbPjVPZlpWIJ7GpYddy4iHMaVvVI02EYLoR+8r9IgTlQuS3iXE A+WjJyILKw6wwI+fzNRnavJlbOLwXUHY8Tolsg2c+zS1XH5r1nUECAmlbPlLJok80ra5 ZOlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=6d5AcXkE4ZWFgJOqcetC1ECS3Bjvt7gCvqCnn13vov8=; b=xSkJK7VrHDNvCwZAdizqUCcx6f6qYWihifRE2YIMrv9PETIzrtHg3Q1Wbawipt/RMJ IoLj5jLEZWfUAcFS1V+dCCVtrMdHj3ouFuDZ6qiKIREuPgZBTHbeFKlMtSzvVmhhuxoE GPRtoagxXSjSZo0/dk6DEWe8Oxk6q2dt7xvHjH94KVdIJpN6EsmutvcPgeE7PdCBLJff IjV0P9BVnW2Yo4E9/Ih1yRrau3ZkMtXD6lJ7Nd9ntrlJKP5F3wSSwaoQMacvg0gugCLx o+xl/Lcz1c65QZYZQEuXpNx92arcv8SO7VaYGMt/zuu9w+wpgQSSa96sknZwiPG4KCSJ a59g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="U/BHPbdb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k136-20020a636f8e000000b0051a650b8f62si1976355pgc.836.2023.05.23.22.41.46; Tue, 23 May 2023 22:42:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="U/BHPbdb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239371AbjEXF2r (ORCPT + 99 others); Wed, 24 May 2023 01:28:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239349AbjEXF2j (ORCPT ); Wed, 24 May 2023 01:28:39 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72CBA18B; Tue, 23 May 2023 22:28:38 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1ae52ce3250so5586415ad.2; Tue, 23 May 2023 22:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684906118; x=1687498118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=6d5AcXkE4ZWFgJOqcetC1ECS3Bjvt7gCvqCnn13vov8=; b=U/BHPbdbcWy/tkay45yCh6xlRSq7ZzCreo8ZiM9J0SXDcn99NXpAe/6uBP9lyA7d2F P66J/y87FhsajG+llr9lw+iS+WAFfXRQjBbjrx90jSB1w6M+WbLdpwXgh42ZsBCVHzK/ sjWVz6jeW//tv12oxCuZlJL3ODxEouLF1qdAEPsC0H2fxkZoHfbu9emTvI1G4gWvxMFW +6VJ3rNekRwNLSjeQUun0Kw/0UVQGvg5n+aT4td90BUKhmQJD/dFW0UAy8SLHlY0Rul4 cIc+ph3gnJqoxbLoGWQND8q3IkqR/o5w5lSLHbKnTVu5e8+xCiCF2qWrQK+QYZCyxL/0 3F9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684906118; x=1687498118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6d5AcXkE4ZWFgJOqcetC1ECS3Bjvt7gCvqCnn13vov8=; b=Zu2Q+9HO7qOHoWmtq8e/yTOUInQ0HCXxSb02Sl4FoW1WFneziyX0XsqX1uKJrx9rsy x+bsarFnBYwauhGp04CR98FWXFT2cM9GmAWq6sd7rTvHucTks95iIacxJMQ00nCcBOyf denE4tvvN7hp87xBvy5S9shPQDIy5iT7z1TZq+jGWs2nQc/QFaKWYExfV6tR+/7oh8MC bP/bMQVlOWw5lU30bDTed0LpaOzoHcnZGJ8zyh4O0TpSvfSs2bDhDdkgvunQjsg4Zb6f RBxaTA+JNeYitQymvUy8Nvkwa6TBfdnIaCvTO4orqWHhj+MnWV0SSMXiqY9iRKK/85cj eHRg== X-Gm-Message-State: AC+VfDyZuto9kM/PLSwBJC7aI3nYMT2yVk8xJR8XhVbnDmcu+f+2AK6R LklZMLFaVQ4i1IGQH4tRvSY= X-Received: by 2002:a17:902:ecd0:b0:1a1:b3bb:cd5b with SMTP id a16-20020a170902ecd000b001a1b3bbcd5bmr17037366plh.62.1684906117768; Tue, 23 May 2023 22:28:37 -0700 (PDT) Received: from bangji.hsd1.ca.comcast.net ([2601:647:6700:7f00:806f:2bdc:cf65:f76b]) by smtp.gmail.com with ESMTPSA id f10-20020a170902ce8a00b001a64011899asm7706626plg.25.2023.05.23.22.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 22:28:37 -0700 (PDT) Sender: Namhyung Kim From: Namhyung Kim To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ian Rogers , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Andi Kleen , Masami Hiramatsu , Kan Liang Subject: [PATCH 2/2] perf annotate: Remove x86 instructions with suffix Date: Tue, 23 May 2023 22:28:34 -0700 Message-ID: <20230524052834.1041418-2-namhyung@kernel.org> X-Mailer: git-send-email 2.40.1.698.g37aff9b760-goog In-Reply-To: <20230524052834.1041418-1-namhyung@kernel.org> References: <20230524052834.1041418-1-namhyung@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766752960133026419?= X-GMAIL-MSGID: =?utf-8?q?1766752960133026419?= Not the suffix is handled in the general code. Let's get rid of them. Signed-off-by: Namhyung Kim --- tools/perf/arch/x86/annotate/instructions.c | 44 +-------------------- 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/tools/perf/arch/x86/annotate/instructions.c b/tools/perf/arch/x86/annotate/instructions.c index 5c7bec25fee4..714fd8784d99 100644 --- a/tools/perf/arch/x86/annotate/instructions.c +++ b/tools/perf/arch/x86/annotate/instructions.c @@ -1,48 +1,29 @@ // SPDX-License-Identifier: GPL-2.0 static struct ins x86__instructions[] = { { .name = "adc", .ops = &mov_ops, }, - { .name = "adcb", .ops = &mov_ops, }, - { .name = "adcl", .ops = &mov_ops, }, { .name = "add", .ops = &mov_ops, }, - { .name = "addl", .ops = &mov_ops, }, - { .name = "addq", .ops = &mov_ops, }, { .name = "addsd", .ops = &mov_ops, }, - { .name = "addw", .ops = &mov_ops, }, { .name = "and", .ops = &mov_ops, }, - { .name = "andb", .ops = &mov_ops, }, - { .name = "andl", .ops = &mov_ops, }, { .name = "andpd", .ops = &mov_ops, }, { .name = "andps", .ops = &mov_ops, }, - { .name = "andq", .ops = &mov_ops, }, - { .name = "andw", .ops = &mov_ops, }, { .name = "bsr", .ops = &mov_ops, }, { .name = "bt", .ops = &mov_ops, }, { .name = "btr", .ops = &mov_ops, }, { .name = "bts", .ops = &mov_ops, }, - { .name = "btsq", .ops = &mov_ops, }, { .name = "call", .ops = &call_ops, }, - { .name = "callq", .ops = &call_ops, }, { .name = "cmovbe", .ops = &mov_ops, }, { .name = "cmove", .ops = &mov_ops, }, { .name = "cmovae", .ops = &mov_ops, }, { .name = "cmp", .ops = &mov_ops, }, - { .name = "cmpb", .ops = &mov_ops, }, - { .name = "cmpl", .ops = &mov_ops, }, - { .name = "cmpq", .ops = &mov_ops, }, - { .name = "cmpw", .ops = &mov_ops, }, { .name = "cmpxch", .ops = &mov_ops, }, { .name = "cmpxchg", .ops = &mov_ops, }, { .name = "cs", .ops = &mov_ops, }, { .name = "dec", .ops = &dec_ops, }, - { .name = "decl", .ops = &dec_ops, }, - { .name = "decq", .ops = &dec_ops, }, { .name = "divsd", .ops = &mov_ops, }, { .name = "divss", .ops = &mov_ops, }, { .name = "gs", .ops = &mov_ops, }, { .name = "imul", .ops = &mov_ops, }, { .name = "inc", .ops = &dec_ops, }, - { .name = "incl", .ops = &dec_ops, }, - { .name = "incq", .ops = &dec_ops, }, { .name = "ja", .ops = &jump_ops, }, { .name = "jae", .ops = &jump_ops, }, { .name = "jb", .ops = &jump_ops, }, @@ -56,7 +37,6 @@ static struct ins x86__instructions[] = { { .name = "jl", .ops = &jump_ops, }, { .name = "jle", .ops = &jump_ops, }, { .name = "jmp", .ops = &jump_ops, }, - { .name = "jmpq", .ops = &jump_ops, }, { .name = "jna", .ops = &jump_ops, }, { .name = "jnae", .ops = &jump_ops, }, { .name = "jnb", .ops = &jump_ops, }, @@ -83,49 +63,31 @@ static struct ins x86__instructions[] = { { .name = "mov", .ops = &mov_ops, }, { .name = "movapd", .ops = &mov_ops, }, { .name = "movaps", .ops = &mov_ops, }, - { .name = "movb", .ops = &mov_ops, }, { .name = "movdqa", .ops = &mov_ops, }, { .name = "movdqu", .ops = &mov_ops, }, - { .name = "movl", .ops = &mov_ops, }, - { .name = "movq", .ops = &mov_ops, }, { .name = "movsd", .ops = &mov_ops, }, { .name = "movslq", .ops = &mov_ops, }, { .name = "movss", .ops = &mov_ops, }, { .name = "movupd", .ops = &mov_ops, }, { .name = "movups", .ops = &mov_ops, }, - { .name = "movw", .ops = &mov_ops, }, { .name = "movzbl", .ops = &mov_ops, }, { .name = "movzwl", .ops = &mov_ops, }, { .name = "mulsd", .ops = &mov_ops, }, { .name = "mulss", .ops = &mov_ops, }, { .name = "nop", .ops = &nop_ops, }, - { .name = "nopl", .ops = &nop_ops, }, - { .name = "nopw", .ops = &nop_ops, }, { .name = "or", .ops = &mov_ops, }, - { .name = "orb", .ops = &mov_ops, }, - { .name = "orl", .ops = &mov_ops, }, { .name = "orps", .ops = &mov_ops, }, - { .name = "orq", .ops = &mov_ops, }, { .name = "pand", .ops = &mov_ops, }, { .name = "paddq", .ops = &mov_ops, }, { .name = "pcmpeqb", .ops = &mov_ops, }, { .name = "por", .ops = &mov_ops, }, - { .name = "rclb", .ops = &mov_ops, }, - { .name = "rcll", .ops = &mov_ops, }, + { .name = "rcl", .ops = &mov_ops, }, { .name = "ret", .ops = &ret_ops, }, - { .name = "retq", .ops = &ret_ops, }, { .name = "sbb", .ops = &mov_ops, }, - { .name = "sbbl", .ops = &mov_ops, }, { .name = "sete", .ops = &mov_ops, }, { .name = "sub", .ops = &mov_ops, }, - { .name = "subl", .ops = &mov_ops, }, - { .name = "subq", .ops = &mov_ops, }, { .name = "subsd", .ops = &mov_ops, }, - { .name = "subw", .ops = &mov_ops, }, { .name = "test", .ops = &mov_ops, }, - { .name = "testb", .ops = &mov_ops, }, - { .name = "testl", .ops = &mov_ops, }, - { .name = "testq", .ops = &mov_ops, }, { .name = "tzcnt", .ops = &mov_ops, }, { .name = "ucomisd", .ops = &mov_ops, }, { .name = "ucomiss", .ops = &mov_ops, }, @@ -139,11 +101,9 @@ static struct ins x86__instructions[] = { { .name = "vsubsd", .ops = &mov_ops, }, { .name = "vucomisd", .ops = &mov_ops, }, { .name = "xadd", .ops = &mov_ops, }, - { .name = "xbeginl", .ops = &jump_ops, }, - { .name = "xbeginq", .ops = &jump_ops, }, + { .name = "xbegin", .ops = &jump_ops, }, { .name = "xchg", .ops = &mov_ops, }, { .name = "xor", .ops = &mov_ops, }, - { .name = "xorb", .ops = &mov_ops, }, { .name = "xorpd", .ops = &mov_ops, }, { .name = "xorps", .ops = &mov_ops, }, };