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
4 changed files with 33 additions and 3 deletions
|
@ -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>
|
||||
|
||||
* tree-dfa.c (remove_referenced_var): New function.
|
||||
|
@ -619,7 +625,6 @@
|
|||
|
||||
* config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
|
||||
(*cosxf2): Rename to cosxf2_i387.
|
||||
|
||||
(*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
|
||||
using X87MODEF12 mode macro. Rename patterns to
|
||||
*sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
|
||||
|
@ -627,9 +632,7 @@
|
|||
(*cosdf2, *cossf2): Ditto.
|
||||
(sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
|
||||
to match extended input operands.
|
||||
|
||||
(sincos<mode>3): New expander.
|
||||
|
||||
(*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
|
||||
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. */
|
||||
switch (GET_MODE_SIZE (GET_MODE (x)))
|
||||
{
|
||||
case 1:
|
||||
putc ('b', file);
|
||||
return;
|
||||
|
||||
case 2:
|
||||
#ifdef HAVE_GAS_FILDS_FISTS
|
||||
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>
|
||||
|
||||
PR fortran/30452
|
||||
|
|
18
gcc/testsuite/gcc.target/i386/pr30413.c
Normal file
18
gcc/testsuite/gcc.target/i386/pr30413.c
Normal file
|
@ -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…
Add table
Reference in a new issue