https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66020

            Bug ID: 66020
           Summary: [6.0 regression] FAIL:
                    gcc.target/powerpc/ppc64-abi-2.c execution test
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sch...@linux-m68k.org
  Target Milestone: ---
            Target: powerpc64-*-*

$ gcc/xgcc -Bgcc/ ../gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c -O2
-fprofile -mprofile-kernel -maltivec -mabi=altivec -lm -m64 -o
./ppc64-abi-2.exe
$ ./ppc64-abi-2.exe
Segmentation fault
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00003fffb7d24dcc in generic_start_main (
    main=@0x10012190: 0x100005d0 <main>, argc=<optimized out>, 
    argv=0x3fffffffef48, auxvec=0x3ffffffff220, init=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=<optimized out>, fini=<optimized out>)
    at ../csu/libc-start.c:269
#2  0x00003fffb7d24fd4 in __libc_start_main (argc=<optimized out>, 
    argv=<optimized out>, ev=<optimized out>, auxvec=<optimized out>, 
    rtld_fini=<optimized out>, stinfo=<optimized out>, 
    stack_on_entry=<optimized out>)
    at ../sysdeps/unix/sysv/linux/powerpc/libc-start.c:80
#3  0x0000000000000000 in ?? ()


Breakpoint 3, fcvi (s=0x100011e0 "vv", v=..., i=2)
    at ../gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c:138
138       reg_parms_t lparms = gparms;
(gdb) disass
Dump of assembler code for function fcvi:
   0x0000000010000900 <+0>:     mflr    r0
   0x0000000010000904 <+4>:     bl      0x10000820 <my_mcount>
   0x0000000010000908 <+8>:     mflr    r0
=> 0x000000001000090c <+12>:    nop
   0x0000000010000910 <+16>:    li      r8,176
   0x0000000010000914 <+20>:    ld      r10,-32744(r2)
   0x0000000010000918 <+24>:    std     r0,16(r1)
   0x000000001000091c <+28>:    stdu    r1,-112(r1)
   0x0000000010000920 <+32>:    ld      r9,0(r10)
   0x0000000010000924 <+36>:    ld      r6,32(r10)
   0x0000000010000928 <+40>:    cmpd    cr7,r3,r9
   0x000000001000092c <+44>:    lvx     v0,r10,r8
   0x0000000010000930 <+48>:    bne-    cr7,0x10000954 <fcvi+84>
   0x0000000010000934 <+52>:    vcmpequw. v2,v2,v0
   0x0000000010000938 <+56>:    bge-    cr6,0x10000954 <fcvi+84>
   0x000000001000093c <+60>:    cmpd    cr7,r7,r6
   0x0000000010000940 <+64>:    bne-    cr7,0x10000954 <fcvi+84>
   0x0000000010000944 <+68>:    addi    r1,r1,112
   0x0000000010000948 <+72>:    ld      r0,16(r1)
   0x000000001000094c <+76>:    mtlr    r0
   0x0000000010000950 <+80>:    blr
   0x0000000010000954 <+84>:    bl      0x100005bc
<00000044.plt_call.abort@@GLIBC_2.3>
   0x0000000010000958 <+88>:    ld      r2,40(r1)
   0x000000001000095c <+92>:    .long 0x0
   0x0000000010000960 <+96>:    .long 0x1
   0x0000000010000964 <+100>:   lwz     r0,0(0)
End of assembler dump.
(gdb) i reg r0
r0             0x0      0

Reply via email to