This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/30413] New: %z produces ICE for char operands
- From: "cnovikov at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2007 02:58:11 -0000
- Subject: [Bug inline-asm/30413] New: %z produces ICE for char operands
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Shell log:
$ cat t14.c
int main() {
char a,b;
asm volatile ("mov%z0 %1, %0" : "=r"(a) : "m"(b));
}
$ gcc -o t14 t14.c
t14.c: In function `main':
t14.c:4: internal compiler error: in print_operand, at config/i386/i386.c:7392
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
cnov@wyvern:~/tmp>
The same works if a and b are int. I also see this bug with GCC 3.3.5 on
i486-linux host/target.
--
Summary: %z produces ICE for char operands
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: inline-asm
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: cnovikov at pacbell dot net
GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30413