From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yLNpH4hQD2BrWAAA0tVLHw (envelope-from ) for ; Mon, 25 Jan 2021 23:13:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ACs8G4hQD2C6CgAA1q6Kng (envelope-from ) for ; Mon, 25 Jan 2021 23:13:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7EF74940251 for ; Mon, 25 Jan 2021 23:13:11 +0000 (UTC) Received: from localhost ([::1]:32930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4B2k-0004Jh-97 for larch@yhetil.org; Mon, 25 Jan 2021 18:13:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4B2W-0004JG-Ec for guix-devel@gnu.org; Mon, 25 Jan 2021 18:12:56 -0500 Received: from mail-bl2gcc02on2062.outbound.protection.outlook.com ([40.107.89.62]:34272 helo=GCC02-BL0-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4B2T-0007Co-CX; Mon, 25 Jan 2021 18:12:55 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NJUq35JgFi6niuxJdN+K5g8MWnDRaUpHTgeHys90XAl+q3VX5vLNwfoFy5iYpqhRgBhKE77OK42wwQaEutfTRFzIuMSBhxkDd0vvrkngqsItDHaWySQTWI5PwmIfoZR9NiO8Y+kLTQJvlcELoVWIkzYATPIu4EeM04zNKFwKbK+G9bu1cxclaamHELWKHd1v0xQMTD8J2AIh/PcTuKmL5eoqwGC8uH0ZPfwN+U6LEvGlq4UQHz/TqzhVMb69pMpNn3lXDbvX2JslPwts8YVWnIXbJCRzLleIuR/BCBDZSPgfl3guKRvu/CQnnkISMCuaqZIP+XGZ2hPfv/mpFjYPcA== 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-SenderADCheck; bh=g+lfYO1AWuYirtXcAcWG4ijacz+tzp9pb/H9Od3W26I=; b=gMiZD8zRsTjWDLwnVogmOdJ2z8V5s96ENa4BhCB/dh0A9I1AVr/3idaVaUfpnRU4Koq+IpCDrB1FPOGEu8pNvEdh2iK5racHgBP5h9hw9tAHdfbwHcb/HdM8Iyj0zE64RE8l9PNy+8s9o+Q/uWOkLcur4Qo6ciao4LX0cb3um/Qao5BBMX3E/7gKWpvRO4OmJb8j6MH6HKnZbCqJ4Xy94fUeZdZA6feW1pvk/BdKdeHBfS5H1F01fcUPiuiYiJhVY9KqSMm4OJYIRad4GS3v+wtWX8LM1LWLq74SYLPBTAt6wKERaqE1IOJc7+JY5kyWPbhAvSjDcRuk5AK/cg8Xdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=michigan.gov; dmarc=pass action=none header.from=michigan.gov; dkim=pass header.d=michigan.gov; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=michigan.gov; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g+lfYO1AWuYirtXcAcWG4ijacz+tzp9pb/H9Od3W26I=; b=Rt9JAXQnJbjXUcSxcZ2taaoH/nSjZJ9PdAC3RoCcIOYpkGxv5XP38vA4tvDnSHz7TNDa7G1nBFaQ6NITxK0mm72ghxAzPxTz4HRmEB+vl1uKKyO4LtAe74LT5HhDON9tld9glGv+FOTih/pQoc+Q+x1BJWHL1aNiPaJLL9g6hsY= Received: from DM8PR09MB6840.namprd09.prod.outlook.com (2603:10b6:5:2e5::22) by DM8PR09MB6277.namprd09.prod.outlook.com (2603:10b6:5:2e6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11; Mon, 25 Jan 2021 23:12:46 +0000 Received: from DM8PR09MB6840.namprd09.prod.outlook.com ([fe80::e5a8:6ede:61bb:43c6]) by DM8PR09MB6840.namprd09.prod.outlook.com ([fe80::e5a8:6ede:61bb:43c6%3]) with mapi id 15.20.3784.019; Mon, 25 Jan 2021 23:12:46 +0000 From: "Orians, Jeremiah (DTMB)" To: "bootstrappable@freelists.org" , Paul Sherwood Subject: RE: [bootstrappable] ARM Unified Assembly Language - GNU as does some weird stuff Thread-Topic: [bootstrappable] ARM Unified Assembly Language - GNU as does some weird stuff Thread-Index: AQHW82wRVGsltxcbyUuWB7pyxTiTnao4+FJw Date: Mon, 25 Jan 2021 23:12:46 +0000 Message-ID: References: <87im8cvdpa.fsf@gnu.org> <36b3777d90af6fa2e1c1778ba183111e@codethink.co.uk> <87lfd5rpr8.fsf@gnu.org> <20210107211058.40e0813a@scratchpost.org> <20210125234723.319ba85a@scratchpost.org> In-Reply-To: <20210125234723.319ba85a@scratchpost.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_2f46dfe0-534f-4c95-815c-5b1af86b9823_Enabled=True; MSIP_Label_2f46dfe0-534f-4c95-815c-5b1af86b9823_SiteId=d5fb7087-3777-42ad-966a-892ef47225d1; MSIP_Label_2f46dfe0-534f-4c95-815c-5b1af86b9823_Owner=OriansJ@michigan.gov; MSIP_Label_2f46dfe0-534f-4c95-815c-5b1af86b9823_SetDate=2021-01-25T22:57:37.0644882Z; MSIP_Label_2f46dfe0-534f-4c95-815c-5b1af86b9823_Name=Public Data (Published to the Public); MSIP_Label_2f46dfe0-534f-4c95-815c-5b1af86b9823_Application=Microsoft Azure Information Protection; MSIP_Label_2f46dfe0-534f-4c95-815c-5b1af86b9823_ActionId=b543d446-fa2f-46fe-9009-fb6c6019620b; MSIP_Label_2f46dfe0-534f-4c95-815c-5b1af86b9823_Extended_MSFT_Method=Manual x-originating-ip: [75.75.217.224] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a094a9e1-4fac-484a-c751-08d8c186b9fa x-ms-traffictypediagnostic: DM8PR09MB6277: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:949; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TaStYwK+zKY20hnhJwhWt+Z9H5fGjwXSaBCpWAvHMEn3gQ0n+dMjgSdqP/ocYOTZkW+e/drRaJBUE9FDy4qEwdI0cEchwgiXKgzgM6sIzFigfD+wv0o2SKIg8kANu30nx1fay2p7l6T8UXSm3FWM/5X4LPwWA/z+0qqPIWN74Lh4KFCfKnqWDVp0/+rrNlQg87ECfdFUF/ZzksjnWxIKxuikm/mWiZABgcj+NWrdy+jUaZVB0u0xHgsWOCO9/Siu5olbz33eprEmPb5lRMeww0yW0iYvZh/+5bv4B2+9wVLzd1d6Uy3RAoIdeFd/aW+HZW9WYSreLPCzF6D3oLsWGmjx8fUOMO+/VrCOVzt/92XI4mKQJNWrNghMXkY9QGmF12mcXvQK/IxpD+gv3Xd1yg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM8PR09MB6840.namprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(39860400002)(376002)(346002)(366004)(396003)(4326008)(33656002)(110136005)(71200400001)(54906003)(66476007)(86362001)(76116006)(4744005)(7696005)(478600001)(5660300002)(8936002)(66446008)(66556008)(186003)(6506007)(26005)(2906002)(8676002)(52536014)(9686003)(316002)(55016002)(64756008)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?/NlYcFCsHl/ndk73Q+w+/yJJ43442d0D6CZHKsyskjbcluI3ufDux9cfDOZe?= =?us-ascii?Q?S3OqrmzhHKZ1+asNfTbYsmAgLGhyoP+CT5DgW3r8B9OcGKaOtih6dQ09uizS?= =?us-ascii?Q?GrqTaQ4j28VvYagSFf8LSLTwul7oE60BEMN4r1KubysI9ahkpErADgEvMpUx?= =?us-ascii?Q?plpzfqCG4apA+tbxfLDs1nYhZM0ShGy+9heSAwDU36L4DT/8iYIdi/0O8Tt3?= =?us-ascii?Q?Vu5frmJRHgQZncs20Svlbd/Qqb5+ft/wpFPTSxCwKThAHv/wPHkpp6aQ6qFN?= =?us-ascii?Q?djZaHBbRw1pDnpi1V2iLiubc69XiIM9+fnmkGHKw+DRf1Eetu6yUWS9bKuUc?= =?us-ascii?Q?iLWztZPuUM819oVy5JxkxsgViEZyBce8tYBqhg6WzPzkps0C45buA8T/EVQu?= =?us-ascii?Q?JhBeZrRgbKMLwnPT/PcKinxzCsYAjTWxsHksw4xZYTEmPqhRUL54g6avAK/K?= =?us-ascii?Q?6sB3TbnDB/CsjtgaAGaBuVpwCV+onqsD0zgMFd+FeN13fK+6PjbYqrTlXEzA?= =?us-ascii?Q?iY/fv5gi8VSatSqureivPaTPn5J2dh+REjSXoh1jL52dq907s/OmIwm5b8V8?= =?us-ascii?Q?nQDlYfidKKtj61TGpRzc3Nd5/JhgxSJs6XQ3jvjVWUxore9oJwRsDoKfQUHu?= =?us-ascii?Q?rsUESERlxgdDeaBpAe0/K0GFAZjYScri8FQZdn0rlnC6wQg+L+3Mapsa6YA4?= =?us-ascii?Q?Fgf1Hl6lStymWoegQr/P0e1adTre/f/fXD0kV2IxShshhptIpj69Lkt89tp7?= =?us-ascii?Q?JWvaZaXuNZaRzEunc8tXMwHHRz/aEmELuNz7WBoToxT4Z1tYR2C5L/g+i5a2?= =?us-ascii?Q?px6Zd1FGHo8VKdYbtjlSVq0cFCWjHNsf1ZBJcre34pxGcmnm03MHjEyVebnX?= =?us-ascii?Q?1CtxnjWjN2mz3kILXC6jxVC5UReIKxJNfHwe8x1GJoncAbKLOQKPveBFNvMm?= =?us-ascii?Q?SnUMDzWsIxtpBh2CWCTH7gpenow0hLGZvbdaOMoUGNl6hpXXwa5h0LdWpgRj?= =?us-ascii?Q?ztDB2uNnumuq/2GQH35lPGqr1simkKEvJ3wraCWj9bpLG7Ev7yxz/eMhaKE8?= =?us-ascii?Q?EbOtrpwX?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: michigan.gov X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR09MB6840.namprd09.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a094a9e1-4fac-484a-c751-08d8c186b9fa X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jan 2021 23:12:46.2117 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d5fb7087-3777-42ad-966a-892ef47225d1 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 90TxZmuuQ/wlKnOm4UBxXQqOqznyB425FEUT/3wO0W766VDCc4Orbh1G3+zhCdNGww0SmPzBJGoKGcjzHTpCig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR09MB6277 Received-SPF: pass client-ip=40.107.89.62; envelope-from=OriansJ@michigan.gov; helo=GCC02-BL0-obe.outbound.protection.outlook.com X-Spam_score_int: -32 X-Spam_score: -3.3 X-Spam_bar: --- X-Spam_report: (-3.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.255, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_GOV_DKIM_AU=-0.205, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "guix-devel@gnu.org" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=michigan.gov header.s=selector2 header.b=Rt9JAXQn; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=michigan.gov; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 7EF74940251 X-Spam-Score: -4.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: l12vQhUYX37t > (1) b #60 > It seems that GNU as ignores the immediate entirely and just always encod= es > #0 (to test, do ".syntax unified" and then "b #60" in GNU as). WTF? > Likewise with bl, blx. All assemblers (except M1) do that because the linker is to populate that v= alue at link time using the symbol table to allow code segment relocation. > (2) push #4 > It works in GNU as--but is it specified by ARM to push the register r2 ? > I think exposing ISA implementation details like that is a leaky abstract= ion--and no good can come from it. > Likewise with pop, stm*, ldm*. Well arm doesn't actually have a push/pop instructions, only load and store= instructions > GNU as fails to assemble these. And no one cared enough to fix it for 30 years? Is it possible something is= missed? > (4) lsl r1, #4, #2 > GNU as encodes exactly the same as "lsl r1, #4"--drops the "#2" silently. 4 << 2 is 16. Log2(16) =3D=3D 4; sounds about right -Jeremiah