This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix simd-2.c failure on powerpc
- From: Richard Henderson <rth at redhat dot com>
- To: Roger Sayle <roger at www dot eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Aldy Hernandex <aldyh at redhat dot com>, Geoff Keating <geoffk at geoffk dot org>, John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Thu, 10 Apr 2003 20:52:05 -0700
- Subject: Re: [PATCH] Fix simd-2.c failure on powerpc
- References: <Pine.LNX.4.44.0304092300160.31056-100000@www.eyesopen.com>
On Wed, Apr 09, 2003 at 11:24:24PM -0600, Roger Sayle wrote:
> The second and third operands of ZERO_EXTRACT should always be
> constant integers and therefore we only need to examine the
> first operand.
False. From alpha.md:
(define_insn "extxl_le"
[(set (match_operand:DI 0 "register_operand" "=r")
(zero_extract:DI (match_operand:DI 1 "reg_or_0_operand" "rJ")
(match_operand:DI 2 "mode_width_operand" "n")
(ashift:DI (match_operand:DI 3 "reg_or_8bit_operand" "r
I")
(const_int 3))))]
"! WORDS_BIG_ENDIAN"
"ext%M2l %r1,%3,%0"
[(set_attr "type" "shift")])
I'll look at the combine fragment later; my gut reaction is
that it's overly pessimistic.
r~