http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56829
Bug #: 56829 Summary: Feature request: "generic" builtin for "movemask" Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: vincenzo.innoce...@cern.ch I would like to ask if is possible to add a builtin for "movemask" instructions supporting vectors of any size (on the same line of __builtin_shuffle) One could call it __builtin_ballot following CUDA syntax implementing any,all,popcnt is then rather trivial using the existing builtins The rational is described in PR55645