From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 6C7D43856612 for ; Fri, 2 Jun 2023 09:30:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6C7D43856612 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6af6d8687faso1438729a34.3 for ; Fri, 02 Jun 2023 02:30:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1685698226; x=1688290226; h=mime-version:user-agent:message-id:in-reply-to:date:errors-to :references:organization:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WsRp4E63PLdOEj7h7wA334Dci8v//i5a7qOj9gIrH94=; b=h1TOairJu6roPttBXBqns1v1juOkWR2+jHdQ6DzDI1EMHblLSCO63Vqe3VUhmyd12d FiQmRGi9fP4dRGmd7WuRf32CaD5wA13wx5snBrHCMMucTlf3hmvyZkCmwJM+MTpkDOiJ BDFAjV456bsiIHLXmVoFYjCObXuQLkzKB3eFU4X/l/6CuMzdEXZzbsd8xKDQx+0voQSR ubZGw/rf9/7Ur0wP8YdqhjaTLz73xDWG3NCCYTSUNrDJb5VYb+G7TY0jEjNUKLc0vfVs eKF+6ew2MSBwuAEXWay6yq/c5O3YLlj0bObWawh7Jqo5KB8cZfJQVqFpe9iXznU8oFgV yDnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685698226; x=1688290226; h=mime-version:user-agent:message-id:in-reply-to:date:errors-to :references:organization:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=WsRp4E63PLdOEj7h7wA334Dci8v//i5a7qOj9gIrH94=; b=RK3lOCjyDIO1QKtfQKjW9s2VwfFk6btN+ksqh/hJ1kJzUruZw5mQc9Ak9lHq6tM1BS b0ngJaXQhlxRqV2dJorzeUNONsNQTNfzn9UdWqVyEThHdC6xp9lEI9ArxA87BvqoP+DN EU2D7u047wjtVx9FwI6L/YPx2OF4vquSOKRdAfjt9EfDsBMhLkdIj0b/Il4X/PR7Ofyh eGOCQCYuJwihNIoV88g01TAvB00CBpeqaHjhu/6Q0AmaxSmZQO6Xoz3HJh9OtJb3OV5j AJVeYmep1stjZjk9pT6OZ5R4FAM2mV0B6BAr/bfHj7yaIPhyfddBz037/D/QZRFfCYiq VxEA== X-Gm-Message-State: AC+VfDyDA86V/2ZYB8tYSlCvRgX1DbbuSV9n9NaPxvv6nQqXucW8mgpn NDuiyA7x/VZqyxZ5d2MTtyEf0Q== X-Google-Smtp-Source: ACHHUZ4vJP9XPTMjmi1axkN5Uu/5moPfTim0JZ/RE3wug7BTFCBlUezkjtuNSJQFuAMHFlNdGYRMlA== X-Received: by 2002:a05:6830:13d4:b0:6af:a5d7:e988 with SMTP id e20-20020a05683013d400b006afa5d7e988mr1580002otq.6.1685698226468; Fri, 02 Jun 2023 02:30:26 -0700 (PDT) Received: from free.home ([2804:7f1:2080:f7d4:691e:1e3:9342:7fbc]) by smtp.gmail.com with ESMTPSA id j3-20020a9d7383000000b006aafe381a12sm415967otk.48.2023.06.02.02.30.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 02:30:26 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 3529UHPr3964502 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 2 Jun 2023 06:30:18 -0300 From: Alexandre Oliva To: Matthias Kretz Cc: Matthias Kretz via Libstdc++ , Subject: Re: [PATCH] libstdc++: Correct NTTP and simd_mask ctor call Organization: Free thinker, does not speak for AdaCore References: <25353264.6Emhk5qWAg@minbar> <4768566.iIbC2pHGDl@minbar> Errors-To: aoliva@lxoliva.fsfla.org Date: Fri, 02 Jun 2023 06:30:17 -0300 In-Reply-To: <4768566.iIbC2pHGDl@minbar> (Matthias Kretz's message of "Fri, 2 Jun 2023 10:50:33 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 List-Id: On Jun 2, 2023, Matthias Kretz wrote: > I'm looking at that function again, also in light of recent improvements wrt. > code-gen, and will remove that assumption, that long long is vectorizable. Thanks, I'll leave that to you, then. I also noticed the same test is failing on rtems6 (at least with gcc 11). AFAICT the problem is that _GLIBCXX_SIMD_MATH_CALL* macros in simd_math.h expect the named functions to be in std::, but I get such errors as: .../aarch64-rtems6/include/c++/11.4.1/experimental/bits/simd_math.h:1299: error: 'remainder' is not a member of 'std' .../aarch64-rtems6/include/c++/11.4.1/experimental/bits/simd_math.h:1299: note: suggested alternatives: [...] .../aarch64-rtems6/include/math.h:346: note: 'remainder' [...] .../aarch64-rtems6/include/c++/11.4.1/experimental/bits/simd_math.h:1299: note: 'std::experimental::parallelism_v2::remainder' .../aarch64-rtems6/include/c++/11.4.1/experimental/bits/simd_math.h:1299: error: template argument 1 is invalid [...] .../aarch64-rtems6/include/c++/11.4.1/experimental/bits/simd_math.h:1328: error: 'fmin' is not a member of 'std'; did you mean 'min'? .../aarch64-rtems6/include/c++/11.4.1/experimental/bits/simd_math.h:1328: error: 'fmin' is not a member of 'std'; did you mean 'min'? .../aarch64-rtems6/include/c++/11.4.1/experimental/bits/simd_math.h:1328: error: template argument 1 is invalid ISTM that rtems is missing some of the math.h functions expected by libstdc++, but also that even those that are present are not visible in namespace ::std::, where the macros reasonably expect to find them. Is this known? Should I file a PR about it? -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer Disinformation flourishes because many people care deeply about injustice but very few check the facts. Ask me about