http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54517
Bug #: 54517 Summary: wrong inlining of builtin_shuffle on ARM/big-endian Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: christophe.l...@st.com Created attachment 28146 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28146 testcase As exposed by the attached sample code, GCC for ARM/big-endian produces incorrect code when inlining functions performing builtin_shuffle. Compile the attached program at -O2 with GCC configured for armeb-none-linux-gnueabi) and execute it with qemu-armeb, it should be OK. Then edit the source code such that NOINLINE now expands into the empty string: #define NOINLINE, re-compile & execute: the code aborts.