This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, AARCH64] Fix ICE in CCMP (PR64015)
- From: Richard Henderson <rth at redhat dot com>
- To: Zhenqiang Chen <zhenqiang dot chen at arm dot com>, gcc-patches at gcc dot gnu dot org
- Cc: Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>
- Date: Mon, 24 Nov 2014 09:57:14 +0100
- Subject: Re: [PATCH, AARCH64] Fix ICE in CCMP (PR64015)
- Authentication-results: sourceware.org; auth=none
- References: <000101d007a5$0d120f30$27362d90$ at arm dot com>
On 11/24/2014 06:11 AM, Zhenqiang Chen wrote:
> Expand pass always uses sign-extend to represent constant value. For the
> case in the patch, a 8-bit unsigned value "252" is represented as "-4",
> which pass the ccmn check. After mode conversion, "-4" becomes "252", which
> leads to mismatch.
This sort of thing is why I suggested from the beginning that expansion
happen directly from trees instead of sort-of re-expanding from rtl.
I think you're better off fixing this properly than hacking around it here.
r~