From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by sourceware.org (Postfix) with ESMTPS id 86D783857C4E for ; Fri, 15 Apr 2022 09:23:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 86D783857C4E Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-2ebebe631ccso78809417b3.4 for ; Fri, 15 Apr 2022 02:23:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=29POHeaKB7LHDzQVF9gwz1xhKxjls5dOzSPMed6JYWA=; b=l3NQcyz26zekQCpTiZ9jYE0N1Gq6q8xxEQ0AuZi+XLRSGzPpcClYfYLlDSS3eBL7rI TN5b51kC+CmGGZCG2eYtMza7+ddhjMsiDGf/FXZxXxVURvTn60w/8x2tUOZt7jjviuLL yHPl+oS+ZzFLWssach8wbLKBUu+EKhJng4sLpG5IY8TocU0Q5YP6QCtuuI2CsE3hR0lq l4pyOjUevOB175c8PYhWrz+XdBwg7Wjo8A6E98jjMa5HLJWe6rZrQox9xKgB40Dimu3p tBROoY1qoyN9o7xiwF0/A6+rZnRpmXp1hs5bvCt7mc50WmaO/EexQh8s5NDXj8wYs2e6 Fm6w== X-Gm-Message-State: AOAM530vUEArKjzI28xCL/4rMawXyYYItKohEKXx1SqHlK+VWA6MqAsw K6GEVWqSRZ+WlEpynXjgkMPC9OxpZH9Eo7afPC4= X-Google-Smtp-Source: ABdhPJxjH6RTshfmAxCft7aISBctYFNDucn2ym04Q63s7OyfhJNyxo4ufg5BjBvXc/X2dokBEzV8tKciImsaGwR4LrY= X-Received: by 2002:a81:5d09:0:b0:2ea:f17a:15c1 with SMTP id r9-20020a815d09000000b002eaf17a15c1mr5287756ywb.481.1650014582955; Fri, 15 Apr 2022 02:23:02 -0700 (PDT) MIME-Version: 1.0 References: <96f548e7b908479f88b65bf5ddca9e31@kth.se> In-Reply-To: From: =?UTF-8?Q?Marc_Nieper=2DWi=C3=9Fkirchen?= Date: Fri, 15 Apr 2022 11:22:51 +0200 Message-ID: Subject: Re: gcc_jit_context_new_rvalue_from_XXX To: Petter Tomner , David Malcolm Cc: "jit@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: jit@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Jit mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2022 09:23:05 -0000 This hasn't made it into the trunk yet, has it? Is there a technical reason for the delay? Thanks, Marc Am Mo., 13. Dez. 2021 um 16:12 Uhr schrieb Marc Nieper-Wi=C3=9Fkirchen : > > Thanks for your quick and helpful response! > > Getting this into the trunk would be great! > > Am Mo., 13. Dez. 2021 um 15:54 Uhr schrieb Petter Tomner : >> >> Hi! >> >> I posted a patch addressing long long some time ago. >> >> https://gcc.gnu.org/pipermail/jit/2021q4/001375.html >> >> long long should cover all integral types on all platforms as you can >> pick the result type as you want, assuming unsigned long long never >> has more bits than long long :/ >> >> Regards, Petter >> >> >> >> Fr=C3=A5n: Jit f=C3=B6r Marc N= ieper-Wi=C3=9Fkirchen via Jit >> Skickat: den 13 december 2021 15:18 >> Till: jit@gcc.gnu.org >> =C3=84mne: gcc_jit_context_new_rvalue_from_XXX >> >> Hi, >> >> we have >> >> gcc_jit_context_new_rvalue_from_int >> >> and >> >> gcc_jit_context_new_rvalue_from_long. >> >> What about >> >> gcc_jit_context_new_rvalue_from_long_long >> >> and other integral types? >> >> It could be emulated with initialized globals (and relying on the >> optimization pass), but only when the binary representation on the targe= t >> is known, which it generally isn't unless the target is always the host. >> >> Thanks, >> >> Marc >>