From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19519 invoked by alias); 13 Mar 2003 22:36:16 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 19488 invoked from network); 13 Mar 2003 22:36:15 -0000 Received: from unknown (HELO mx2.redhat.com) (12.150.115.133) by sources.redhat.com with SMTP; 13 Mar 2003 22:36:15 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.11.6/8.11.6) with ESMTP id h2DMSsl06191; Thu, 13 Mar 2003 17:28:54 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h2DMaEQ29331; Thu, 13 Mar 2003 17:36:14 -0500 Received: from dot.sfbay.redhat.com (dot.sfbay.redhat.com [172.16.24.7]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h2DMaE524740; Thu, 13 Mar 2003 14:36:14 -0800 Received: (from rth@localhost) by dot.sfbay.redhat.com (8.11.6/8.11.6) id h2DMXxD30932; Thu, 13 Mar 2003 14:33:59 -0800 X-Authentication-Warning: dot.sfbay.redhat.com: rth set sender to rth@redhat.com using -f Date: Thu, 13 Mar 2003 22:52:00 -0000 From: Richard Henderson To: Dale Johannesen Cc: David Edelsohn , gcc@gcc.gnu.org Subject: Re: store double-cvtd-to-int to memory Message-ID: <20030313223358.GI30854@redhat.com> Mail-Followup-To: Richard Henderson , Dale Johannesen , David Edelsohn , gcc@gcc.gnu.org References: <7C8B66E0-54F5-11D7-B9FE-000393D76DAA@apple.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7C8B66E0-54F5-11D7-B9FE-000393D76DAA@apple.com> User-Agent: Mutt/1.4i X-SW-Source: 2003-03/txt/msg00865.txt.bz2 You might also want to look at Alpha's pattern for this: (define_insn_and_split "*fix_truncdfsi_internal" [(set (match_operand:SI 0 "memory_operand" "=m") (subreg:SI (fix:DI (match_operand:DF 1 "reg_or_0_operand" "fG")) 0)) (clobber (match_scratch:DI 2 "=f"))] "TARGET_FP && alpha_fptm < ALPHA_FPTM_SU" "#" "&& reload_completed" [(set (match_dup 2) (fix:DI (match_dup 1))) (set (match_dup 3) (unspec:SI [(match_dup 2)] UNSPEC_CVTQL)) (set (match_dup 0) (match_dup 3))] ;; Due to REG_CANNOT_CHANGE_SIZE issues, we cannot simply use SUBREG. "operands[3] = gen_rtx_REG (SImode, REGNO (operands[2]));" [(set_attr "type" "fadd") (set_attr "trap" "yes")]) r~