i386: Backport gcc.dg/torture/tls/tls-reload-1.c fix from master

* config/i386/i386.c (ix86_expand_move): Always assign to op1
	after eliminating TLS symbols.

From-SVN: r194882
This commit is contained in:
Richard Henderson 2013-01-03 20:17:07 -08:00 committed by Richard Henderson
parent 3b99a733ac
commit 5ea2583e4b
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2013-01-03 Richard Henderson <rth@redhat.com>
* config/i386/i386.c (ix86_expand_move): Always assign to op1
after eliminating TLS symbols.
2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/53789

View File

@ -1,6 +1,6 @@
/* Subroutines used for code generation on IA-32.
Copyright (C) 1988, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Copyright (C) 1988, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
Free Software Foundation, Inc.
This file is part of GCC.
@ -15605,8 +15605,7 @@ ix86_expand_move (enum machine_mode mode, rtx operands[])
op0, 1, OPTAB_DIRECT);
if (tmp == op0)
return;
if (GET_MODE (tmp) != mode)
op1 = convert_to_mode (mode, tmp, 1);
op1 = convert_to_mode (mode, tmp, 1);
}
}