https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93178
Bug ID: 93178
Summary: PPC: inefficient 64-bit constant generation if msb is
off in low 16 bit
Product: gcc
Version: 8.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: jens.seifert at de dot ibm.com
Target Milestone: ---
Input:
unsigned long long hi16msbon_low16msboff()
{
return 0x87654321ULL; // expected: li 3,0x4321 ; oris 3,0x8765
}
Command line:
gcc -O2 -maix64 -save-temps const.C
Output:
._Z21hi16msbon_low16msboffv:
LFB..1:
lis 3,0x8765
ori 3,3,0x4321
rldicl 3,3,0,32
blr