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.129.124]) by sourceware.org (Postfix) with ESMTPS id 4916F3858CDB for ; Tue, 28 Feb 2023 12:37:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4916F3858CDB 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=1677587837; 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=bC8xF1higYBjM/nDTJF4WnGPJniTgcCbGNNRzJBer3E=; b=PczlkAfiJ6lwu4cSjOtsxgid59fh+bSptKDSThNj3aFpJ+05eMJfoGwskqdsdOakm/3UsF AkpIHR0CWhGPsGKtHI/j1bQ8oBS2l0q5TnXdX0IqsjNr3WpPTjtyQND2yY23qPD6wgl3ju xmCzpTzXQbGQNmyr28i90f9CqOG3lIE= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-63-FVEjG7A4Oya-y335RfXumw-1; Tue, 28 Feb 2023 07:37:16 -0500 X-MC-Unique: FVEjG7A4Oya-y335RfXumw-1 Received: by mail-qk1-f200.google.com with SMTP id c15-20020a37e10f000000b00741a3333881so5922982qkm.13 for ; Tue, 28 Feb 2023 04:37:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677587835; h=content-transfer-encoding:in-reply-to:subject:from:references:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bC8xF1higYBjM/nDTJF4WnGPJniTgcCbGNNRzJBer3E=; b=rPmTl3BT23y4Aqci7EjYMvZvyixIdGnFhVoLjYBQuDrtvcBHpy8AhdUPyl8LhHHYku m2l4Ypg21LAUNRjdNqHuILxCHGUCqZPmNn2qD8TgNuAc1wMa+0XvPwNBi9MnFVh0klNk psmL4RRe4K7ItHv7+eTg8B4XetWXBQH7AvB7ao8A6He7Dhz7PtQYj4Mp27sBwHzo6Nu+ 041ME8UqVnYTDeG/rYPBZlHlUyYEmcsMu4JRzNQQwrPBSWx+RLZC5CVziGksuK4P8S1z LS/SA2TCU7scqeM22zJFf091Z48CLYFqrdLpT6qLd2735f0dC5tsPhJNyoL48iyfiCPt QIOw== X-Gm-Message-State: AO0yUKWUHuQ/7dPrbDLLvQP6gC+QE/4e05DhLjyyS1xHyXWSwpdXwuT3 c/wuX7aWHxMzEqK/IQRt7KMwUn0lF8+IMU7vYBEPAwJhTB0yV989cYjcd8SA9pv0ondff5lDi0S C6nmFDSBByPp8TOw8XnHf0ho= X-Received: by 2002:a05:622a:593:b0:3bd:15d4:ff65 with SMTP id c19-20020a05622a059300b003bd15d4ff65mr4505822qtb.40.1677587835418; Tue, 28 Feb 2023 04:37:15 -0800 (PST) X-Google-Smtp-Source: AK7set+PFNEv7wK52XL/dEd8cqW+Gf0sR4eHYzYE/mvhy4b6VrEXeLg7QtgZlmlaKgmxkgH6RdJQaw== X-Received: by 2002:a05:622a:593:b0:3bd:15d4:ff65 with SMTP id c19-20020a05622a059300b003bd15d4ff65mr4505800qtb.40.1677587835164; Tue, 28 Feb 2023 04:37:15 -0800 (PST) Received: from [192.168.1.18] ([79.123.86.193]) by smtp.gmail.com with ESMTPSA id a24-20020aed2798000000b003a81eef14efsm6298637qtd.45.2023.02.28.04.37.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Feb 2023 04:37:14 -0800 (PST) Message-ID: <74421307-88dc-f745-fac0-ba8ae59dcddc@redhat.com> Date: Tue, 28 Feb 2023 12:37:12 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 To: Ulf Samuelsson , binutils@sourceware.org References: <20230219194549.22554-1-binutils@emagii.com> <20230219194549.22554-3-binutils@emagii.com> <8ebc68e1-25a1-84ef-295f-3e545ced39d0@redhat.com> <1b334d25-10ee-cd05-b2d8-20143ee118a5@emagii.com> <93a59bc2-c62f-c6c5-cee2-fa04ce6907d2@emagii.com> From: Nick Clifton Subject: Re: [PATCH v4 2/5] CRC64 testsuite In-Reply-To: <93a59bc2-c62f-c6c5-cee2-fa04ce6907d2@emagii.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 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_NONE,RCVD_IN_MSPIKE_H2,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: Hi Ulf, > * CRC64-ECMA > * CRC64-ISO > * CRC64-WE > * CRC64-XZ > * CRC64-POLY > * CRC32 > * CRC32-POLY As a matter of interest, where are these names and algorithms defined ? Is there a ISO standard for them, for example ? > * Is there a way to select one of two tests within the test framework >    based on endianess of the build and target machines? Hmm, tricky. The short answer is "no", as in there is no handy proc that you can invoke to determine the endian-ness of the target. But, in fact there is a way, it is just a little bit complicated. The linker supports two command line options to select the endian-ness of the output: -EL and -EB. So you can run a quick test of the linker to see if it accepts one of them: global ld set big_endian 0 if { [run_host_cmd_yesno $ld "-EB -e 0 -o /dev/null foo.o"] } { set big_endian 1 } But - this will not help with targets that support both big- and little- endian variations. So you need to check for those first: global ld set big_endian 0 if [string equal [big_or_little_endian] " -EB"] then { set big_endian 1 } else { if { [run_host_cmd_yesno $ld "-EB -e 0 -o /dev/null foo.o"] } { set big_endian 1 } } I have not actually tried this code in practice, but in theory it should work. It does presume that you have a handy "foo.o" available which will link without errors so you may need to some code to create that in the first place. Cheers Nick