From patchwork Wed Apr 17 08:33:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 1924551 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gjlay.de header.i=@gjlay.de header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=meClKf6s; dkim=pass header.d=gjlay.de header.i=@gjlay.de header.a=ed25519-sha256 header.s=strato-dkim-0003 header.b=IxKGIYGG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VKDkm1sv1z1yZ2 for ; Wed, 17 Apr 2024 18:35:43 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1A2333858D3C for ; Wed, 17 Apr 2024 08:35:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.220]) by sourceware.org (Postfix) with ESMTPS id B20953858D20 for ; Wed, 17 Apr 2024 08:33:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B20953858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gjlay.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=gjlay.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B20953858D20 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=81.169.146.220 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1713342864; cv=pass; b=b+45Q+aIhysP7lgZ3eN914FfqTv+Tk4+tYn+NAN0DVSFu+Gp3fCHum6WLwqH0ZGUevuCPyq3QXzhd+1Tc79po5eRpDcQLNtDkEdvEnZkVqkxotYhQKf/T8Vma/jgGw5hpqXG2B3x9JFaM7beq5tkp6C+AqZxJze5k88LefKBKBg= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1713342864; c=relaxed/simple; bh=zVGHO92wII4aOur0td0MX8w9b0qzGKJledxBmSLHRT0=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version:From: To:Subject; b=dJDoN+mFA8AAFkmGOYhIhYqsUeiM6aIB+ekOM3+NBE5+HVWAjTL4Hd680RSOJT3u19EzHREwNQQLInujBWtb15IQWg/6OSmHzVv0oK2FnBEce9EMuwnzkDGxfn825GDP0kuGUH1Qfhgbmf62ttFefukAgOWfO8UdJPeg53HUw4U= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; t=1713342836; cv=none; d=strato.com; s=strato-dkim-0002; b=bq6W0PCnpAXhKMYC6xL+cVisVW1DzV7ri9VOQwm8kKSAD4qB4oi7+SSI/jaws7L63o L+KZAWVFPMCELrAVu3OWPN4l+MCZiEneq+KG6Awb0qwL2DNDP2K0yLiwGxvTEECe++fu QRJwS8mOsG0x+eDCIx9qXO71o4Gu5KEZ8VwRqPWtZqOgAPh2fMTjaEIyqev6mz3j3J7c D1DZGQiFrAqmOkX7csu5LdNqBzsGrTePZszOIf6TQYTagnwH4c7bIMQ8nxgoxDx4jmSu Ux0Ttenxdv/yL9jz4hCGMPdZHHiv7auwU1n4cnbFelJNeDE02ubexigzkKl8SAcfq5MO NpSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1713342836; s=strato-dkim-0002; d=strato.com; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=XtJ1fXIo2WLCZ0aMIVcGWSG4vvD84nxOgr398msWkkk=; b=UXMi8aAetonHWO86ehsa+pUVTCJCf4yczgh63eqMOLZbBw9Mx34cgNjSjO6UbjMEY9 02ioc8vnDgAHIUKvhs/I9uNqFdJH/oyTf5tAUll7MJIQWbsdtzJWpuTZMA+rR2WPU3NK gE23qItpkWAXKMsYi1e5ysgTQwRQ9E18dJVhpt5hnHexE81EJXHzeRHA8WX5bsN+fQlG GOAnPk1snd11GnriUMQWzVcRsW41n/O3PD1u7Ez/mbvmDUBMH5rI4TAddc/Aq8/HN1qz L7V7vG3OetArujchCn9diaLBuZvyHQAMpLUXSpkS95yArUK3fQY7xoFXmoMWyX503U/p 6ZLg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1713342836; s=strato-dkim-0002; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=XtJ1fXIo2WLCZ0aMIVcGWSG4vvD84nxOgr398msWkkk=; b=meClKf6s0qykyZYGZYI+Ip1526BR2GUfB9AoqI3tbG2yMtL9zumVItUnnp/pmZUOVV DVEaNTT7D0peCGve+r5GgrdJBv62i/6WNBVxquazQnCiBSkn99giQg+qm3XVISihHmtk g3Qaxkfkc8EOP0cZjtDGfjAT+4ufGNmXO21u6N3qr0+HQDpbwdzLK11apYsRSlKNUEPc /B4NLXL6zoaWfc3pKbzFkolTbZs9DJHvvh17X6Puz6KfJm7fk6B0yIdIMezk8S1uUsuy NCB9FPfE9+0HFuzBByE7VmaiqgLZj4ibNxA5ez6ZIigLKGkqoQF4fnebOpmEhhD2svVi Zl+A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1713342836; s=strato-dkim-0003; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=XtJ1fXIo2WLCZ0aMIVcGWSG4vvD84nxOgr398msWkkk=; b=IxKGIYGGqLGa5tN2dQgWL/vgHhU9MZsIOLJJQi0Oas8jf0qmK9bpxDVvWhni90agWJ VbDXoKzHlKmJtNz1M/AA== X-RZG-AUTH: ":LXoWVUeid/7A29J/hMvvT3koxZnKT7Qq0xotTetVnKkbgtK4q2y4KBIJzcU=" Received: from [192.168.2.102] by smtp.strato.de (RZmta 50.3.2 DYNA|AUTH) with ESMTPSA id x760bd03H8XuVfu (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Wed, 17 Apr 2024 10:33:56 +0200 (CEST) Message-ID: Date: Wed, 17 Apr 2024 10:33:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Georg-Johann Lay To: "gcc-patches@gcc.gnu.org" Subject: [patch,avr,applied] PR114752 - Fix ICE on inline asm const 64-bit float operand X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Applied as obvious Johann --- AVR: target/114752 - Fix ICE on inline asm const 64-bit float operand gcc/ PR target/114752 * config/avr/avr.cc (avr_print_operand) [CONST_DOUBLE_P]: Handle DFmode. fputs (XSTR (x, 0), file); diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc index 4a5a921107b..510e4cea19f 100644 --- a/gcc/config/avr/avr.cc +++ b/gcc/config/avr/avr.cc @@ -3932,11 +3932,20 @@ avr_print_operand (FILE *file, rtx x, int code) } else if (CONST_DOUBLE_P (x)) { - long val; - if (GET_MODE (x) != SFmode) + if (GET_MODE (x) == SFmode) + { + long val; + REAL_VALUE_TO_TARGET_SINGLE (*CONST_DOUBLE_REAL_VALUE (x), val); + fprintf (file, "0x%lx", val); + } + else if (GET_MODE (x) == DFmode) + { + long l[2]; + REAL_VALUE_TO_TARGET_DOUBLE (*CONST_DOUBLE_REAL_VALUE (x), l); + fprintf (file, "0x%lx%08lx", l[1] & 0xffffffff, l[0] & 0xffffffff); + } + else fatal_insn ("internal compiler error. Unknown mode:", x); - REAL_VALUE_TO_TARGET_SINGLE (*CONST_DOUBLE_REAL_VALUE (x), val); - fprintf (file, "0x%lx", val); } else if (GET_CODE (x) == CONST_STRING)