This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/86414] New: AIX generates wrong


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

            Bug ID: 86414
           Summary: AIX generates wrong
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: carll at gcc dot gnu.org
  Target Milestone: ---

The generated code for test cases

gcc/testsuite/gcc.target/powerpc/divkc3-2.c 
gcc/testsuite/gcc.target/powerpc/divkc3-3.c 
gcc/testsuite/gcc.target/powerpc/mulkc3-2.c
gcc/testsuite/gcc.target/powerpc/mulkc3-3.c

make a call to the DC mode routine not the expected KC mode routine when
compiled on AIX.

Specifically on gcc119, with GCC mainline revision 262441

gcc -S -O2 -mpower8-vector -mabi=ieeelongdouble -Wno-psabi divkc3-2.c

more divkc3-2.s
       .file   "divkc3-2.c"
        .toc
        .csect .text[PR]
        .align 2
        .align 4
        .globl divide
        .globl .divide
        .csect divide[DS]
divide:
        .long .divide, TOC[tc0], 0
        .csect .text[PR]
.divide:
        mflr 0
        stw 31,-4(1)
        lfd 4,8(5)
        stw 0,8(1)
        lfd 3,0(5)
        mr 31,3
        stwu 1,-80(1)
        lfd 2,8(4)
        lfd 1,0(4)
        bl .__divdc3       <<<<<<<  Expected to see .__difkc3
....

The generated code for the other test files fail similarly on AIX.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]