public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [RS6000] fix rtl checking internal compiler error
@ 2016-12-01  6:35 Alan Modra
  2016-12-01 14:29 ` Bill Schmidt
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Modra @ 2016-12-01  6:35 UTC (permalink / raw)
  To: gcc-patches; +Cc: Segher Boessenkool, David Edelsohn

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RS6000] fix rtl checking internal compiler error
  2016-12-01  6:35 [RS6000] fix rtl checking internal compiler error Alan Modra
@ 2016-12-01 14:29 ` Bill Schmidt
  0 siblings, 0 replies; 2+ messages in thread
From: Bill Schmidt @ 2016-12-01 14:29 UTC (permalink / raw)
  To: Alan Modra; +Cc: GCC Patches, Segher Boessenkool, David Edelsohn

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
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-01 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-01  6:35 [RS6000] fix rtl checking internal compiler error Alan Modra
2016-12-01 14:29 ` Bill Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).