target/9195: mips-irix6 testsuite failure in gcc.c-torture/compile/simd-5.c with -O1

ghazi@caip.rutgers.edu ghazi@caip.rutgers.edu
Mon Jan 13 05:17:00 GMT 2003


>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 "<built-in>"
# 1 "<command line>"
# 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:



More information about the Gcc-bugs mailing list