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 rtl-optimization/29864] New: Folding conversion unsigned long long to float


In Funktion expand_float the libcall generated for a conversion from unsigned
long long to float gets a wrong EQUIV note. See line optabs.c:4712 in the
4.3-20061111 snapshot. The equiv note is set to gen_rtx_FLOAT regardless of the
unsignedp flag. When that flag is set, it should be a gen_rtx_UNSIGNED_FLOAT
note.
The error is also present in 4.2. In 4.1 it was hidden because the code was
only executed with unsignedp being false.
I found the problem while working on a private port. I do not have a confirmed
testcase for a public port. The problem surfaced when GCSE eliminated the
libcall using the note for the conversion.


-- 
           Summary: Folding conversion unsigned long long to float
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Erwin dot Unruh at fujitsu-siemens dot com


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


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