[Bug target/93570] PPC: __builtin_mtfsf does not return a value

wschmidt at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 5 14:22:00 GMT 2020


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

Bill Schmidt <wschmidt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-02-05
     Ever confirmed|0                           |1

--- Comment #1 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Yes, looks like the documentation is wrong.  Looking at GCC trunk:

  ftype = build_function_type_list (void_type_node,
                                    intSI_type_node, double_type_node,
                                    NULL_TREE);
  def_builtin ("__builtin_mtfsf", ftype, RS6000_BUILTIN_MTFSF);

This indicates the correct prototype to be:

  void __builtin_mtfsf (const int, double);

as you suggest.  The documentation needs correcting, but you should be able to
use the correct prototype in 8.3.0.  This builtin hasn't changed in ages.

Confirmed.


More information about the Gcc-bugs mailing list