------- Comment #4 from dominic dot quiet at gmail dot com 2006-03-12 21:41 ------- Created an attachment (id=11032) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11032&action=view) My results with -march=athlon-xp
The behavior of the ?: compared to without -march=athlon-xp may be a sign that -march=athlon-xp (I don't know about Intel CPUs and other AMD CPUs) generate slower code for (<condition> ? <power of 2> : 0) operations in general, not just in that case (see my first post in this bug for more details about the generated code), but I don't have time to test it right now. Maybe it's worth opening another bug... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26656