public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "terry.guo at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/51631] Trunk ICE for case vst1_lanese64.c with -Os
Date: Tue, 20 Dec 2011 07:51:00 -0000	[thread overview]
Message-ID: <bug-51631-4-MW7qDE3LVu@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-51631-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51631

--- Comment #1 from Terry Guo <terry.guo at arm dot com> 2011-12-20 07:46:44 UTC ---
build@sha-pdsh-build04:~/workspace/GCC-Trunk-Daily-Test/build-linux/gcc-final/gcc/testsuite/gcc$
cat
/home/build/workspace/GCC-Trunk-Daily-Test/src/gcc/gcc/testsuite/gcc.target/arm/neon/vst1_lanes64.c
/* Test the `vst1_lanes64' ARM Neon intrinsic.  */
/* This file was autogenerated by neon-testgen.  */

/* { dg-do assemble } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-save-temps -O0" } */
/* { dg-add-options arm_neon } */

#include "arm_neon.h"

void test_vst1_lanes64 (void)
{
  int64_t *arg0_int64_t;
  int64x1_t arg1_int64x1_t;

  vst1_lane_s64 (arg0_int64_t, arg1_int64x1_t, 0);
}

/* { dg-final { scan-assembler "vst1\.64\[    
\]+((\\\{\[dD\]\[0-9\]+\\\})|(\[dD\]\[0-9\]+)),
\\\[\[rR\]\[0-9\]+\(:\[0-9\]+\)?\\\]!?\(\[     \]+@\[a-zA-Z0-9 \]+\)?\n" } } */
/* { dg-final { cleanup-saved-temps } } */

The buggy code fragment is:

   case VEC_SELECT:
      if (!VECTOR_MODE_P (mode))
    {
      gcc_assert (VECTOR_MODE_P (GET_MODE (trueop0)));
      gcc_assert (mode == GET_MODE_INNER (GET_MODE (trueop0)));


The value of mode is DImode.
The value of trueop0 is: (reg/v:DI 135 [ arg1_int64x1_t ])

The whole insn that the function was trying to handle is:
(insn 5 2 0 2 (set (mem:DI (reg/v/f:SI 134 [ arg0_int64_t ]) [0 S8 A64])
        (vec_select:DI (reg/v:DI 135 [ arg1_int64x1_t ])
            (parallel [
                    (const_int 0 [0])
                ])))
/home/terguo01/work/Os-failed-cases/arm-none-eabi-gcc-4_6-20111208/build-linux/gcc-final/gcc/include/arm_neon.h:8412
1590 {neon_vst1_lanedi}
     (nil))


  reply	other threads:[~2011-12-20  7:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-20  7:47 [Bug rtl-optimization/51631] New: " terry.guo at arm dot com
2011-12-20  7:51 ` terry.guo at arm dot com [this message]
2012-07-31  0:55 ` [Bug rtl-optimization/51631] Trunk ICE for case vst1_lanes64.c " ramana at gcc dot gnu.org
2012-08-03 12:28 ` terry.guo at arm dot com
2012-08-03 14:09 ` ramana at gcc dot gnu.org
2024-03-23 23:46 ` [Bug target/51631] " pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-51631-4-MW7qDE3LVu@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).