public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/59471] New: ICE using vector extensions (non-top-level BIT_FIELD_REF, IMAGPART_EXPR or REALPART_EXPR)
@ 2013-12-11 15:28 jgreenhalgh at gcc dot gnu.org
  2013-12-13 10:54 ` [Bug middle-end/59471] [4.9 Regression] " rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2013-12-11 15:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59471
           Summary: ICE using vector extensions (non-top-level
                    BIT_FIELD_REF, IMAGPART_EXPR or REALPART_EXPR)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jgreenhalgh at gcc dot gnu.org

The following code:

typedef unsigned char uint8x8_t
  __attribute__ ((__vector_size__ (8)));

typedef unsigned short uint16x8_t
  __attribute__ ((__vector_size__ (16)));

typedef unsigned long uint64x2_t
  __attribute__ ((__vector_size__ (16)));

uint8x8_t
foo (uint16x8_t x)
{
  return (uint8x8_t) ((uint64x2_t) x)[0];
}

Will give this ICE for current trunk on AArch64, ARM and X86_64:

/work/build-x86/install/bin/gcc ../testcases/view-convert-expr.c -O3
../testcases/view-convert-expr.c: In function ‘foo’:
../testcases/view-convert-expr.c:11:1: error: non-top-level BIT_FIELD_REF,
IMAGPART_EXPR or REALPART_EXPR
 foo (uint16x8_t x)
 ^
BIT_FIELD_REF <VIEW_CONVERT_EXPR<vector(2) long unsigned int>(x), 64, 0>
../testcases/view-convert-expr.c:13:3: note: in statement
   return (uint8x8_t) ((uint64x2_t) x)[0];
   ^
D.1792 = VIEW_CONVERT_EXPR<uint8x8_t>(BIT_FIELD_REF
<VIEW_CONVERT_EXPR<vector(2) long unsigned int>(x), 64, 0>);
../testcases/view-convert-expr.c:11:1: internal compiler error: verify_gimple
failed
 foo (uint16x8_t x)
 ^
0x9b5a5a verify_gimple_in_cfg(function*)
    ../../src/gcc/gcc/tree-cfg.c:4837
0x8df347 execute_function_todo
    ../../src/gcc/gcc/passes.c:1847
0x8dfb73 execute_todo
    ../../src/gcc/gcc/passes.c:1877
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Looking at -fdump-tree-all-raw, I see this expression in
view-convert-expr.c.004t.gimple:

foo (uint16x8_t x)
gimple_bind <
  uint8x8_t D.1792;

  gimple_assign <view_convert_expr, D.1792,
VIEW_CONVERT_EXPR<uint8x8_t>(BIT_FIELD_REF <VIEW_CONVERT_EXPR<vector(2) long
unsigned int>(x), 64, 0>), NULL, NULL>
  gimple_return <D.1792 NULL>
>

For reference, my x86 compiler was configured as:

Configured with: ../src/gcc/configure --prefix=/work/build-x86/install
>From gcc-bugs-return-437333-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Dec 11 15:40:38 2013
Return-Path: <gcc-bugs-return-437333-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25649 invoked by alias); 11 Dec 2013 15:40:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25595 invoked by uid 48); 11 Dec 2013 15:40:30 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/59440] [4.9 Regression] ICE in force_decl_die, at dwarf2out.c:20111 with -g
Date: Wed, 11 Dec 2013 15:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-59440-4-qtn5uldq0T@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59440-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59440-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-12/txt/msg00988.txt.bz2
Content-length: 434

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY440

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #1 from janus at gcc dot gnu.org ---
(Maybe-not-so-) Wild guess: The regression is most probably due to r205679 (cf
PR 37132).


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

end of thread, other threads:[~2014-01-08 22:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-11 15:28 [Bug tree-optimization/59471] New: ICE using vector extensions (non-top-level BIT_FIELD_REF, IMAGPART_EXPR or REALPART_EXPR) jgreenhalgh at gcc dot gnu.org
2013-12-13 10:54 ` [Bug middle-end/59471] [4.9 Regression] " rguenth at gcc dot gnu.org
2013-12-17  9:48 ` jakub at gcc dot gnu.org
2013-12-17 20:54 ` glisse at gcc dot gnu.org
2013-12-17 20:56 ` jakub at gcc dot gnu.org
2013-12-17 21:10 ` glisse at gcc dot gnu.org
2013-12-19 13:04 ` rguenth at gcc dot gnu.org
2013-12-19 13:04 ` rguenth at gcc dot gnu.org
2013-12-19 13:05 ` rguenth at gcc dot gnu.org
2013-12-20 14:26 ` rguenth at gcc dot gnu.org
2014-01-08  8:59 ` rguenth at gcc dot gnu.org
2014-01-08  9:00 ` rguenth at gcc dot gnu.org
2014-01-08 22:33 ` jakub at gcc dot gnu.org

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).