This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[IA-64] Fix ICE on gcc.dg/vect/vect-cond-11.c
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 Jan 2016 13:04:08 +0100
- Subject: [IA-64] Fix ICE on gcc.dg/vect/vect-cond-11.c
- Authentication-results: sourceware.org; auth=none
I happened to note that there is an ICE in the C testsuite on IA-64 and that
it is trivial to fix, so here is the result.
Tested on ia64-suse-linux, applied on the mainline and 5 branch as obvious.
2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
* config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
--
Eric Botcazou
Index: config/ia64/ia64.c
===================================================================
--- config/ia64/ia64.c (revision 232773)
+++ config/ia64/ia64.c (working copy)
@@ -1908,7 +1908,7 @@ ia64_expand_vecint_compare (enum rtx_cod
/* Subtract (-(INT MAX) - 1) from both operands to make
them signed. */
- mask = GEN_INT (0x80000000);
+ mask = gen_int_mode (0x80000000, SImode);
mask = gen_rtx_CONST_VECTOR (V2SImode, gen_rtvec (2, mask, mask));
mask = force_reg (mode, mask);
t1 = gen_reg_rtx (mode);