From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16259 invoked by alias); 13 Jun 2002 18:16:13 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 16146 invoked by uid 71); 13 Jun 2002 18:16:04 -0000 Resent-Date: 13 Jun 2002 18:16:04 -0000 Resent-Message-ID: <20020613181604.16145.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, falk.hueffner@student.uni-tuebingen.de Received: (qmail 11532 invoked by uid 61); 13 Jun 2002 18:06:06 -0000 Message-Id: <20020613180606.11531.qmail@sources.redhat.com> Date: Thu, 13 Jun 2002 11:16:00 -0000 From: falk.hueffner@student.uni-tuebingen.de Reply-To: falk.hueffner@student.uni-tuebingen.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/7021: __builtin_alpha_zapnot gives ICE X-SW-Source: 2002-06/txt/msg00311.txt.bz2 List-Id: >Number: 7021 >Category: target >Synopsis: __builtin_alpha_zapnot gives ICE >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Thu Jun 13 11:16:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: falk.hueffner@student.uni-tuebingen.de >Release: CVS 2002-06-13 >Organization: >Environment: Alpha PCA56, Debian GNU/Linux >Description: __builtin_alpha_zapnot with a non-constant second argument gives an ICE. It seems the problem is that in the machine description, the second parameter is declared to be in QI mode, while copy_to_mode_reg (called from alpha_expand_builtin) expects DI. >How-To-Repeat: % cat zapnot.c unsigned long f(unsigned long x, unsigned long y) { return __builtin_alpha_zapnot(x, y); } % gcc -c zapnot.c zapnot.c: In function `f': zapnot.c:2: Internal compiler error: Internal compiler error in copy_to_mode_reg, at explow.c:711 >Fix: Using DI mode everywhere in builtin_zapnot* helps, but the QI was supposedly there to tell the compiler that only the low byte matters, which would get lost then. >Release-Note: >Audit-Trail: >Unformatted: