i386.c (i386_simplify_dwarf_addr): Simplify @GOT references as well.

* config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT
        references as well.

From-SVN: r37622
This commit is contained in:
Richard Henderson 2000-11-21 11:05:59 -08:00 committed by Richard Henderson
parent 65aa827646
commit 3adbce3d89
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-11-21 Richard Henderson <rth@redhat.com>
* config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT
references as well.
2000-11-21 Bernd Schmidt <bernds@redhat.co.uk>
* loop.c (consec_sets_giv): If the reg we're examining is anything

View File

@ -3068,13 +3068,15 @@ i386_simplify_dwarf_addr (orig_x)
x = XEXP (XEXP (x, 1), 0);
if (GET_CODE (x) == UNSPEC
&& XINT (x, 1) == 7)
&& (XINT (x, 1) == 6
|| XINT (x, 1) == 7))
return XVECEXP (x, 0, 0);
if (GET_CODE (x) == PLUS
&& GET_CODE (XEXP (x, 0)) == UNSPEC
&& GET_CODE (XEXP (x, 1)) == CONST_INT
&& XINT (XEXP (x, 0), 1) == 7)
&& (XINT (XEXP (x, 0), 1) == 6
|| XINT (XEXP (x, 0), 1) == 7))
return gen_rtx_PLUS (VOIDmode, XVECEXP (XEXP (x, 0), 0, 0), XEXP (x, 1));
return orig_x;