[Bug target/63260] New: [SH] fabs, fneg do not need fp-mode setting and do not use fpscr

olegendo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 13 22:50:00 GMT 2014


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

            Bug ID: 63260
           Summary: [SH] fabs, fneg do not need fp-mode setting and do not
                    use fpscr
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: olegendo at gcc dot gnu.org
            Target: sh*-*-*

Created attachment 33490
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33490&action=edit
Proposed patch

The fabs and fneg insns do not require an FPSCR.PR or FPSCR.SZ mode setting as
they operate on the high part of a double register pair.  Thus they are the
same for single and double precision



More information about the Gcc-bugs mailing list