re PR target/31768 (Invalid code or ICE for %z constraint)

PR target/31768
        * config/i386/i386.c (print_operand) ['z']: Output 'w' for
        operands of size 2 when operand is not MEM_P.

From-SVN: r124379
This commit is contained in:
Uros Bizjak 2007-05-03 16:32:25 +02:00 committed by Uros Bizjak
parent e604f56c8f
commit f3ba423529
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-05-03 Uros Bizjak <ubizjak@gmail.com>
PR target/31768
* config/i386/i386.c (print_operand) ['z']: Output 'w' for
operands of size 2 when operand is not MEM_P.
2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/30565

View File

@ -8372,9 +8372,15 @@ print_operand (FILE *file, rtx x, int code)
return;
case 2:
if (MEM_P (x))
{
#ifdef HAVE_GAS_FILDS_FISTS
putc ('s', file);
putc ('s', file);
#endif
return;
}
else
putc ('w', file);
return;
case 4: