LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 39556 - powerpc port lacks -mmultiple / -mno-multiple
Summary: powerpc port lacks -mmultiple / -mno-multiple
Status: NEW
Alias: None
Product: new-bugs
Classification: Unclassified
Component: new bugs (show other bugs)
Version: trunk
Hardware: PC Linux
: P enhancement
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-04 22:19 PST by Joel Stanley
Modified: 2018-11-05 06:33 PST (History)
4 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Stanley 2018-11-04 22:19:53 PST
When compiling the Linux kernel, ppc32be platforms will enable the -mmutliple flag. From the GCC man page:

 -mno-multiple
    Generate code that uses (does not use) the load multiple word instructions and
    the store multiple word instructions.  These instructions are generated by
    default on POWER systems, and not generated on PowerPC systems.  Do not use
    -mmultiple on little-endian PowerPC systems, since those instructions do not work
    when the processor is in little-endian mode.  The exceptions are PPC740 and
    PPC750 which permit these instructions in little-endian mode.

For feature parity it would be good if Clang supported this option.