From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32492 invoked by alias); 25 Apr 2005 21:10:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32302 invoked by uid 48); 25 Apr 2005 21:09:51 -0000 Date: Mon, 25 Apr 2005 21:10:00 -0000 Message-ID: <20050425210951.32301.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050425204925.21223.drow@gcc.gnu.org> References: <20050425204925.21223.drow@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/21223] Output register variable is reloaded into the wrong register for asm X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg03647.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-25 21:09 ------- And here is an x86 testcase: int bar(int *mem) { return ({ register int a_oldval asm ("eax"); register int a_tmp asm ("ebx"); int a_oldval2 = 3; __asm__ __volatile__ ("# Should be eax - %0\n\t" "# Should be ebx - %1\n\t" "# unknown - %2" : "=&r" (a_oldval), "=&r" (a_tmp) : "r" (a_oldval2)); a_tmp; }); } Which shows this fails at -O2 and above too. -- What |Removed |Added ---------------------------------------------------------------------------- Component|rtl-optimization |middle-end GCC target triplet|arm-none-linux-gnueabi, | |powerpc-darwin | Known to fail|3.3.3 4.1.0 |3.3.3 4.1.0 2.95.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21223