From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by sourceware.org (Postfix) with ESMTPS id 3F90B3858D39 for ; Mon, 13 Dec 2021 15:12:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3F90B3858D39 Received: by mail-yb1-xb2f.google.com with SMTP id f186so39040293ybg.2 for ; Mon, 13 Dec 2021 07:12:28 -0800 (PST) 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; bh=kTvKL2W7caDjzoM8S3fOjwQe31T7gMdz+TDShGhnkwE=; b=Pa3f6Hr6/NTnT9oYnCJU3uOg8GWFmmvP+8ahAvuJLlUeo0ECVNOaoT9DIJg08qOMyg NGnW4oghlKrLBpV8HheUPmnTveVS1nmsYa1dh5d3hfjOaZMDARh4BmR/7/Dkl18exWfP IssI1qSiY2WmG4v2NzrJZIUJW/+cwU5mfHyrE8vti8cONTBgQyRnZcUm73KafmmMEF4N FkvALxjspkfc0iRBvVm4GSrsSkPMywJP9YHCCK9yPEOi+rSqL8EXKfvng7Xu7iAZ8DOZ /daQ2MEXlWvnK6Fa+x/qZLAl2YrYq2eP5oY+f0Ws8mPBiMv4UDwOYSxZ8TtVjyPqhy9k F5zQ== X-Gm-Message-State: AOAM530bjflMzX9bm4E5q2Wu8hDUH+KpOPBTnTHTwmD0tCU2CeKWsJyz sjUlMVR+cbNBt3pPCdyDD8vSMmHWHKTSQMxHs/XzLYDs X-Google-Smtp-Source: ABdhPJzvGZHtgEtKR0XPrni2Xk2GgzNIe2V87CoI+rkgT/V6zeDJRNlb6GAb09n5CrscegUWHl1cU6vzVgaM5dc8OiM= X-Received: by 2002:a25:2c09:: with SMTP id s9mr33841215ybs.17.1639408347736; Mon, 13 Dec 2021 07:12:27 -0800 (PST) MIME-Version: 1.0 References: <96f548e7b908479f88b65bf5ddca9e31@kth.se> In-Reply-To: <96f548e7b908479f88b65bf5ddca9e31@kth.se> From: =?UTF-8?Q?Marc_Nieper=2DWi=C3=9Fkirchen?= Date: Mon, 13 Dec 2021 16:12:16 +0100 Message-ID: Subject: Re: gcc_jit_context_new_rvalue_from_XXX To: Petter Tomner Cc: "jit@gcc.gnu.org" X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Mon, 13 Dec 2021 15:12:30 -0000 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 > Nieper-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 target > is known, which it generally isn't unless the target is always the host. > > Thanks, > > Marc >