[Bug c/89256] New: No optimized division by constant for __int128
joerg.richter@pdv-fs.de
gcc-bugzilla@gcc.gnu.org
Fri Feb 8 14:47:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89256
Bug ID: 89256
Summary: No optimized division by constant for __int128
Product: gcc
Version: 8.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: joerg.richter@pdv-fs.de
Target Milestone: ---
Division by constant is not optimized for __int128 dividend.
// This function will use shift+multiply
int64_t func64( int64_t val )
{
return val / 1000;
}
// This function will call __divti3
__int128 func128( __int128 val )
{
return val / 1000;
}
It would be nice if GCC would use the same optimisation for __int128 and
unsigned __int128.
More information about the Gcc-bugs
mailing list