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 libfortran/24903] New: dotprod should use conj?


Right now dotprod_c* does:
./generated/dotprod_c4.c:      COMPLEX_ASSIGN(conjga, REALPART (*pa), -IMAGPART
(*pa));
./generated/dotprod_c16.c:      COMPLEX_ASSIGN(conjga, REALPART (*pa),
-IMAGPART (*pa));
./generated/dotprod_c8.c:      COMPLEX_ASSIGN(conjga, REALPART (*pa), -IMAGPART
(*pa));
./generated/dotprod_c10.c:      COMPLEX_ASSIGN(conjga, REALPART (*pa),
-IMAGPART (*pa));


When it should be doing:
conjga = conj(*pa);
or
conjga = conjl(*pa);
or
conjga = conjf(*pa);

Depending on which type it is.

Or it could use the GNU extension which overrides ~ for conjugation.

conjga = ~*pa;


-- 
           Summary: dotprod should use conj?
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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