From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2057.outbound.protection.outlook.com [40.107.21.57]) by sourceware.org (Postfix) with ESMTPS id BC4EF385C8B0 for ; Tue, 13 Sep 2022 13:03:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BC4EF385C8B0 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EY10vyWnnQviKXS0JAqH0cA21scViVwl6NyL2F2rf8ZqVKWYwEP4lSmIqXRtobXjnuacjTJxRJYcDwl3orfYPWd/zNv4RxaYBvdHv2XgN7ENP59XCSBa2SCcDG/Kyz2TMMPSgMgF0c+cqULEK4jrHMJ5beFOL78iobNaY88J7nWwOXjvuuD4Xdr8D0hOrrxfym0YoKHWd8jbE8meZzapqmnmHUPfa3ZS5JwPTVPVg6y2jGPqGo5ghSja1Wclfdr6/o3t0a2Q6enWrECxIZQyIcxfh+p9PwCqEdQzex1dX+MirREa/tASuog1j+9Ve3bHzf8yhJf63jAYzyPslCpf+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Z/1N2UnZw3qWOVNfJd3Oo4XYEOD3KmR7wYbW+9W3E6A=; b=jNle9Lq5mwYVBKhbngB+e2XHsW7BB3Gzz/mbya9fvmLkBUSVol9b4HSMxAOiJ/FXM3vkvC8dQGlWDThdNsM+/ETJDLBG4vaaqE5B3JZ1zaXG4q7OXHGLLOab4l7HRCY2Fh6tsueFhFuwQ6dgrb9xca8HBEihHij7J2ECY4ztC2jSd5p+4htF/fM/CplmjlK5UkjoihuYCZ5EUHXmMrexefXJ9cZVjVIUnyVhSGsDonhE0eU9NKmQ9xTwJ+KT5Zc1tBH8zAbFTzj37Lp+3+ocJTNZLxC0K7/QSypcx/HfbaqsplD2uH+pj98wCJRJWP9w4ON+aBDyKVYIxATd2ghIzg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z/1N2UnZw3qWOVNfJd3Oo4XYEOD3KmR7wYbW+9W3E6A=; b=gwDdJZdesHVr2/eLlM3ZqK9gHr58izpQ4Zs5mx3UCqDXabi4H25X1sMFgFqjNqzorym84EyFQPQlLJkz/x/WnohjVcHDfUeKmx7l0UL6/DmGsDF/qkt7AfUtCQbNTsdnjX9cnfIQkicRTFXkM9GXcZbMm5d7PicBt/7Plj/eLThjayP1OgYQULEirGzWoXW4VZdVRGaHRyuZoiXnvOEbHf5PpvO+lOcFelQnImKdOHtehzV+/8uthRuch6xycK+f+xr93ixIr05dRBEqmYsi/Zbb9iPbjGkZuNyZPsg10c8xKbcOyG9BFbVrLrjTt9gdK+hVCbxb7h5IuqqeddBBZw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) by AM8PR04MB7476.eurprd04.prod.outlook.com (2603:10a6:20b:1d1::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Tue, 13 Sep 2022 13:03:26 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::59bc:901a:98a7:76d4]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::59bc:901a:98a7:76d4%5]) with mapi id 15.20.5612.022; Tue, 13 Sep 2022 13:03:26 +0000 Message-ID: <348fe122-8296-716a-30ad-ce77746b9aa8@suse.com> Date: Tue, 13 Sep 2022 15:03:25 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: [PATCH 2/3] RISC-V: drop stray INSN_ALIAS flags Content-Language: en-US To: Binutils References: <7cb92a0b-d1ef-e3db-4773-0b6cd5183272@suse.com> Cc: Palmer Dabbelt , Andrew Waterman , Jim Wilson , Nelson Chu From: Jan Beulich In-Reply-To: <7cb92a0b-d1ef-e3db-4773-0b6cd5183272@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0123.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:97::9) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6560:EE_|AM8PR04MB7476:EE_ X-MS-Office365-Filtering-Correlation-Id: 03243165-9849-4a03-9eae-08da958858db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rcLdOo2uHKsmuLY0VOfTVfC6FNkRicx9znZRclUpfU28HiMQuzAEoQsgqp3Ggy2IZeWL00iG5XJ748ICviQrwcixXqNwkScgDY/a/EKG+bpSkWzgsE3t55K72KvBXdvTgKuY+4chHHVWKkGxNrpZ1WggxK/esrWP2zKjj3mEN1F8NBH7ZUZg+DG6g5EBnterhDlKZQAFELM3XPKVDYF2SVeTXwkO3CEnFJ+Gp5Kp/YtcnWgMbFhBf626ixAGKwF4rasCTRP2NH5d9ZPQJ5PaPLiYinj+bZHDjmQvY5o8krN8wL5uYVWMyUYW4A4KfTK4WLgEfINrMW8TCcDMOB1UAmrU1A5t5V7wI2U6+OkK4EGl36aS8qXFPIV/cDAi0Ticb5OyBtMgRwKSmGGrNsL/mlNO7Dd1ppNancpRjKzMarQqyKb+Y3YmDRRDwhHlJOEFLPdY5wGbkuADW2um6O/qgZtWrqsKEQc+liCvLfSyFoT73G0WNpSKQySzibd183hUh1/Vy7OOBDfsSH8nCcRW9aP0Ym3x462fMomcmbOLMhHzg0/+UkPrQ2R+PexVCilgX4r2Ds+dFBjSpLBABpkiHD8xuktC0DR2Rwo2hX1av8zA1T9JAtLrc2YPq1QZOXddYLbnxxajqDVkZk04rJunlj3sUco71S8ttkgUBcAiuXs+IFAUMZ2Q6hXONlwAAEXSR36uKar27hJzgiB7pwBveHc0eMAOkpK1Nvewg21FCCG76rtaM0R69aZ3hTAjWOlanDjSIxCgvq39wGl8VBANxi+5UHQfMNjO26Yhh4MgiwI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6560.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(39860400002)(396003)(346002)(376002)(366004)(451199015)(36756003)(316002)(31696002)(4326008)(2906002)(478600001)(86362001)(8936002)(26005)(66946007)(41300700001)(31686004)(66556008)(8676002)(6916009)(54906003)(6486002)(38100700002)(186003)(5660300002)(6506007)(6512007)(2616005)(66476007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bkxZUndKSHhDZElxY1Ryb3VYVWNWUWJOczA0WHhET2JOaXZVYUJlcWovK1o2?= =?utf-8?B?VXNZaVc2RkxmZW8zbWoyNVVOMHYrcHZyczlzbC81Z29rN0FSaUVMQlVNVy9r?= =?utf-8?B?eDVBeEUwNmsvdDJmWktpUGhSc3JWNmxFL0FrN0c0WXZKVnBLN3liT0YyVUJJ?= =?utf-8?B?N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41ZzNkSHFCNUNsLzhE?= =?utf-8?B?N2JQWkIxeGxZcW12Nm1KdUlodU1kY2krQTJwQkdrNHRFZzBPU1FHQWk0dDl1?= =?utf-8?B?RE1MZk1NUGF0anM5ZE11VGd3WVk2OWFNeDRsd3EzTHZCTUFxaEZ3Q1hlZXRT?= =?utf-8?Q?XkT8v7upwm4UGfFVfrvp/qAp4?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 03243165-9849-4a03-9eae-08da958858db X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2022 13:03:26.6475 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EaPuwP9vj8xHmM2dgCks5KuocESceA3xKUueQ2YSYCiXhuosZPmcp6Bw3hSpBXqo145FxNqVH8hFtQrxxm7+IQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7476 X-Spam-Status: No, score=-3030.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 List-Id: FENCE.TSO isn't an alias. ZIP and UNZIP in the long run likely are, but presently they aren't. This fixes disassembly of these insns with -Mno-aliases. --- /dev/null +++ b/gas/testsuite/gas/riscv/fence-tso-na.d @@ -0,0 +1,12 @@ +#as: -march=rv32ic +#source: fence-tso.s +#objdump: -dr -Mno-aliases + +.*:[ ]+file format .* + + +Disassembly of section .text: + +0+000 : +[ ]+[0-9a-f]+:[ ]+8330000f[ ]+fence.tso +#pass --- /dev/null +++ b/gas/testsuite/gas/riscv/zbkb-32-na.d @@ -0,0 +1,23 @@ +#as: -march=rv32i_zbkb +#source: zbkb-32.s +#objdump: -d -Mno-aliases + +.*:[ ]+file format .* + + +Disassembly of section .text: + +0+000 : +[ ]+[0-9a-f]+:[ ]+60c5d533[ ]+ror[ ]+a0,a1,a2 +[ ]+[0-9a-f]+:[ ]+60c59533[ ]+rol[ ]+a0,a1,a2 +[ ]+[0-9a-f]+:[ ]+6025d513[ ]+rori[ ]+a0,a1,0x2 +[ ]+[0-9a-f]+:[ ]+40c5f533[ ]+andn[ ]+a0,a1,a2 +[ ]+[0-9a-f]+:[ ]+40c5e533[ ]+orn[ ]+a0,a1,a2 +[ ]+[0-9a-f]+:[ ]+40c5c533[ ]+xnor[ ]+a0,a1,a2 +[ ]+[0-9a-f]+:[ ]+08c5c533[ ]+pack[ ]+a0,a1,a2 +[ ]+[0-9a-f]+:[ ]+08c5f533[ ]+packh[ ]+a0,a1,a2 +[ ]+[0-9a-f]+:[ ]+68755513[ ]+brev8[ ]+a0,a0 +[ ]+[0-9a-f]+:[ ]+69855513[ ]+rev8[ ]+a0,a0 +[ ]+[0-9a-f]+:[ ]+08f51513[ ]+zip[ ]+a0,a0 +[ ]+[0-9a-f]+:[ ]+08f55513[ ]+unzip[ ]+a0,a0 +#pass --- a/opcodes/riscv-opc.c +++ b/opcodes/riscv-opc.c @@ -421,7 +421,7 @@ const struct riscv_opcode riscv_opcodes[ {"fence", 0, INSN_CLASS_I, "", MATCH_FENCE|MASK_PRED|MASK_SUCC, MASK_FENCE|MASK_RD|MASK_RS1|MASK_IMM, match_opcode, INSN_ALIAS }, {"fence", 0, INSN_CLASS_I, "P,Q", MATCH_FENCE, MASK_FENCE|MASK_RD|MASK_RS1|(MASK_IMM & ~MASK_PRED & ~MASK_SUCC), match_opcode, 0 }, {"fence.i", 0, INSN_CLASS_ZIFENCEI, "", MATCH_FENCE_I, MASK_FENCE|MASK_RD|MASK_RS1|MASK_IMM, match_opcode, 0 }, -{"fence.tso", 0, INSN_CLASS_I, "", MATCH_FENCE_TSO, MASK_FENCE_TSO|MASK_RD|MASK_RS1, match_opcode, INSN_ALIAS }, +{"fence.tso", 0, INSN_CLASS_I, "", MATCH_FENCE_TSO, MASK_FENCE_TSO|MASK_RD|MASK_RS1, match_opcode, 0 }, {"rdcycle", 0, INSN_CLASS_I, "d", MATCH_RDCYCLE, MASK_RDCYCLE, match_opcode, INSN_ALIAS }, {"rdinstret", 0, INSN_CLASS_I, "d", MATCH_RDINSTRET, MASK_RDINSTRET, match_opcode, INSN_ALIAS }, {"rdtime", 0, INSN_CLASS_I, "d", MATCH_RDTIME, MASK_RDTIME, match_opcode, INSN_ALIAS }, @@ -942,8 +942,8 @@ const struct riscv_opcode riscv_opcodes[ {"cpopw", 64, INSN_CLASS_ZBB, "d,s", MATCH_CPOPW, MASK_CPOPW, match_opcode, 0 }, {"brev8", 32, INSN_CLASS_ZBKB, "d,s", MATCH_GREVI | MATCH_SHAMT_BREV8, MASK_GREVI | MASK_SHAMT, match_opcode, 0 }, {"brev8", 64, INSN_CLASS_ZBKB, "d,s", MATCH_GREVI | MATCH_SHAMT_BREV8, MASK_GREVI | MASK_SHAMT, match_opcode, 0 }, -{"zip", 32, INSN_CLASS_ZBKB, "d,s", MATCH_SHFLI|MATCH_SHAMT_ZIP_32, MASK_SHFLI|MASK_SHAMT, match_opcode, INSN_ALIAS }, -{"unzip", 32, INSN_CLASS_ZBKB, "d,s", MATCH_UNSHFLI|MATCH_SHAMT_ZIP_32, MASK_UNSHFLI|MASK_SHAMT, match_opcode, INSN_ALIAS }, +{"zip", 32, INSN_CLASS_ZBKB, "d,s", MATCH_SHFLI|MATCH_SHAMT_ZIP_32, MASK_SHFLI|MASK_SHAMT, match_opcode, 0 }, +{"unzip", 32, INSN_CLASS_ZBKB, "d,s", MATCH_UNSHFLI|MATCH_SHAMT_ZIP_32, MASK_UNSHFLI|MASK_SHAMT, match_opcode, 0 }, {"pack", 0, INSN_CLASS_ZBKB, "d,s,t", MATCH_PACK, MASK_PACK, match_opcode, 0 }, {"packh", 0, INSN_CLASS_ZBKB, "d,s,t", MATCH_PACKH, MASK_PACKH, match_opcode, 0 }, {"packw", 64, INSN_CLASS_ZBKB, "d,s,t", MATCH_PACKW, MASK_PACKW, match_opcode, 0 },