From patchwork Fri Dec 29 23:50:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 83026 Return-Path: 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 7406A3858435 for ; Fri, 29 Dec 2023 23:51:06 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by sourceware.org (Postfix) with ESMTPS id 9D07E3858CDB for ; Fri, 29 Dec 2023 23:50:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9D07E3858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9D07E3858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::233 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703893839; cv=none; b=Zi66PiEX+bcPgFdKrZUXTeKKA61OlZsIhnAWG/VemG8qsCpeeJaSAq5R82ZbJdwcTrtwiRHyHbqCi9qdDKnVTifXthCV+/8No4bkW4S5sS70y0OCjKLqDGfWOh+cUtmLdHM6NP5bqDNwBGI3EoRQzLlIj6vU6Wpd7CfiqUsTMzU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703893839; c=relaxed/simple; bh=COOhzpjl8TkZgGfBO/77d2iTi7Z6YZ5PEjPicbA5+Zg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=wzNbd3cYAeONb+swWR2PQWOwjf4qUM0El9ngNqcCEjiZQM1z88IuU5/JcgNJNME8nE6Jfvj0DDTUkxlpqZiJ6ZLyVsIqGQnwWhEpAzfOwDGFFGf97d9rY7yyM0dW+VkX2E6ev9XToD2Qa67oqr+YnawMe4PLnhoZkfsTDvBxO3w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3bbc755167fso2120521b6e.0 for ; Fri, 29 Dec 2023 15:50:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703893835; x=1704498635; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=0NI6ntcaVQsUGyjc0iq5BB/7RddoN2MS4tGa3Znqu4Q=; b=MSRiX/6+9PQB4dRSoHSAABWiCZEX991X7Kc5Z7lfkj2KBDcKscIZtIeTUf52+VSLBX cDugpKPAmN6PU+qiu3ZgJD2UHvd9XB+mYRjTs3/KkXWBq5TSX6bOT8LhMWErThsi2hy1 7UI86NLkAaZ49hp6Fken0wS1TZiYVtxKVdGPWWyDcvvx8hEtANpqtMug2thFpQQsaBir E4/BMhUEimadvgatTbTXTcbBYtjxk1N/E4J46h6BrSBrpP0T8HD1WlSsSULA0K6C/b+X apgzDUYogn6PguJ73ssR3b2bfFeVfvvnlRq9Z5Pism+otEHeo7QnBX9e/sGgwmeDLADe +ZQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703893835; x=1704498635; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0NI6ntcaVQsUGyjc0iq5BB/7RddoN2MS4tGa3Znqu4Q=; b=nmvwNHAjUtBmN4Sf5/+Lll/63wQ8rhUzXkwaaAwwl2uwOhmXIg0pE1BMJyk/pSJ3xJ VdJmHk62MCl1kql9a7z7ZH4ue+wtv3ZKQvZF1oZRJNyARDh3ifnJqpzF6IS7TizpjHNh BLFosHzdJYtLFbxa/zXXI6Nfn9gapihHP3Jt6rmtuV0iGQEABDf+0zXRs67sTmN8YFpQ FEv3eVAQhhwofTBBEEdDJWzT2KjhL6/pGuMhJ5ZI0PJqyqpKzATTpBKPTnj+aSni1dZ6 xW3vyuB3Me80bjoVh95mb+r9d9VaH/JDByfZcqzjhzvxzNYPjWgSdiU5ipa/P2LD0OGF /0NA== X-Gm-Message-State: AOJu0Yws1L6ggGV2K7F03hh8xTwig29kFnG36OFBM1tlI4xTwVxAeMn7 8nookVPnfgcIIqlY4PunUf3Cbt4Qkog= X-Google-Smtp-Source: AGHT+IHWYPDHZhvc56C+tlZTX7f4Rg7/u0jsvLX/U21XEPonjWlINMb5pKqz2e9PskiUMVDbgLu6bg== X-Received: by 2002:a05:6808:f02:b0:3bb:7174:f5 with SMTP id m2-20020a0568080f0200b003bb717400f5mr15059647oiw.39.1703893835601; Fri, 29 Dec 2023 15:50:35 -0800 (PST) Received: from gnu-cfl-3.localdomain ([172.56.169.119]) by smtp.gmail.com with ESMTPSA id e8-20020aa78c48000000b006d9b66f3d07sm10236589pfd.95.2023.12.29.15.50.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 15:50:35 -0800 (PST) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 74C097402E2 for ; Fri, 29 Dec 2023 15:50:33 -0800 (PST) From: "H.J. Lu" To: binutils@sourceware.org Subject: [PATCH 1/2] x86: Don't use .insn with '/' Date: Fri, 29 Dec 2023 15:50:32 -0800 Message-ID: <20231229235033.338761-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-3024.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org '/' starts a comment for some targets. Use .byte instead of .insn with '/'. * testsuite/gas/i386/x86-64-apx-evex-promoted-bad.s: Use .byte instead of .insn with '/'. --- gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.s b/gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.s index fde6736e9b2..61ed8824428 100644 --- a/gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.s +++ b/gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.s @@ -39,11 +39,11 @@ _start: .insn EVEX.L0.NP.0f38.W1 0xf5, %rax, (%rax,%rbx){1to8}, %rcx #{evex} inc %rax %rbx EVEX.vvvv != 1111 && EVEX.ND = 0. - .insn EVEX.L0.NP.M4.W1 0xff/0, (%rax,%rcx), %rbx + .byte 0x62, 0xf4, 0xe4, 0x08, 0xff, 0x04, 0x08 # pop2 %rax, %r8 set EVEX.ND=0. - .insn EVEX.L0.M4.W0 0x8f/0, %rax, %r8 + .byte 0x62, 0xf4, 0x3c, 0x08, 0x8f, 0xc0 .byte 0xff, 0xff, 0xff # pop2 %rax, %r8 set EVEX.vvvv = 1111. .insn EVEX.L0.M4.W0 0x8f, %rax, {rn-sae},%r8 # pop2 %r8, %r8. - .insn EVEX.L0.M4.W0 0x8f/0, %r8,{rn-sae}, %r8 + .byte 0x62, 0xd4, 0x3c, 0x18, 0x8f, 0xc0 From patchwork Fri Dec 29 23:50:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 83027 Return-Path: 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 DBCEA3858295 for ; Fri, 29 Dec 2023 23:51:07 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id BB0613858C50 for ; Fri, 29 Dec 2023 23:50:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BB0613858C50 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BB0613858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703893842; cv=none; b=oQkj+mNH87DAxvfTKmMNkceFxe9dDYyH0FciKvO1FFCri6ckUUB0BpzRpw5CG74+4COQO9ZMuTd/86wNixPD5k2O8lAQqjxswG8nW7SGBtGr7POtWrVL5GGNebbgsPwRHQTaIlX0anLek5X4StkjgRtXFB0C81muIf9LPT24fb0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703893842; c=relaxed/simple; bh=Sec/TxQDCL/HiQHABDyaXGychDrnfZCCGAXTy3UNO5Y=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=V/VzDOLNm00skocBl+vSFFbJBWjpKM62TbkNmcFrF/bU3KB4Xo4jldmxTlxtWXxV2h7mAuGiAZ3kn/kHLrzPriS3yX8OKipCgf4iyKHQryxfSIYaddn4TABzSAKf3M3IPZz8SzJDOIHWTYn/hWa01m5+cxS7noy5g22v5ke2ST4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1d3e6c86868so56350905ad.1 for ; Fri, 29 Dec 2023 15:50:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703893835; x=1704498635; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=dsxCNrhdJYPgiIr/WiyQJUreZEB+lO17Y8eebsKZ0P0=; b=G8rLWPYd+dfnvwrly6aOBPC/cvc8N+m3udJstIRmB8dbeAirvrNzp/Ojd3tK6tXLL0 Sw4JdTbf8l5Qj6ekDLirr/44GPwEGgUlxViGLSgULObqcfbM/MPGHXxTt8n3ZiFnoLcm yTtLMsX8rlTHqEqVwVaKBcAIadxzMz3elJkwFmtxPstqZcPqt5c45e6MSDmm95ExDGRG oRkWo0kadwpgIpk+Pddq5opeJPttjr8uYo0YX4RAAgRcH201Q+y5IhQ0i1k2s+eqHnJL o+0zDNYj8Lr+R84/h0xzRbZZYLKgr+xWsQoQu0Eft9G8oeNmS34ZIRJfQYh/Ajcyp/oA IYYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703893835; x=1704498635; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dsxCNrhdJYPgiIr/WiyQJUreZEB+lO17Y8eebsKZ0P0=; b=hioVjvRScrDnKMf6M0Em1vYapKijCDYBLA1V50Sei/D5GdukxWyWVW9CYIgY0hp6K8 lRz9jtL9VLj7aRnqC3VGX1T+6AhAnxrB08tSsS2iTTDNRYDL7bUVhMquCnW8BuFbYsii UXcBLxxQ9PhxUC8CNSHJEnsWMqEvS+yCeM//Eqi/1PqqLNnx6ON1emakHJOcLluuDVJc jG0VyklUq+bsh03t0Q4CsCDxw4/i21OLylqNgsjZZaKOcvTyjFJTGzYOYfVSa03k2uP4 iMXnGK4hHqtTEq3F9rpVWGcDEyI1mf/05v7uVgvK/MLNXINDpw/ZCqqrgcsQGeR7FlEQ jv8A== X-Gm-Message-State: AOJu0YwsEZFciZInq1smBB/THXWlGsya5qdYBJOahsgO6gPfXztFIhuN 1RrYh/YQ4CrusJejIruRi1UMaloGVLQ= X-Google-Smtp-Source: AGHT+IG3IgMiot3EzqPEC/eJmFSEFo697+F5RxBhOUaXXr3c25N5qyb6SSfvpxZAsUa/oeHWIzLFhA== X-Received: by 2002:a17:902:ed43:b0:1d3:6419:7314 with SMTP id y3-20020a170902ed4300b001d364197314mr11240470plb.74.1703893835337; Fri, 29 Dec 2023 15:50:35 -0800 (PST) Received: from gnu-cfl-3.localdomain ([172.56.169.119]) by smtp.gmail.com with ESMTPSA id x22-20020a170902821600b001d05fb4cf2csm16157617pln.15.2023.12.29.15.50.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 15:50:34 -0800 (PST) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 7F92974038A for ; Fri, 29 Dec 2023 15:50:33 -0800 (PST) From: "H.J. Lu" To: binutils@sourceware.org Subject: [PATCH 2/2] x86: Append "#pass" to APX tests Date: Fri, 29 Dec 2023 15:50:33 -0800 Message-ID: <20231229235033.338761-2-hjl.tools@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231229235033.338761-1-hjl.tools@gmail.com> References: <20231229235033.338761-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-3024.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org Append "#pass" to APX tests for targets which pad text sections with NOPs. * testsuite/gas/i386/x86-64-apx-evex-promoted-bad.d: Append "#pass". * testsuite/gas/i386/x86-64-apx-ndd-optimize.d: Likewise. * testsuite/gas/i386/x86-64-apx-ndd.d: Likewise. * testsuite/gas/i386/x86-64-apx-pushp-popp-intel.d: Likewise. * testsuite/gas/i386/x86-64-apx-pushp-popp.d: Likewise. --- gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.d | 1 + gas/testsuite/gas/i386/x86-64-apx-ndd-optimize.d | 1 + gas/testsuite/gas/i386/x86-64-apx-ndd.d | 1 + gas/testsuite/gas/i386/x86-64-apx-pushp-popp-intel.d | 1 + gas/testsuite/gas/i386/x86-64-apx-pushp-popp.d | 1 + 5 files changed, 5 insertions(+) diff --git a/gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.d b/gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.d index 3bfb5dec202..57bdf64c858 100644 --- a/gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.d +++ b/gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.d @@ -39,3 +39,4 @@ Disassembly of section .text: [ ]*[a-f0-9]+:[ ]+62 74 7c 18 8f c0[ ]+pop2 %rax,\(bad\) [ ]*[a-f0-9]+:[ ]+62 d4 3c 18 8f[ ]+\(bad\) [ ]*[a-f0-9]+:[ ]+c0[ ]+.* +#pass diff --git a/gas/testsuite/gas/i386/x86-64-apx-ndd-optimize.d b/gas/testsuite/gas/i386/x86-64-apx-ndd-optimize.d index 48f0f1ceee3..773ceea686c 100644 --- a/gas/testsuite/gas/i386/x86-64-apx-ndd-optimize.d +++ b/gas/testsuite/gas/i386/x86-64-apx-ndd-optimize.d @@ -130,3 +130,4 @@ Disassembly of section .text: \s*[a-f0-9]+:\s*62 74 3e 18 66 c0 adox %eax,%r8d,%r8d \s*[a-f0-9]+:\s*62 d4 7e 18 66 c7 adox %r15d,%eax,%eax \s*[a-f0-9]+:\s*67 f3 0f 38 f6 04 0a adox \(%edx,%ecx,1\),%eax +#pass diff --git a/gas/testsuite/gas/i386/x86-64-apx-ndd.d b/gas/testsuite/gas/i386/x86-64-apx-ndd.d index 73410606ce3..36d5c738e46 100644 --- a/gas/testsuite/gas/i386/x86-64-apx-ndd.d +++ b/gas/testsuite/gas/i386/x86-64-apx-ndd.d @@ -158,3 +158,4 @@ Disassembly of section .text: \s*[a-f0-9]+:\s*62 c4 3c 18 32 04 07 xor \(%r15,%rax,1\),%r16b,%r8b \s*[a-f0-9]+:\s*62 c4 3d 18 33 04 07 xor \(%r15,%rax,1\),%r16w,%r8w \s*[a-f0-9]+:\s*62 fc 5c 10 83 34 83 11 xorl \$0x11,\(%r19,%rax,4\),%r20d +#pass diff --git a/gas/testsuite/gas/i386/x86-64-apx-pushp-popp-intel.d b/gas/testsuite/gas/i386/x86-64-apx-pushp-popp-intel.d index 44e3e96a5df..018a0e838dc 100644 --- a/gas/testsuite/gas/i386/x86-64-apx-pushp-popp-intel.d +++ b/gas/testsuite/gas/i386/x86-64-apx-pushp-popp-intel.d @@ -12,3 +12,4 @@ Disassembly of section \.text: \s*[a-f0-9]+:\s*d5 19 57[ ]+pushp r31 \s*[a-f0-9]+:\s*d5 08 58[ ]+popp rax \s*[a-f0-9]+:\s*d5 19 5f[ ]+popp r31 +#pass diff --git a/gas/testsuite/gas/i386/x86-64-apx-pushp-popp.d b/gas/testsuite/gas/i386/x86-64-apx-pushp-popp.d index b20e5ba9a35..a81f4838529 100644 --- a/gas/testsuite/gas/i386/x86-64-apx-pushp-popp.d +++ b/gas/testsuite/gas/i386/x86-64-apx-pushp-popp.d @@ -12,3 +12,4 @@ Disassembly of section \.text: \s*[a-f0-9]+:\s*d5 19 57[ ]+pushp %r31 \s*[a-f0-9]+:\s*d5 08 58[ ]+popp %rax \s*[a-f0-9]+:\s*d5 19 5f[ ]+popp %r31 +#pass