The following bit of (malformed) assembly causes GNU as to crash.
.globl foo
.type foo, @function
foo:
sete $%al
Here is the error message:
$ as test.s
test.s: Assembler messages:
test.s:4: Internal error, aborting at ../../gas/config/tc-i386.c line 2123 in
optimize_imm
Please report this bug.
$ as --version
GNU assembler 2.17 Debian GNU/Linux
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-linux-gnu'.
(BTW, none of the product categories seem right, but I was directed here by the
manual of gnu as.)
--
Summary: GNU as crashes on bad register syntax
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: inline-asm
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dagit at codersbase dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29554