From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-relay-3.sys.kth.se (smtp-relay-3.sys.kth.se [IPv6:2001:6b0:1:1200:250:56ff:fead:700c]) by sourceware.org (Postfix) with ESMTPS id 293C83858409 for ; Mon, 13 Dec 2021 14:54:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 293C83858409 Received: from exdb1.ug.kth.se (exdb1.ug.kth.se [192.168.32.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-relay-3.sys.kth.se (Postfix) with ESMTPS id 4JCPfK4RTqzPGTk; Mon, 13 Dec 2021 15:54:01 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp-relay-3.sys.kth.se 4JCPfK4RTqzPGTk Received: from exdb6.ug.kth.se (192.168.32.61) by exdb1.ug.kth.se (192.168.32.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 13 Dec 2021 15:54:01 +0100 Received: from exdb6.ug.kth.se ([192.168.32.61]) by exdb6.ug.kth.se ([192.168.32.61]) with mapi id 15.02.0986.014; Mon, 13 Dec 2021 15:54:01 +0100 From: Petter Tomner To: =?iso-8859-1?Q?Marc_Nieper-Wi=DFkirchen?= , "jit@gcc.gnu.org" Subject: SV: gcc_jit_context_new_rvalue_from_XXX Thread-Topic: gcc_jit_context_new_rvalue_from_XXX Thread-Index: AQHX8CyRANgRiaVmpUKD4tiqN5Hg0awwghHI Date: Mon, 13 Dec 2021 14:54:01 +0000 Message-ID: <96f548e7b908479f88b65bf5ddca9e31@kth.se> References: In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.32.250] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, 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 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 14:54:06 -0000 Hi! =20 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=E5n: Jit f=F6r Marc Nieper-Wi= =DFkirchen via Jit Skickat: den 13 december 2021 15:18 Till: jit@gcc.gnu.org =C4mne: gcc_jit_context_new_rvalue_from_XXX =A0 =20 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 =