mirror of git://gcc.gnu.org/git/gcc.git
re PR target/30413 (%z produces ICE for char operands)
PR target/30413 * config/i386/i386.c (print_operand) ['z']: Output 'b' for operands of size 1. testsuite/ChangeLog: PR target/30413 * gcc.target/i386/pr30413.c: New test. From-SVN: r120769
This commit is contained in:
parent
16a374c6c8
commit
37fc8424ac
|
@ -1,3 +1,9 @@
|
||||||
|
2007-01-14 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
|
PR target/30413
|
||||||
|
* config/i386/i386.c (print_operand) ['z']: Output 'b' for
|
||||||
|
operands of size 1.
|
||||||
|
|
||||||
2007-01-14 Jan Hubicka <jh@suse.cz>
|
2007-01-14 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
* tree-dfa.c (remove_referenced_var): New function.
|
* tree-dfa.c (remove_referenced_var): New function.
|
||||||
|
@ -619,7 +625,6 @@
|
||||||
|
|
||||||
* config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
|
* config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
|
||||||
(*cosxf2): Rename to cosxf2_i387.
|
(*cosxf2): Rename to cosxf2_i387.
|
||||||
|
|
||||||
(*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
|
(*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
|
||||||
using X87MODEF12 mode macro. Rename patterns to
|
using X87MODEF12 mode macro. Rename patterns to
|
||||||
*sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
|
*sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
|
||||||
|
@ -627,9 +632,7 @@
|
||||||
(*cosdf2, *cossf2): Ditto.
|
(*cosdf2, *cossf2): Ditto.
|
||||||
(sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
|
(sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
|
||||||
to match extended input operands.
|
to match extended input operands.
|
||||||
|
|
||||||
(sincos<mode>3): New expander.
|
(sincos<mode>3): New expander.
|
||||||
|
|
||||||
(*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
|
(*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
|
||||||
insn patterns and corresponding splitters.
|
insn patterns and corresponding splitters.
|
||||||
|
|
||||||
|
|
|
@ -7918,6 +7918,10 @@ print_operand (FILE *file, rtx x, int code)
|
||||||
/* This is the size of op from size of operand. */
|
/* This is the size of op from size of operand. */
|
||||||
switch (GET_MODE_SIZE (GET_MODE (x)))
|
switch (GET_MODE_SIZE (GET_MODE (x)))
|
||||||
{
|
{
|
||||||
|
case 1:
|
||||||
|
putc ('b', file);
|
||||||
|
return;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
#ifdef HAVE_GAS_FILDS_FISTS
|
#ifdef HAVE_GAS_FILDS_FISTS
|
||||||
putc ('s', file);
|
putc ('s', file);
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2007-01-14 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
|
PR target/30413
|
||||||
|
* gcc.target/i386/pr30413.c: New test.
|
||||||
|
|
||||||
2007-01-14 Thomas Koenig <Thomas.Koenig@online.de>
|
2007-01-14 Thomas Koenig <Thomas.Koenig@online.de>
|
||||||
|
|
||||||
PR fortran/30452
|
PR fortran/30452
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
|
||||||
|
/* { dg-options "-O2" } */
|
||||||
|
|
||||||
|
extern void abort (void);
|
||||||
|
|
||||||
|
int test() {
|
||||||
|
char a, b = -1;
|
||||||
|
asm volatile ("mov%z0 %1, %0" : "=q"(a) : "m"(b));
|
||||||
|
return a;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
if (test() != -1)
|
||||||
|
abort();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue