https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97873
Hongtao.liu <crazylht at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crazylht at gmail dot com --- Comment #3 from Hongtao.liu <crazylht at gmail dot com> --- > > where the smax:SI is late splitted IIRC. That's probably not the optimal > expansion choice. > > I remember a duplicate bug. PR92651? we introduce (define_expand "abs<mode>2" [(set (match_operand:SWI48x 0 "register_operand") (abs:SWI48x (match_operand:SWI48x 1 "register_operand")))] "TARGET_EXPAND_ABS" Compile with -O2 -march=corei7 got abs(int): movl %edi, %eax cltd xorl %edx, %eax subl %edx, %eax ret