Message ID | 20161201063456.GF4829@bubble.grove.modra.org |
---|---|
State | New |
Headers | show |
Good catch, Alan, this one is my fault. I'll handle the backports to the 5 and 6 branches. Bill > On Dec 1, 2016, at 12:34 AM, Alan Modra <amodra@gmail.com> wrote: > > I'm committing this one as obvious once my powerpc64le-linux bootstrap > and regression check completes. It fixes hundreds of rtl checking > testsuite errors like the following: > > gcc.c-torture/compile/pr39943.c:6:1: internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'E' (rtx unspec) in insn_is_swappable_p, at config/rs6000/rs6000.c:40678 > > * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly > look inside UNSPEC_VSX_XXSPLTW vec. > > diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c > index 9fe98b7..7f307b1 100644 > --- a/gcc/config/rs6000/rs6000.c > +++ b/gcc/config/rs6000/rs6000.c > @@ -40675,7 +40675,7 @@ insn_is_swappable_p (swap_web_entry *insn_entry, rtx insn, > if (GET_CODE (use_body) != SET > || GET_CODE (SET_SRC (use_body)) != UNSPEC > || XINT (SET_SRC (use_body), 1) != UNSPEC_VSX_XXSPLTW > - || XEXP (XEXP (SET_SRC (use_body), 0), 1) != const0_rtx) > + || XVECEXP (SET_SRC (use_body), 0, 1) != const0_rtx) > return 0; > } > } > > -- > Alan Modra > Australia Development Lab, IBM >
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 9fe98b7..7f307b1 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -40675,7 +40675,7 @@ insn_is_swappable_p (swap_web_entry *insn_entry, rtx insn, if (GET_CODE (use_body) != SET || GET_CODE (SET_SRC (use_body)) != UNSPEC || XINT (SET_SRC (use_body), 1) != UNSPEC_VSX_XXSPLTW - || XEXP (XEXP (SET_SRC (use_body), 0), 1) != const0_rtx) + || XVECEXP (SET_SRC (use_body), 0, 1) != const0_rtx) return 0; } }