Examples where we could use mulli instead of li/mulld. The array indexing example shows up in the bzip2 benchmark (when compiled with -m64).
Compiled with gcc -O2 -m64 struct S { int i1,i2,i3,i4,i5,i6; }s[10]; long test1(int j, long x) { s[j].i1 = 1; return (x * 24); } -- Summary: Multiply-immediate opportunity Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pthaugen at us dot ibm dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc64-linux GCC host triplet: powerpc64-linux GCC target triplet: powerpc64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22068