From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3110 invoked by alias); 30 Mar 2009 22:11:16 -0000 Received: (qmail 1910 invoked by uid 48); 30 Mar 2009 22:10:46 -0000 Date: Mon, 30 Mar 2009 22:11:00 -0000 Message-ID: <20090330221046.1909.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug inline-asm/39590] inline asm %z on amd64 says "ll" instead of "q" In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "felix-gcc at fefe dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-03/txt/msg02329.txt.bz2 ------- Comment #6 from felix-gcc at fefe dot de 2009-03-30 22:10 ------- > 'z' is for x87 insns. Uh, what?! Let me quote the relevant "documentation" (gcc/config/i386/i386.md): ;; The special asm out single letter directives following a '%' are: ;; 'z' mov%z1 would be movl, movw, or movb depending on the mode of ;; operands[1]. No mention of floating point. > You have to check size of size_t and use > proper suffix in your code. No. The whole point of %z is that you can write asm statements in a way that does not specify the argument size explicitly in the statement. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39590