This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Better constraint checking for asms
- To: Bernd Schmidt <crux at pool dot informatik dot rwth-aachen dot de>
- Subject: Re: Better constraint checking for asms
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 08 Oct 1998 05:07:36 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
> Test program which should give errors for all asms (is there a way to
> describe this as a c-torture test?):
It's difficult to add as a c-torture test because it's x86 specific and
requires error messages on many lines.
However, I do think it can be put into the gcc.dg testsuite. Look there for
sample codes.
> * stmt.c (n_occurrences): New static function.
> (expand_asm_operands): Verify that all constrains match in the
> number of alternatives.
> Verify that '+' or '=' are at the beginning of an output constraint.
> Don't allow '&' for input operands.
> Verify that '%' isn't written for the last operand.
> * reload.c (find_reloads): Abort if an asm is found with invalid
> constraints; all possible problems ought to be checked for earlier.
Thanks. I've installed this patch.
jeff