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.133.124]) by sourceware.org (Postfix) with ESMTPS id AA65D3858282 for ; Tue, 20 Sep 2022 10:27:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AA65D3858282 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663669622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yLLBv49CaCOutOKRnH8pvDTsMXwZTc9ByO3+1TdppC8=; b=PRUMvaEH4DW2oTdt1JbNklXfoPHeRpM3WoqFAJ8Bv6yJCbxCBRuSKcqF8ibbhhfxxqHw1x y/bzYRtdoI0vYVda71KNb2Jpui5KgqGbzU//ttE+7l/dtopbS0S85XnYV3jn7zanBQhkJY aQJyVIIyn/8Mq+2tsFCCtlF6eA/25Dg= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-126-T5dcDX0YNjub6M8d98XauA-1; Tue, 20 Sep 2022 06:27:01 -0400 X-MC-Unique: T5dcDX0YNjub6M8d98XauA-1 Received: by mail-wm1-f71.google.com with SMTP id i132-20020a1c3b8a000000b003b339a8556eso962198wma.4 for ; Tue, 20 Sep 2022 03:27:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=yLLBv49CaCOutOKRnH8pvDTsMXwZTc9ByO3+1TdppC8=; b=5I7709VenEBTGG9xaXGMDjnYyo9AlqrbMdflV+OQPOt98iS1rYBR6a9oUEz0rWfEUJ XfJuID+faj45eYK3WZWwunYvX3Giqb3N5nb7JFYLdnyP7LHpZxLpo7KJqbtbxQRV9LL7 QxDUBLgeORrDuIAyGUFRoi3q+RGgWeHy/AZQ1Fqm77NxYD1+fNmDN+wqDntKdxtdPo2F FoIjuSjGZbLrrqU+X+MqINfSjVHPwdGjyZ6JjXhga2HJKXlUKpPqbOKJpop/vCI+ko0F 5Ga+604//ZYz2fQ5Oyyax0Wt2BYENFDFkfhPduZ6LgDn4c66XZB5rnB/PiHxgaJauiOW Gbaw== X-Gm-Message-State: ACrzQf3b4kefymaTDy1gSr9d70nVHi+z696Hh/orI6sQeMxG1gQCmbxC LH+TwFa3+JF+OVycXtSSoWVpT8X12Wy8LVTACQn2ijaxRwk9AfELM1N8RoXRr9htLKF+WeHiddr TiuBhmwa+zgbGki4j2nIdnYrchXtOXf1C6jkeRV2a4cqSQUH0ZR9OFvhehNE= X-Received: by 2002:a05:6000:15c5:b0:22a:49c2:4c58 with SMTP id y5-20020a05600015c500b0022a49c24c58mr13275788wry.362.1663669619264; Tue, 20 Sep 2022 03:26:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7OoXda/TzAzag6VlztOdUpopjPn3MZNFv8fK26tGhE2px9ZW1Yhs5DRgP6oBUyRgDHubaZ/w== X-Received: by 2002:a05:6000:15c5:b0:22a:49c2:4c58 with SMTP id y5-20020a05600015c500b0022a49c24c58mr13275773wry.362.1663669619027; Tue, 20 Sep 2022 03:26:59 -0700 (PDT) Received: from [10.0.0.8] (cpc108959-cmbg20-2-0-cust731.5-4.cable.virginm.net. [80.0.22.220]) by smtp.gmail.com with ESMTPSA id bv2-20020a0560001f0200b002286231f479sm1331642wrb.50.2022.09.20.03.26.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Sep 2022 03:26:58 -0700 (PDT) Message-ID: Date: Tue, 20 Sep 2022 11:26:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: gcc inline asm unknown mnemonics problems To: gcc-help@gcc.gnu.org References: <17e1dc3f-cca4-1563-fb91-e3ab45d46cc4@smwireless.net> From: Andrew Haley In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,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: On 9/20/22 06:39, Xi Ruoyao via Gcc-help wrote: > On Mon, 2022-09-19 at 21:47 -0700, mike wrote: > > /* snip */ > >> I am having a problem using ldrexb and strexb using inline assembler.  The >> code is running on a RPi4 on ubuntu 20.04LTS. >> >> I get an error message "Error: unknown mnemonic `ldrexb' -- `ldrexb >> x0,[[sp,8]]'" > > ldrexb and strexb are Thumb-2 instructions, but RPi4 uses an AArch64 > CPU. AArch64 is an extension of the classic ARM instruction set, not an > extension of Thumb-2. So you can't use them on AArch64. The AArch64 name of that instruction is LDAXRB. I'm assuming you're running a 64-bit kernel: you don't say. -- Andrew Haley (he/him) Java Platform Lead Engineer Red Hat UK Ltd. https://keybase.io/andrewhaley EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671