From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31149 invoked by alias); 6 Jan 2003 18:06:07 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 31120 invoked by uid 71); 6 Jan 2003 18:06:06 -0000 Resent-Date: 6 Jan 2003 18:06:06 -0000 Resent-Message-ID: <20030106180606.31119.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, echristo@redhat.com, David.Billinghurst@riotinto.com, rsandifo@redhat.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, ghazi@caip.rutgers.edu Received: (qmail 29200 invoked by uid 61); 6 Jan 2003 18:00:47 -0000 Message-Id: <20030106180047.29199.qmail@sources.redhat.com> Date: Mon, 06 Jan 2003 18:06:00 -0000 From: ghazi@caip.rutgers.edu Reply-To: ghazi@caip.rutgers.edu To: gcc-gnats@gcc.gnu.org Cc: echristo@redhat.com, David.Billinghurst@riotinto.com, rsandifo@redhat.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: echristo@redhat.com David.Billinghurst@riotinto.com rsandifo@redhat.com Subject: target/9195: mips-irix6 testsuite failure in gcc.c-torture/compile/simd-5.c with -O1 X-SW-Source: 2003-01/txt/msg00347.txt.bz2 List-Id: >Number: 9195 >Category: target >Synopsis: mips-irix6 testsuite failure in gcc.c-torture/compile/simd-5.c with -O1 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Mon Jan 06 10:06:04 PST 2003 >Closed-Date: >Last-Modified: >Originator: Kaveh Ghazi >Release: gcc version 3.4 20030105 (experimental) >Organization: >Environment: mips-sgi-irix6.5 >Description: I get a testsuite failure in gcc.c-torture/compile/simd-5.c with -O1 as seen here: http://gcc.gnu.org/ml/gcc-testresults/2003-01/msg00233.html This is not new, it appears to have been a problem for as long as the testcase was in the suite. The logfile says: simd-5.c: In function `main': simd-5.c:12: internal compiler error: in trunc_int_for_mode, at explow.c:56 FAIL: gcc.c-torture/compile/simd-5.c, -O1 running under gdb shows: Breakpoint 1, trunc_int_for_mode (c=64, mode=V2SImode) at ../../egcc-CVS20030105/gcc/explow.c:56 56 abort (); (gdb) bt #0 trunc_int_for_mode (c=64, mode=V2SImode) at ../../egcc-CVS20030105/gcc/explow.c:56 #1 0x102e4fd8 in simplify_unary_operation (code=131, mode=V2SImode, op=0x4008400, op_mode=SImode) at ../../egcc-CVS20030105/gcc/simplify-rtx.c:485 #2 0x1033eed0 in subst (x=0x400b730, from=0x403b330, to=0x40088a0, in_dest=0, unique_copy=0) at ../../egcc-CVS20030105/gcc/combine.c:3556 #3 0x1033ed44 in subst (x=0x4052478, from=0x403b330, to=0x40088a0, in_dest=0, unique_copy=0) at ../../egcc-CVS20030105/gcc/combine.c:3526 #4 0x1032eff4 in try_combine (i3=0x4015290, i2=0x4014840, i1=0x4016998, new_direct_jump_p=0x7fff2710) at ../../egcc-CVS20030105/gcc/combine.c:1987 #5 0x1032afa0 in combine_instructions (f=0x40144d0, nregs=67444248) at ../../egcc-CVS20030105/gcc/combine.c:719 #6 0x100bdda4 in rest_of_compilation (decl=0x404e080) at ../../egcc-CVS20030105/gcc/toplev.c:3119 #7 0x1005628c in c_expand_body (fndecl=0x404e080, nested_p=0, can_defer_p=30) at ../../egcc-CVS20030105/gcc/c-decl.c:6539 #8 0x10055da0 in finish_function (nested=0, can_defer_p=1) at ../../egcc-CVS20030105/gcc/c-decl.c:6410 #9 0x10030b60 in yyparse () at c-parse.y:433 #10 0x1003fe60 in c_common_parse_file (set_yydebug=200) at ../../egcc-CVS20030105/gcc/c-lex.c:161 #11 0x100bc100 in compile_file () at ../../egcc-CVS20030105/gcc/toplev.c:2128 #12 0x100c3860 in do_compile () at ../../egcc-CVS20030105/gcc/toplev.c:5352 #13 0x100c3990 in toplev_main (argc=13, argv=0x7fff2ef4) at ../../egcc-CVS20030105/gcc/toplev.c:5382 #14 0x100aa77c in main (argc=200, argv=0x40) at ../../egcc-CVS20030105/gcc/main.c:37 (gdb) p mode $1 = V2SImode >How-To-Repeat: Target mips-sgi-irix6.5 and compile simd-5.i with: cc1 -fpreprocessed simd-5.i -quiet -dumpbase simd-5.c -auxbase-strip /caip/u58/ghazi/gcc-testing/build/gcc/testsuite/simd-5.o -O1 -w -version -o simd-5.s # 1 "/caip/u58/ghazi/gcc-testing/egcc-CVS20030105/gcc/testsuite/gcc.c-torture/compile/simd-5.c" # 1 "" # 1 "" # 1 "/caip/u58/ghazi/gcc-testing/egcc-CVS20030105/gcc/testsuite/gcc.c-torture/compile/simd-5.c" main(){ __attribute__((vector_size(8))) int c; __attribute__((vector_size(8))) int a = {1, -1}; __attribute__((vector_size(8))) int b = {2, -2}; c = -a + b*b*(-1LL); printf("result is %llx\n", (long long)c); } >Fix: >Release-Note: >Audit-Trail: >Unformatted: